123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312 |
- unit googledeploymentmanager;
- {$MODE objfpc}
- {$H+}
- interface
- uses sysutils, classes, googleservice, restbase, googlebase;
- type
-
- //Top-level schema types
- TConfigFile = Class;
- TDeployment = Class;
- TDeploymentLabelEntry = Class;
- TDeploymentUpdate = Class;
- TDeploymentUpdateLabelEntry = Class;
- TDeploymentsCancelPreviewRequest = Class;
- TDeploymentsListResponse = Class;
- TDeploymentsStopRequest = Class;
- TImportFile = Class;
- TManifest = Class;
- TManifestsListResponse = Class;
- TOperation = Class;
- TOperationsListResponse = Class;
- TResource = Class;
- TResourceUpdate = Class;
- TResourcesListResponse = Class;
- TTargetConfiguration = Class;
- TType = Class;
- TTypesListResponse = Class;
- TConfigFileArray = Array of TConfigFile;
- TDeploymentArray = Array of TDeployment;
- TDeploymentLabelEntryArray = Array of TDeploymentLabelEntry;
- TDeploymentUpdateArray = Array of TDeploymentUpdate;
- TDeploymentUpdateLabelEntryArray = Array of TDeploymentUpdateLabelEntry;
- TDeploymentsCancelPreviewRequestArray = Array of TDeploymentsCancelPreviewRequest;
- TDeploymentsListResponseArray = Array of TDeploymentsListResponse;
- TDeploymentsStopRequestArray = Array of TDeploymentsStopRequest;
- TImportFileArray = Array of TImportFile;
- TManifestArray = Array of TManifest;
- TManifestsListResponseArray = Array of TManifestsListResponse;
- TOperationArray = Array of TOperation;
- TOperationsListResponseArray = Array of TOperationsListResponse;
- TResourceArray = Array of TResource;
- TResourceUpdateArray = Array of TResourceUpdate;
- TResourcesListResponseArray = Array of TResourcesListResponse;
- TTargetConfigurationArray = Array of TTargetConfiguration;
- TTypeArray = Array of TType;
- TTypesListResponseArray = Array of TTypesListResponse;
- //Anonymous types, using auto-generated names
- TOperationTypeerrorTypeerrorsItem = Class;
- TOperationTypeerror = Class;
- TOperationTypewarningsItemTypedataItem = Class;
- TOperationTypewarningsItem = Class;
- TResourceTypewarningsItemTypedataItem = Class;
- TResourceTypewarningsItem = Class;
- TResourceUpdateTypeerrorTypeerrorsItem = Class;
- TResourceUpdateTypeerror = Class;
- TResourceUpdateTypewarningsItemTypedataItem = Class;
- TResourceUpdateTypewarningsItem = Class;
- TDeploymentTypelabelsArray = Array of TDeploymentLabelEntry;
- TDeploymentUpdateTypelabelsArray = Array of TDeploymentUpdateLabelEntry;
- TDeploymentsListResponseTypedeploymentsArray = Array of TDeployment;
- TManifestTypeimportsArray = Array of TImportFile;
- TManifestsListResponseTypemanifestsArray = Array of TManifest;
- TOperationTypeerrorTypeerrorsArray = Array of TOperationTypeerrorTypeerrorsItem;
- TOperationTypewarningsItemTypedataArray = Array of TOperationTypewarningsItemTypedataItem;
- TOperationTypewarningsArray = Array of TOperationTypewarningsItem;
- TOperationsListResponseTypeoperationsArray = Array of TOperation;
- TResourceTypewarningsItemTypedataArray = Array of TResourceTypewarningsItemTypedataItem;
- TResourceTypewarningsArray = Array of TResourceTypewarningsItem;
- TResourceUpdateTypeerrorTypeerrorsArray = Array of TResourceUpdateTypeerrorTypeerrorsItem;
- TResourceUpdateTypewarningsItemTypedataArray = Array of TResourceUpdateTypewarningsItemTypedataItem;
- TResourceUpdateTypewarningsArray = Array of TResourceUpdateTypewarningsItem;
- TResourcesListResponseTyperesourcesArray = Array of TResource;
- TTargetConfigurationTypeimportsArray = Array of TImportFile;
- TTypesListResponseTypetypesArray = Array of TType;
-
- { --------------------------------------------------------------------
- TConfigFile
- --------------------------------------------------------------------}
-
- TConfigFile = Class(TGoogleBaseObject)
- Private
- Fcontent : String;
- Protected
- //Property setters
- Procedure Setcontent(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property content : String Index 0 Read Fcontent Write Setcontent;
- end;
- TConfigFileClass = Class of TConfigFile;
-
- { --------------------------------------------------------------------
- TDeployment
- --------------------------------------------------------------------}
-
- TDeployment = Class(TGoogleBaseObject)
- Private
- Fdescription : String;
- Ffingerprint : String;
- Fid : String;
- FinsertTime : String;
- Flabels : TDeploymentTypelabelsArray;
- Fmanifest : String;
- Fname : String;
- Foperation : TOperation;
- FselfLink : String;
- Ftarget : TTargetConfiguration;
- Fupdate : TDeploymentUpdate;
- Protected
- //Property setters
- Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
- Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure SetinsertTime(AIndex : Integer; const AValue : String); virtual;
- Procedure Setlabels(AIndex : Integer; const AValue : TDeploymentTypelabelsArray); virtual;
- Procedure Setmanifest(AIndex : Integer; const AValue : String); virtual;
- Procedure Setname(AIndex : Integer; const AValue : String); virtual;
- Procedure Setoperation(AIndex : Integer; const AValue : TOperation); virtual;
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- Procedure Settarget(AIndex : Integer; const AValue : TTargetConfiguration); virtual;
- Procedure Setupdate(AIndex : Integer; const AValue : TDeploymentUpdate); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property description : String Index 0 Read Fdescription Write Setdescription;
- Property fingerprint : String Index 8 Read Ffingerprint Write Setfingerprint;
- Property id : String Index 16 Read Fid Write Setid;
- Property insertTime : String Index 24 Read FinsertTime Write SetinsertTime;
- Property labels : TDeploymentTypelabelsArray Index 32 Read Flabels Write Setlabels;
- Property manifest : String Index 40 Read Fmanifest Write Setmanifest;
- Property name : String Index 48 Read Fname Write Setname;
- Property operation : TOperation Index 56 Read Foperation Write Setoperation;
- Property selfLink : String Index 64 Read FselfLink Write SetselfLink;
- Property target : TTargetConfiguration Index 72 Read Ftarget Write Settarget;
- Property update : TDeploymentUpdate Index 80 Read Fupdate Write Setupdate;
- end;
- TDeploymentClass = Class of TDeployment;
-
- { --------------------------------------------------------------------
- TDeploymentLabelEntry
- --------------------------------------------------------------------}
-
- TDeploymentLabelEntry = Class(TGoogleBaseObject)
- Private
- Fkey : String;
- Fvalue : String;
- Protected
- //Property setters
- Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
- Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property key : String Index 0 Read Fkey Write Setkey;
- Property value : String Index 8 Read Fvalue Write Setvalue;
- end;
- TDeploymentLabelEntryClass = Class of TDeploymentLabelEntry;
-
- { --------------------------------------------------------------------
- TDeploymentUpdate
- --------------------------------------------------------------------}
-
- TDeploymentUpdate = Class(TGoogleBaseObject)
- Private
- Flabels : TDeploymentUpdateTypelabelsArray;
- Fmanifest : String;
- Protected
- //Property setters
- Procedure Setlabels(AIndex : Integer; const AValue : TDeploymentUpdateTypelabelsArray); virtual;
- Procedure Setmanifest(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property labels : TDeploymentUpdateTypelabelsArray Index 0 Read Flabels Write Setlabels;
- Property manifest : String Index 8 Read Fmanifest Write Setmanifest;
- end;
- TDeploymentUpdateClass = Class of TDeploymentUpdate;
-
- { --------------------------------------------------------------------
- TDeploymentUpdateLabelEntry
- --------------------------------------------------------------------}
-
- TDeploymentUpdateLabelEntry = Class(TGoogleBaseObject)
- Private
- Fkey : String;
- Fvalue : String;
- Protected
- //Property setters
- Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
- Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property key : String Index 0 Read Fkey Write Setkey;
- Property value : String Index 8 Read Fvalue Write Setvalue;
- end;
- TDeploymentUpdateLabelEntryClass = Class of TDeploymentUpdateLabelEntry;
-
- { --------------------------------------------------------------------
- TDeploymentsCancelPreviewRequest
- --------------------------------------------------------------------}
-
- TDeploymentsCancelPreviewRequest = Class(TGoogleBaseObject)
- Private
- Ffingerprint : String;
- Protected
- //Property setters
- Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property fingerprint : String Index 0 Read Ffingerprint Write Setfingerprint;
- end;
- TDeploymentsCancelPreviewRequestClass = Class of TDeploymentsCancelPreviewRequest;
-
- { --------------------------------------------------------------------
- TDeploymentsListResponse
- --------------------------------------------------------------------}
-
- TDeploymentsListResponse = Class(TGoogleBaseObject)
- Private
- Fdeployments : TDeploymentsListResponseTypedeploymentsArray;
- FnextPageToken : String;
- Protected
- //Property setters
- Procedure Setdeployments(AIndex : Integer; const AValue : TDeploymentsListResponseTypedeploymentsArray); virtual;
- Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property deployments : TDeploymentsListResponseTypedeploymentsArray Index 0 Read Fdeployments Write Setdeployments;
- Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
- end;
- TDeploymentsListResponseClass = Class of TDeploymentsListResponse;
-
- { --------------------------------------------------------------------
- TDeploymentsStopRequest
- --------------------------------------------------------------------}
-
- TDeploymentsStopRequest = Class(TGoogleBaseObject)
- Private
- Ffingerprint : String;
- Protected
- //Property setters
- Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property fingerprint : String Index 0 Read Ffingerprint Write Setfingerprint;
- end;
- TDeploymentsStopRequestClass = Class of TDeploymentsStopRequest;
-
- { --------------------------------------------------------------------
- TImportFile
- --------------------------------------------------------------------}
-
- TImportFile = Class(TGoogleBaseObject)
- Private
- Fcontent : String;
- Fname : String;
- Protected
- //Property setters
- Procedure Setcontent(AIndex : Integer; const AValue : String); virtual;
- Procedure Setname(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property content : String Index 0 Read Fcontent Write Setcontent;
- Property name : String Index 8 Read Fname Write Setname;
- end;
- TImportFileClass = Class of TImportFile;
-
- { --------------------------------------------------------------------
- TManifest
- --------------------------------------------------------------------}
-
- TManifest = Class(TGoogleBaseObject)
- Private
- Fconfig : TConfigFile;
- FexpandedConfig : String;
- Fid : String;
- Fimports : TManifestTypeimportsArray;
- FinsertTime : String;
- Flayout : String;
- Fname : String;
- FselfLink : String;
- Protected
- //Property setters
- Procedure Setconfig(AIndex : Integer; const AValue : TConfigFile); virtual;
- Procedure SetexpandedConfig(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setimports(AIndex : Integer; const AValue : TManifestTypeimportsArray); virtual;
- Procedure SetinsertTime(AIndex : Integer; const AValue : String); virtual;
- Procedure Setlayout(AIndex : Integer; const AValue : String); virtual;
- Procedure Setname(AIndex : Integer; const AValue : String); virtual;
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property config : TConfigFile Index 0 Read Fconfig Write Setconfig;
- Property expandedConfig : String Index 8 Read FexpandedConfig Write SetexpandedConfig;
- Property id : String Index 16 Read Fid Write Setid;
- Property imports : TManifestTypeimportsArray Index 24 Read Fimports Write Setimports;
- Property insertTime : String Index 32 Read FinsertTime Write SetinsertTime;
- Property layout : String Index 40 Read Flayout Write Setlayout;
- Property name : String Index 48 Read Fname Write Setname;
- Property selfLink : String Index 56 Read FselfLink Write SetselfLink;
- end;
- TManifestClass = Class of TManifest;
-
- { --------------------------------------------------------------------
- TManifestsListResponse
- --------------------------------------------------------------------}
-
- TManifestsListResponse = Class(TGoogleBaseObject)
- Private
- Fmanifests : TManifestsListResponseTypemanifestsArray;
- FnextPageToken : String;
- Protected
- //Property setters
- Procedure Setmanifests(AIndex : Integer; const AValue : TManifestsListResponseTypemanifestsArray); virtual;
- Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property manifests : TManifestsListResponseTypemanifestsArray Index 0 Read Fmanifests Write Setmanifests;
- Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
- end;
- TManifestsListResponseClass = Class of TManifestsListResponse;
-
- { --------------------------------------------------------------------
- TOperationTypeerrorTypeerrorsItem
- --------------------------------------------------------------------}
-
- TOperationTypeerrorTypeerrorsItem = Class(TGoogleBaseObject)
- Private
- Fcode : String;
- Flocation : String;
- Fmessage : String;
- Protected
- //Property setters
- Procedure Setcode(AIndex : Integer; const AValue : String); virtual;
- Procedure Setlocation(AIndex : Integer; const AValue : String); virtual;
- Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property code : String Index 0 Read Fcode Write Setcode;
- Property location : String Index 8 Read Flocation Write Setlocation;
- Property message : String Index 16 Read Fmessage Write Setmessage;
- end;
- TOperationTypeerrorTypeerrorsItemClass = Class of TOperationTypeerrorTypeerrorsItem;
-
- { --------------------------------------------------------------------
- TOperationTypeerror
- --------------------------------------------------------------------}
-
- TOperationTypeerror = Class(TGoogleBaseObject)
- Private
- Ferrors : TOperationTypeerrorTypeerrorsArray;
- Protected
- //Property setters
- Procedure Seterrors(AIndex : Integer; const AValue : TOperationTypeerrorTypeerrorsArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property errors : TOperationTypeerrorTypeerrorsArray Index 0 Read Ferrors Write Seterrors;
- end;
- TOperationTypeerrorClass = Class of TOperationTypeerror;
-
- { --------------------------------------------------------------------
- TOperationTypewarningsItemTypedataItem
- --------------------------------------------------------------------}
-
- TOperationTypewarningsItemTypedataItem = Class(TGoogleBaseObject)
- Private
- Fkey : String;
- Fvalue : String;
- Protected
- //Property setters
- Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
- Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property key : String Index 0 Read Fkey Write Setkey;
- Property value : String Index 8 Read Fvalue Write Setvalue;
- end;
- TOperationTypewarningsItemTypedataItemClass = Class of TOperationTypewarningsItemTypedataItem;
-
- { --------------------------------------------------------------------
- TOperationTypewarningsItem
- --------------------------------------------------------------------}
-
- TOperationTypewarningsItem = Class(TGoogleBaseObject)
- Private
- Fcode : String;
- Fdata : TOperationTypewarningsItemTypedataArray;
- Fmessage : String;
- Protected
- //Property setters
- Procedure Setcode(AIndex : Integer; const AValue : String); virtual;
- Procedure Setdata(AIndex : Integer; const AValue : TOperationTypewarningsItemTypedataArray); virtual;
- Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property code : String Index 0 Read Fcode Write Setcode;
- Property data : TOperationTypewarningsItemTypedataArray Index 8 Read Fdata Write Setdata;
- Property message : String Index 16 Read Fmessage Write Setmessage;
- end;
- TOperationTypewarningsItemClass = Class of TOperationTypewarningsItem;
-
- { --------------------------------------------------------------------
- TOperation
- --------------------------------------------------------------------}
-
- TOperation = Class(TGoogleBaseObject)
- Private
- FclientOperationId : String;
- FcreationTimestamp : String;
- Fdescription : String;
- FendTime : String;
- Ferror : TOperationTypeerror;
- FhttpErrorMessage : String;
- FhttpErrorStatusCode : integer;
- Fid : String;
- FinsertTime : String;
- Fkind : String;
- Fname : String;
- FoperationType : String;
- Fprogress : integer;
- Fregion : String;
- FselfLink : String;
- FstartTime : String;
- Fstatus : String;
- FstatusMessage : String;
- FtargetId : String;
- FtargetLink : String;
- Fuser : String;
- Fwarnings : TOperationTypewarningsArray;
- Fzone : String;
- Protected
- //Property setters
- Procedure SetclientOperationId(AIndex : Integer; const AValue : String); virtual;
- Procedure SetcreationTimestamp(AIndex : Integer; const AValue : String); virtual;
- Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
- Procedure SetendTime(AIndex : Integer; const AValue : String); virtual;
- Procedure Seterror(AIndex : Integer; const AValue : TOperationTypeerror); virtual;
- Procedure SethttpErrorMessage(AIndex : Integer; const AValue : String); virtual;
- Procedure SethttpErrorStatusCode(AIndex : Integer; const AValue : integer); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure SetinsertTime(AIndex : Integer; const AValue : String); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure Setname(AIndex : Integer; const AValue : String); virtual;
- Procedure SetoperationType(AIndex : Integer; const AValue : String); virtual;
- Procedure Setprogress(AIndex : Integer; const AValue : integer); virtual;
- Procedure Setregion(AIndex : Integer; const AValue : String); virtual;
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- Procedure SetstartTime(AIndex : Integer; const AValue : String); virtual;
- Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
- Procedure SetstatusMessage(AIndex : Integer; const AValue : String); virtual;
- Procedure SettargetId(AIndex : Integer; const AValue : String); virtual;
- Procedure SettargetLink(AIndex : Integer; const AValue : String); virtual;
- Procedure Setuser(AIndex : Integer; const AValue : String); virtual;
- Procedure Setwarnings(AIndex : Integer; const AValue : TOperationTypewarningsArray); virtual;
- Procedure Setzone(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property clientOperationId : String Index 0 Read FclientOperationId Write SetclientOperationId;
- Property creationTimestamp : String Index 8 Read FcreationTimestamp Write SetcreationTimestamp;
- Property description : String Index 16 Read Fdescription Write Setdescription;
- Property endTime : String Index 24 Read FendTime Write SetendTime;
- Property error : TOperationTypeerror Index 32 Read Ferror Write Seterror;
- Property httpErrorMessage : String Index 40 Read FhttpErrorMessage Write SethttpErrorMessage;
- Property httpErrorStatusCode : integer Index 48 Read FhttpErrorStatusCode Write SethttpErrorStatusCode;
- Property id : String Index 56 Read Fid Write Setid;
- Property insertTime : String Index 64 Read FinsertTime Write SetinsertTime;
- Property kind : String Index 72 Read Fkind Write Setkind;
- Property name : String Index 80 Read Fname Write Setname;
- Property operationType : String Index 88 Read FoperationType Write SetoperationType;
- Property progress : integer Index 96 Read Fprogress Write Setprogress;
- Property region : String Index 104 Read Fregion Write Setregion;
- Property selfLink : String Index 112 Read FselfLink Write SetselfLink;
- Property startTime : String Index 120 Read FstartTime Write SetstartTime;
- Property status : String Index 128 Read Fstatus Write Setstatus;
- Property statusMessage : String Index 136 Read FstatusMessage Write SetstatusMessage;
- Property targetId : String Index 144 Read FtargetId Write SettargetId;
- Property targetLink : String Index 152 Read FtargetLink Write SettargetLink;
- Property user : String Index 160 Read Fuser Write Setuser;
- Property warnings : TOperationTypewarningsArray Index 168 Read Fwarnings Write Setwarnings;
- Property zone : String Index 176 Read Fzone Write Setzone;
- end;
- TOperationClass = Class of TOperation;
-
- { --------------------------------------------------------------------
- TOperationsListResponse
- --------------------------------------------------------------------}
-
- TOperationsListResponse = Class(TGoogleBaseObject)
- Private
- FnextPageToken : String;
- Foperations : TOperationsListResponseTypeoperationsArray;
- Protected
- //Property setters
- Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
- Procedure Setoperations(AIndex : Integer; const AValue : TOperationsListResponseTypeoperationsArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property nextPageToken : String Index 0 Read FnextPageToken Write SetnextPageToken;
- Property operations : TOperationsListResponseTypeoperationsArray Index 8 Read Foperations Write Setoperations;
- end;
- TOperationsListResponseClass = Class of TOperationsListResponse;
-
- { --------------------------------------------------------------------
- TResourceTypewarningsItemTypedataItem
- --------------------------------------------------------------------}
-
- TResourceTypewarningsItemTypedataItem = Class(TGoogleBaseObject)
- Private
- Fkey : String;
- Fvalue : String;
- Protected
- //Property setters
- Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
- Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property key : String Index 0 Read Fkey Write Setkey;
- Property value : String Index 8 Read Fvalue Write Setvalue;
- end;
- TResourceTypewarningsItemTypedataItemClass = Class of TResourceTypewarningsItemTypedataItem;
-
- { --------------------------------------------------------------------
- TResourceTypewarningsItem
- --------------------------------------------------------------------}
-
- TResourceTypewarningsItem = Class(TGoogleBaseObject)
- Private
- Fcode : String;
- Fdata : TResourceTypewarningsItemTypedataArray;
- Fmessage : String;
- Protected
- //Property setters
- Procedure Setcode(AIndex : Integer; const AValue : String); virtual;
- Procedure Setdata(AIndex : Integer; const AValue : TResourceTypewarningsItemTypedataArray); virtual;
- Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property code : String Index 0 Read Fcode Write Setcode;
- Property data : TResourceTypewarningsItemTypedataArray Index 8 Read Fdata Write Setdata;
- Property message : String Index 16 Read Fmessage Write Setmessage;
- end;
- TResourceTypewarningsItemClass = Class of TResourceTypewarningsItem;
-
- { --------------------------------------------------------------------
- TResource
- --------------------------------------------------------------------}
-
- TResource = Class(TGoogleBaseObject)
- Private
- FfinalProperties : String;
- Fid : String;
- FinsertTime : String;
- Fmanifest : String;
- Fname : String;
- Fproperties : String;
- F_type : String;
- Fupdate : TResourceUpdate;
- FupdateTime : String;
- Furl : String;
- Fwarnings : TResourceTypewarningsArray;
- Protected
- Class Function ExportPropertyName(Const AName : String) : string; override;
- //Property setters
- Procedure SetfinalProperties(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure SetinsertTime(AIndex : Integer; const AValue : String); virtual;
- Procedure Setmanifest(AIndex : Integer; const AValue : String); virtual;
- Procedure Setname(AIndex : Integer; const AValue : String); virtual;
- Procedure Setproperties(AIndex : Integer; const AValue : String); virtual;
- Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
- Procedure Setupdate(AIndex : Integer; const AValue : TResourceUpdate); virtual;
- Procedure SetupdateTime(AIndex : Integer; const AValue : String); virtual;
- Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
- Procedure Setwarnings(AIndex : Integer; const AValue : TResourceTypewarningsArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property finalProperties : String Index 0 Read FfinalProperties Write SetfinalProperties;
- Property id : String Index 8 Read Fid Write Setid;
- Property insertTime : String Index 16 Read FinsertTime Write SetinsertTime;
- Property manifest : String Index 24 Read Fmanifest Write Setmanifest;
- Property name : String Index 32 Read Fname Write Setname;
- Property properties : String Index 40 Read Fproperties Write Setproperties;
- Property _type : String Index 48 Read F_type Write Set_type;
- Property update : TResourceUpdate Index 56 Read Fupdate Write Setupdate;
- Property updateTime : String Index 64 Read FupdateTime Write SetupdateTime;
- Property url : String Index 72 Read Furl Write Seturl;
- Property warnings : TResourceTypewarningsArray Index 80 Read Fwarnings Write Setwarnings;
- end;
- TResourceClass = Class of TResource;
-
- { --------------------------------------------------------------------
- TResourceUpdateTypeerrorTypeerrorsItem
- --------------------------------------------------------------------}
-
- TResourceUpdateTypeerrorTypeerrorsItem = Class(TGoogleBaseObject)
- Private
- Fcode : String;
- Flocation : String;
- Fmessage : String;
- Protected
- //Property setters
- Procedure Setcode(AIndex : Integer; const AValue : String); virtual;
- Procedure Setlocation(AIndex : Integer; const AValue : String); virtual;
- Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property code : String Index 0 Read Fcode Write Setcode;
- Property location : String Index 8 Read Flocation Write Setlocation;
- Property message : String Index 16 Read Fmessage Write Setmessage;
- end;
- TResourceUpdateTypeerrorTypeerrorsItemClass = Class of TResourceUpdateTypeerrorTypeerrorsItem;
-
- { --------------------------------------------------------------------
- TResourceUpdateTypeerror
- --------------------------------------------------------------------}
-
- TResourceUpdateTypeerror = Class(TGoogleBaseObject)
- Private
- Ferrors : TResourceUpdateTypeerrorTypeerrorsArray;
- Protected
- //Property setters
- Procedure Seterrors(AIndex : Integer; const AValue : TResourceUpdateTypeerrorTypeerrorsArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property errors : TResourceUpdateTypeerrorTypeerrorsArray Index 0 Read Ferrors Write Seterrors;
- end;
- TResourceUpdateTypeerrorClass = Class of TResourceUpdateTypeerror;
-
- { --------------------------------------------------------------------
- TResourceUpdateTypewarningsItemTypedataItem
- --------------------------------------------------------------------}
-
- TResourceUpdateTypewarningsItemTypedataItem = Class(TGoogleBaseObject)
- Private
- Fkey : String;
- Fvalue : String;
- Protected
- //Property setters
- Procedure Setkey(AIndex : Integer; const AValue : String); virtual;
- Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property key : String Index 0 Read Fkey Write Setkey;
- Property value : String Index 8 Read Fvalue Write Setvalue;
- end;
- TResourceUpdateTypewarningsItemTypedataItemClass = Class of TResourceUpdateTypewarningsItemTypedataItem;
-
- { --------------------------------------------------------------------
- TResourceUpdateTypewarningsItem
- --------------------------------------------------------------------}
-
- TResourceUpdateTypewarningsItem = Class(TGoogleBaseObject)
- Private
- Fcode : String;
- Fdata : TResourceUpdateTypewarningsItemTypedataArray;
- Fmessage : String;
- Protected
- //Property setters
- Procedure Setcode(AIndex : Integer; const AValue : String); virtual;
- Procedure Setdata(AIndex : Integer; const AValue : TResourceUpdateTypewarningsItemTypedataArray); virtual;
- Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property code : String Index 0 Read Fcode Write Setcode;
- Property data : TResourceUpdateTypewarningsItemTypedataArray Index 8 Read Fdata Write Setdata;
- Property message : String Index 16 Read Fmessage Write Setmessage;
- end;
- TResourceUpdateTypewarningsItemClass = Class of TResourceUpdateTypewarningsItem;
-
- { --------------------------------------------------------------------
- TResourceUpdate
- --------------------------------------------------------------------}
-
- TResourceUpdate = Class(TGoogleBaseObject)
- Private
- Ferror : TResourceUpdateTypeerror;
- FfinalProperties : String;
- Fintent : String;
- Fmanifest : String;
- Fproperties : String;
- Fstate : String;
- Fwarnings : TResourceUpdateTypewarningsArray;
- Protected
- //Property setters
- Procedure Seterror(AIndex : Integer; const AValue : TResourceUpdateTypeerror); virtual;
- Procedure SetfinalProperties(AIndex : Integer; const AValue : String); virtual;
- Procedure Setintent(AIndex : Integer; const AValue : String); virtual;
- Procedure Setmanifest(AIndex : Integer; const AValue : String); virtual;
- Procedure Setproperties(AIndex : Integer; const AValue : String); virtual;
- Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
- Procedure Setwarnings(AIndex : Integer; const AValue : TResourceUpdateTypewarningsArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property error : TResourceUpdateTypeerror Index 0 Read Ferror Write Seterror;
- Property finalProperties : String Index 8 Read FfinalProperties Write SetfinalProperties;
- Property intent : String Index 16 Read Fintent Write Setintent;
- Property manifest : String Index 24 Read Fmanifest Write Setmanifest;
- Property properties : String Index 32 Read Fproperties Write Setproperties;
- Property state : String Index 40 Read Fstate Write Setstate;
- Property warnings : TResourceUpdateTypewarningsArray Index 48 Read Fwarnings Write Setwarnings;
- end;
- TResourceUpdateClass = Class of TResourceUpdate;
-
- { --------------------------------------------------------------------
- TResourcesListResponse
- --------------------------------------------------------------------}
-
- TResourcesListResponse = Class(TGoogleBaseObject)
- Private
- FnextPageToken : String;
- Fresources : TResourcesListResponseTyperesourcesArray;
- Protected
- //Property setters
- Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
- Procedure Setresources(AIndex : Integer; const AValue : TResourcesListResponseTyperesourcesArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property nextPageToken : String Index 0 Read FnextPageToken Write SetnextPageToken;
- Property resources : TResourcesListResponseTyperesourcesArray Index 8 Read Fresources Write Setresources;
- end;
- TResourcesListResponseClass = Class of TResourcesListResponse;
-
- { --------------------------------------------------------------------
- TTargetConfiguration
- --------------------------------------------------------------------}
-
- TTargetConfiguration = Class(TGoogleBaseObject)
- Private
- Fconfig : TConfigFile;
- Fimports : TTargetConfigurationTypeimportsArray;
- Protected
- //Property setters
- Procedure Setconfig(AIndex : Integer; const AValue : TConfigFile); virtual;
- Procedure Setimports(AIndex : Integer; const AValue : TTargetConfigurationTypeimportsArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property config : TConfigFile Index 0 Read Fconfig Write Setconfig;
- Property imports : TTargetConfigurationTypeimportsArray Index 8 Read Fimports Write Setimports;
- end;
- TTargetConfigurationClass = Class of TTargetConfiguration;
-
- { --------------------------------------------------------------------
- TType
- --------------------------------------------------------------------}
-
- TType = Class(TGoogleBaseObject)
- Private
- Fid : String;
- FinsertTime : String;
- Fname : String;
- FselfLink : String;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure SetinsertTime(AIndex : Integer; const AValue : String); virtual;
- Procedure Setname(AIndex : Integer; const AValue : String); virtual;
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property id : String Index 0 Read Fid Write Setid;
- Property insertTime : String Index 8 Read FinsertTime Write SetinsertTime;
- Property name : String Index 16 Read Fname Write Setname;
- Property selfLink : String Index 24 Read FselfLink Write SetselfLink;
- end;
- TTypeClass = Class of TType;
-
- { --------------------------------------------------------------------
- TTypesListResponse
- --------------------------------------------------------------------}
-
- TTypesListResponse = Class(TGoogleBaseObject)
- Private
- FnextPageToken : String;
- Ftypes : TTypesListResponseTypetypesArray;
- Protected
- //Property setters
- Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
- Procedure Settypes(AIndex : Integer; const AValue : TTypesListResponseTypetypesArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property nextPageToken : String Index 0 Read FnextPageToken Write SetnextPageToken;
- Property types : TTypesListResponseTypetypesArray Index 8 Read Ftypes Write Settypes;
- end;
- TTypesListResponseClass = Class of TTypesListResponse;
-
- { --------------------------------------------------------------------
- TDeploymentsResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TDeploymentsResource, method Insert
-
- TDeploymentsInsertOptions = Record
- preview : boolean;
- end;
-
-
- //Optional query Options for TDeploymentsResource, method List
-
- TDeploymentsListOptions = Record
- filter : String;
- maxResults : integer;
- pageToken : String;
- end;
-
-
- //Optional query Options for TDeploymentsResource, method Patch
-
- TDeploymentsPatchOptions = Record
- createPolicy : String;
- deletePolicy : String;
- preview : boolean;
- end;
-
-
- //Optional query Options for TDeploymentsResource, method Update
-
- TDeploymentsUpdateOptions = Record
- createPolicy : String;
- deletePolicy : String;
- preview : boolean;
- end;
-
- TDeploymentsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function CancelPreview(deployment: string; project: string; aDeploymentsCancelPreviewRequest : TDeploymentsCancelPreviewRequest) : TOperation;
- Function Delete(deployment: string; project: string) : TOperation;
- Function Get(deployment: string; project: string) : TDeployment;
- Function Insert(project: string; aDeployment : TDeployment; AQuery : string = '') : TOperation;
- Function Insert(project: string; aDeployment : TDeployment; AQuery : TDeploymentsinsertOptions) : TOperation;
- Function List(project: string; AQuery : string = '') : TDeploymentsListResponse;
- Function List(project: string; AQuery : TDeploymentslistOptions) : TDeploymentsListResponse;
- Function Patch(deployment: string; project: string; aDeployment : TDeployment; AQuery : string = '') : TOperation;
- Function Patch(deployment: string; project: string; aDeployment : TDeployment; AQuery : TDeploymentspatchOptions) : TOperation;
- Function Stop(deployment: string; project: string; aDeploymentsStopRequest : TDeploymentsStopRequest) : TOperation;
- Function Update(deployment: string; project: string; aDeployment : TDeployment; AQuery : string = '') : TOperation;
- Function Update(deployment: string; project: string; aDeployment : TDeployment; AQuery : TDeploymentsupdateOptions) : TOperation;
- end;
-
-
- { --------------------------------------------------------------------
- TManifestsResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TManifestsResource, method List
-
- TManifestsListOptions = Record
- filter : String;
- maxResults : integer;
- pageToken : String;
- end;
-
- TManifestsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Get(deployment: string; manifest: string; project: string) : TManifest;
- Function List(deployment: string; project: string; AQuery : string = '') : TManifestsListResponse;
- Function List(deployment: string; project: string; AQuery : TManifestslistOptions) : TManifestsListResponse;
- end;
-
-
- { --------------------------------------------------------------------
- TOperationsResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TOperationsResource, method List
-
- TOperationsListOptions = Record
- filter : String;
- maxResults : integer;
- pageToken : String;
- end;
-
- TOperationsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Get(operation: string; project: string) : TOperation;
- Function List(project: string; AQuery : string = '') : TOperationsListResponse;
- Function List(project: string; AQuery : TOperationslistOptions) : TOperationsListResponse;
- end;
-
-
- { --------------------------------------------------------------------
- TResourcesResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TResourcesResource, method List
-
- TResourcesListOptions = Record
- filter : String;
- maxResults : integer;
- pageToken : String;
- end;
-
- TResourcesResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Get(deployment: string; project: string; resource: string) : TResource;
- Function List(deployment: string; project: string; AQuery : string = '') : TResourcesListResponse;
- Function List(deployment: string; project: string; AQuery : TResourceslistOptions) : TResourcesListResponse;
- end;
-
-
- { --------------------------------------------------------------------
- TTypesResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TTypesResource, method List
-
- TTypesListOptions = Record
- filter : String;
- maxResults : integer;
- pageToken : String;
- end;
-
- TTypesResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function List(project: string; AQuery : string = '') : TTypesListResponse;
- Function List(project: string; AQuery : TTypeslistOptions) : TTypesListResponse;
- end;
-
-
- { --------------------------------------------------------------------
- TDeploymentmanagerAPI
- --------------------------------------------------------------------}
-
- TDeploymentmanagerAPI = Class(TGoogleAPI)
- Private
- FDeploymentsInstance : TDeploymentsResource;
- FManifestsInstance : TManifestsResource;
- FOperationsInstance : TOperationsResource;
- FResourcesInstance : TResourcesResource;
- FTypesInstance : TTypesResource;
- Function GetDeploymentsInstance : TDeploymentsResource;virtual;
- Function GetManifestsInstance : TManifestsResource;virtual;
- Function GetOperationsInstance : TOperationsResource;virtual;
- Function GetResourcesInstance : TResourcesResource;virtual;
- Function GetTypesInstance : TTypesResource;virtual;
- Public
- //Override class functions with API info
- Class Function APIName : String; override;
- Class Function APIVersion : String; override;
- Class Function APIRevision : String; override;
- Class Function APIID : String; override;
- Class Function APITitle : String; override;
- Class Function APIDescription : String; override;
- Class Function APIOwnerDomain : String; override;
- Class Function APIOwnerName : String; override;
- Class Function APIIcon16 : String; override;
- Class Function APIIcon32 : String; override;
- Class Function APIdocumentationLink : String; override;
- Class Function APIrootUrl : string; override;
- Class Function APIbasePath : string;override;
- Class Function APIbaseURL : String;override;
- Class Function APIProtocol : string;override;
- Class Function APIservicePath : string;override;
- Class Function APIbatchPath : String;override;
- Class Function APIAuthScopes : TScopeInfoArray;override;
- Class Function APINeedsAuth : Boolean;override;
- Class Procedure RegisterAPIResources; override;
- //Add create function for resources
- Function CreateDeploymentsResource(AOwner : TComponent) : TDeploymentsResource;virtual;overload;
- Function CreateDeploymentsResource : TDeploymentsResource;virtual;overload;
- Function CreateManifestsResource(AOwner : TComponent) : TManifestsResource;virtual;overload;
- Function CreateManifestsResource : TManifestsResource;virtual;overload;
- Function CreateOperationsResource(AOwner : TComponent) : TOperationsResource;virtual;overload;
- Function CreateOperationsResource : TOperationsResource;virtual;overload;
- Function CreateResourcesResource(AOwner : TComponent) : TResourcesResource;virtual;overload;
- Function CreateResourcesResource : TResourcesResource;virtual;overload;
- Function CreateTypesResource(AOwner : TComponent) : TTypesResource;virtual;overload;
- Function CreateTypesResource : TTypesResource;virtual;overload;
- //Add default on-demand instances for resources
- Property DeploymentsResource : TDeploymentsResource Read GetDeploymentsInstance;
- Property ManifestsResource : TManifestsResource Read GetManifestsInstance;
- Property OperationsResource : TOperationsResource Read GetOperationsInstance;
- Property ResourcesResource : TResourcesResource Read GetResourcesInstance;
- Property TypesResource : TTypesResource Read GetTypesInstance;
- end;
- implementation
- { --------------------------------------------------------------------
- TConfigFile
- --------------------------------------------------------------------}
- Procedure TConfigFile.Setcontent(AIndex : Integer; const AValue : String);
- begin
- If (Fcontent=AValue) then exit;
- Fcontent:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TDeployment
- --------------------------------------------------------------------}
- Procedure TDeployment.Setdescription(AIndex : Integer; const AValue : String);
- begin
- If (Fdescription=AValue) then exit;
- Fdescription:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeployment.Setfingerprint(AIndex : Integer; const AValue : String);
- begin
- If (Ffingerprint=AValue) then exit;
- Ffingerprint:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeployment.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeployment.SetinsertTime(AIndex : Integer; const AValue : String);
- begin
- If (FinsertTime=AValue) then exit;
- FinsertTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeployment.Setlabels(AIndex : Integer; const AValue : TDeploymentTypelabelsArray);
- begin
- If (Flabels=AValue) then exit;
- Flabels:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeployment.Setmanifest(AIndex : Integer; const AValue : String);
- begin
- If (Fmanifest=AValue) then exit;
- Fmanifest:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeployment.Setname(AIndex : Integer; const AValue : String);
- begin
- If (Fname=AValue) then exit;
- Fname:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeployment.Setoperation(AIndex : Integer; const AValue : TOperation);
- begin
- If (Foperation=AValue) then exit;
- Foperation:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeployment.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeployment.Settarget(AIndex : Integer; const AValue : TTargetConfiguration);
- begin
- If (Ftarget=AValue) then exit;
- Ftarget:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeployment.Setupdate(AIndex : Integer; const AValue : TDeploymentUpdate);
- begin
- If (Fupdate=AValue) then exit;
- Fupdate:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TDeployment.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'labels' : SetLength(Flabels,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TDeploymentLabelEntry
- --------------------------------------------------------------------}
- Procedure TDeploymentLabelEntry.Setkey(AIndex : Integer; const AValue : String);
- begin
- If (Fkey=AValue) then exit;
- Fkey:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeploymentLabelEntry.Setvalue(AIndex : Integer; const AValue : String);
- begin
- If (Fvalue=AValue) then exit;
- Fvalue:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TDeploymentUpdate
- --------------------------------------------------------------------}
- Procedure TDeploymentUpdate.Setlabels(AIndex : Integer; const AValue : TDeploymentUpdateTypelabelsArray);
- begin
- If (Flabels=AValue) then exit;
- Flabels:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeploymentUpdate.Setmanifest(AIndex : Integer; const AValue : String);
- begin
- If (Fmanifest=AValue) then exit;
- Fmanifest:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TDeploymentUpdate.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'labels' : SetLength(Flabels,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TDeploymentUpdateLabelEntry
- --------------------------------------------------------------------}
- Procedure TDeploymentUpdateLabelEntry.Setkey(AIndex : Integer; const AValue : String);
- begin
- If (Fkey=AValue) then exit;
- Fkey:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeploymentUpdateLabelEntry.Setvalue(AIndex : Integer; const AValue : String);
- begin
- If (Fvalue=AValue) then exit;
- Fvalue:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TDeploymentsCancelPreviewRequest
- --------------------------------------------------------------------}
- Procedure TDeploymentsCancelPreviewRequest.Setfingerprint(AIndex : Integer; const AValue : String);
- begin
- If (Ffingerprint=AValue) then exit;
- Ffingerprint:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TDeploymentsListResponse
- --------------------------------------------------------------------}
- Procedure TDeploymentsListResponse.Setdeployments(AIndex : Integer; const AValue : TDeploymentsListResponseTypedeploymentsArray);
- begin
- If (Fdeployments=AValue) then exit;
- Fdeployments:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDeploymentsListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
- begin
- If (FnextPageToken=AValue) then exit;
- FnextPageToken:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TDeploymentsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'deployments' : SetLength(Fdeployments,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TDeploymentsStopRequest
- --------------------------------------------------------------------}
- Procedure TDeploymentsStopRequest.Setfingerprint(AIndex : Integer; const AValue : String);
- begin
- If (Ffingerprint=AValue) then exit;
- Ffingerprint:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TImportFile
- --------------------------------------------------------------------}
- Procedure TImportFile.Setcontent(AIndex : Integer; const AValue : String);
- begin
- If (Fcontent=AValue) then exit;
- Fcontent:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TImportFile.Setname(AIndex : Integer; const AValue : String);
- begin
- If (Fname=AValue) then exit;
- Fname:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TManifest
- --------------------------------------------------------------------}
- Procedure TManifest.Setconfig(AIndex : Integer; const AValue : TConfigFile);
- begin
- If (Fconfig=AValue) then exit;
- Fconfig:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TManifest.SetexpandedConfig(AIndex : Integer; const AValue : String);
- begin
- If (FexpandedConfig=AValue) then exit;
- FexpandedConfig:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TManifest.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TManifest.Setimports(AIndex : Integer; const AValue : TManifestTypeimportsArray);
- begin
- If (Fimports=AValue) then exit;
- Fimports:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TManifest.SetinsertTime(AIndex : Integer; const AValue : String);
- begin
- If (FinsertTime=AValue) then exit;
- FinsertTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TManifest.Setlayout(AIndex : Integer; const AValue : String);
- begin
- If (Flayout=AValue) then exit;
- Flayout:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TManifest.Setname(AIndex : Integer; const AValue : String);
- begin
- If (Fname=AValue) then exit;
- Fname:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TManifest.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TManifest.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'imports' : SetLength(Fimports,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TManifestsListResponse
- --------------------------------------------------------------------}
- Procedure TManifestsListResponse.Setmanifests(AIndex : Integer; const AValue : TManifestsListResponseTypemanifestsArray);
- begin
- If (Fmanifests=AValue) then exit;
- Fmanifests:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TManifestsListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
- begin
- If (FnextPageToken=AValue) then exit;
- FnextPageToken:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TManifestsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'manifests' : SetLength(Fmanifests,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TOperationTypeerrorTypeerrorsItem
- --------------------------------------------------------------------}
- Procedure TOperationTypeerrorTypeerrorsItem.Setcode(AIndex : Integer; const AValue : String);
- begin
- If (Fcode=AValue) then exit;
- Fcode:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperationTypeerrorTypeerrorsItem.Setlocation(AIndex : Integer; const AValue : String);
- begin
- If (Flocation=AValue) then exit;
- Flocation:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperationTypeerrorTypeerrorsItem.Setmessage(AIndex : Integer; const AValue : String);
- begin
- If (Fmessage=AValue) then exit;
- Fmessage:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TOperationTypeerror
- --------------------------------------------------------------------}
- Procedure TOperationTypeerror.Seterrors(AIndex : Integer; const AValue : TOperationTypeerrorTypeerrorsArray);
- begin
- If (Ferrors=AValue) then exit;
- Ferrors:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TOperationTypeerror.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'errors' : SetLength(Ferrors,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TOperationTypewarningsItemTypedataItem
- --------------------------------------------------------------------}
- Procedure TOperationTypewarningsItemTypedataItem.Setkey(AIndex : Integer; const AValue : String);
- begin
- If (Fkey=AValue) then exit;
- Fkey:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperationTypewarningsItemTypedataItem.Setvalue(AIndex : Integer; const AValue : String);
- begin
- If (Fvalue=AValue) then exit;
- Fvalue:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TOperationTypewarningsItem
- --------------------------------------------------------------------}
- Procedure TOperationTypewarningsItem.Setcode(AIndex : Integer; const AValue : String);
- begin
- If (Fcode=AValue) then exit;
- Fcode:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperationTypewarningsItem.Setdata(AIndex : Integer; const AValue : TOperationTypewarningsItemTypedataArray);
- begin
- If (Fdata=AValue) then exit;
- Fdata:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperationTypewarningsItem.Setmessage(AIndex : Integer; const AValue : String);
- begin
- If (Fmessage=AValue) then exit;
- Fmessage:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TOperationTypewarningsItem.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'data' : SetLength(Fdata,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TOperation
- --------------------------------------------------------------------}
- Procedure TOperation.SetclientOperationId(AIndex : Integer; const AValue : String);
- begin
- If (FclientOperationId=AValue) then exit;
- FclientOperationId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.SetcreationTimestamp(AIndex : Integer; const AValue : String);
- begin
- If (FcreationTimestamp=AValue) then exit;
- FcreationTimestamp:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.Setdescription(AIndex : Integer; const AValue : String);
- begin
- If (Fdescription=AValue) then exit;
- Fdescription:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.SetendTime(AIndex : Integer; const AValue : String);
- begin
- If (FendTime=AValue) then exit;
- FendTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.Seterror(AIndex : Integer; const AValue : TOperationTypeerror);
- begin
- If (Ferror=AValue) then exit;
- Ferror:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.SethttpErrorMessage(AIndex : Integer; const AValue : String);
- begin
- If (FhttpErrorMessage=AValue) then exit;
- FhttpErrorMessage:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.SethttpErrorStatusCode(AIndex : Integer; const AValue : integer);
- begin
- If (FhttpErrorStatusCode=AValue) then exit;
- FhttpErrorStatusCode:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.SetinsertTime(AIndex : Integer; const AValue : String);
- begin
- If (FinsertTime=AValue) then exit;
- FinsertTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.Setname(AIndex : Integer; const AValue : String);
- begin
- If (Fname=AValue) then exit;
- Fname:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.SetoperationType(AIndex : Integer; const AValue : String);
- begin
- If (FoperationType=AValue) then exit;
- FoperationType:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.Setprogress(AIndex : Integer; const AValue : integer);
- begin
- If (Fprogress=AValue) then exit;
- Fprogress:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.Setregion(AIndex : Integer; const AValue : String);
- begin
- If (Fregion=AValue) then exit;
- Fregion:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.SetstartTime(AIndex : Integer; const AValue : String);
- begin
- If (FstartTime=AValue) then exit;
- FstartTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.Setstatus(AIndex : Integer; const AValue : String);
- begin
- If (Fstatus=AValue) then exit;
- Fstatus:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.SetstatusMessage(AIndex : Integer; const AValue : String);
- begin
- If (FstatusMessage=AValue) then exit;
- FstatusMessage:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.SettargetId(AIndex : Integer; const AValue : String);
- begin
- If (FtargetId=AValue) then exit;
- FtargetId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.SettargetLink(AIndex : Integer; const AValue : String);
- begin
- If (FtargetLink=AValue) then exit;
- FtargetLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.Setuser(AIndex : Integer; const AValue : String);
- begin
- If (Fuser=AValue) then exit;
- Fuser:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.Setwarnings(AIndex : Integer; const AValue : TOperationTypewarningsArray);
- begin
- If (Fwarnings=AValue) then exit;
- Fwarnings:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperation.Setzone(AIndex : Integer; const AValue : String);
- begin
- If (Fzone=AValue) then exit;
- Fzone:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TOperation.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'warnings' : SetLength(Fwarnings,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TOperationsListResponse
- --------------------------------------------------------------------}
- Procedure TOperationsListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
- begin
- If (FnextPageToken=AValue) then exit;
- FnextPageToken:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperationsListResponse.Setoperations(AIndex : Integer; const AValue : TOperationsListResponseTypeoperationsArray);
- begin
- If (Foperations=AValue) then exit;
- Foperations:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TOperationsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'operations' : SetLength(Foperations,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TResourceTypewarningsItemTypedataItem
- --------------------------------------------------------------------}
- Procedure TResourceTypewarningsItemTypedataItem.Setkey(AIndex : Integer; const AValue : String);
- begin
- If (Fkey=AValue) then exit;
- Fkey:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceTypewarningsItemTypedataItem.Setvalue(AIndex : Integer; const AValue : String);
- begin
- If (Fvalue=AValue) then exit;
- Fvalue:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TResourceTypewarningsItem
- --------------------------------------------------------------------}
- Procedure TResourceTypewarningsItem.Setcode(AIndex : Integer; const AValue : String);
- begin
- If (Fcode=AValue) then exit;
- Fcode:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceTypewarningsItem.Setdata(AIndex : Integer; const AValue : TResourceTypewarningsItemTypedataArray);
- begin
- If (Fdata=AValue) then exit;
- Fdata:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceTypewarningsItem.Setmessage(AIndex : Integer; const AValue : String);
- begin
- If (Fmessage=AValue) then exit;
- Fmessage:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TResourceTypewarningsItem.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'data' : SetLength(Fdata,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TResource
- --------------------------------------------------------------------}
- Procedure TResource.SetfinalProperties(AIndex : Integer; const AValue : String);
- begin
- If (FfinalProperties=AValue) then exit;
- FfinalProperties:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResource.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResource.SetinsertTime(AIndex : Integer; const AValue : String);
- begin
- If (FinsertTime=AValue) then exit;
- FinsertTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResource.Setmanifest(AIndex : Integer; const AValue : String);
- begin
- If (Fmanifest=AValue) then exit;
- Fmanifest:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResource.Setname(AIndex : Integer; const AValue : String);
- begin
- If (Fname=AValue) then exit;
- Fname:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResource.Setproperties(AIndex : Integer; const AValue : String);
- begin
- If (Fproperties=AValue) then exit;
- Fproperties:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResource.Set_type(AIndex : Integer; const AValue : String);
- begin
- If (F_type=AValue) then exit;
- F_type:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResource.Setupdate(AIndex : Integer; const AValue : TResourceUpdate);
- begin
- If (Fupdate=AValue) then exit;
- Fupdate:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResource.SetupdateTime(AIndex : Integer; const AValue : String);
- begin
- If (FupdateTime=AValue) then exit;
- FupdateTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResource.Seturl(AIndex : Integer; const AValue : String);
- begin
- If (Furl=AValue) then exit;
- Furl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResource.Setwarnings(AIndex : Integer; const AValue : TResourceTypewarningsArray);
- begin
- If (Fwarnings=AValue) then exit;
- Fwarnings:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Class Function TResource.ExportPropertyName(Const AName : String) :String;
- begin
- Case AName of
- '_type' : Result:='type';
- else
- Result:=Inherited ExportPropertyName(AName);
- end;
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TResource.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'warnings' : SetLength(Fwarnings,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TResourceUpdateTypeerrorTypeerrorsItem
- --------------------------------------------------------------------}
- Procedure TResourceUpdateTypeerrorTypeerrorsItem.Setcode(AIndex : Integer; const AValue : String);
- begin
- If (Fcode=AValue) then exit;
- Fcode:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceUpdateTypeerrorTypeerrorsItem.Setlocation(AIndex : Integer; const AValue : String);
- begin
- If (Flocation=AValue) then exit;
- Flocation:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceUpdateTypeerrorTypeerrorsItem.Setmessage(AIndex : Integer; const AValue : String);
- begin
- If (Fmessage=AValue) then exit;
- Fmessage:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TResourceUpdateTypeerror
- --------------------------------------------------------------------}
- Procedure TResourceUpdateTypeerror.Seterrors(AIndex : Integer; const AValue : TResourceUpdateTypeerrorTypeerrorsArray);
- begin
- If (Ferrors=AValue) then exit;
- Ferrors:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TResourceUpdateTypeerror.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'errors' : SetLength(Ferrors,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TResourceUpdateTypewarningsItemTypedataItem
- --------------------------------------------------------------------}
- Procedure TResourceUpdateTypewarningsItemTypedataItem.Setkey(AIndex : Integer; const AValue : String);
- begin
- If (Fkey=AValue) then exit;
- Fkey:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceUpdateTypewarningsItemTypedataItem.Setvalue(AIndex : Integer; const AValue : String);
- begin
- If (Fvalue=AValue) then exit;
- Fvalue:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TResourceUpdateTypewarningsItem
- --------------------------------------------------------------------}
- Procedure TResourceUpdateTypewarningsItem.Setcode(AIndex : Integer; const AValue : String);
- begin
- If (Fcode=AValue) then exit;
- Fcode:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceUpdateTypewarningsItem.Setdata(AIndex : Integer; const AValue : TResourceUpdateTypewarningsItemTypedataArray);
- begin
- If (Fdata=AValue) then exit;
- Fdata:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceUpdateTypewarningsItem.Setmessage(AIndex : Integer; const AValue : String);
- begin
- If (Fmessage=AValue) then exit;
- Fmessage:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TResourceUpdateTypewarningsItem.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'data' : SetLength(Fdata,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TResourceUpdate
- --------------------------------------------------------------------}
- Procedure TResourceUpdate.Seterror(AIndex : Integer; const AValue : TResourceUpdateTypeerror);
- begin
- If (Ferror=AValue) then exit;
- Ferror:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceUpdate.SetfinalProperties(AIndex : Integer; const AValue : String);
- begin
- If (FfinalProperties=AValue) then exit;
- FfinalProperties:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceUpdate.Setintent(AIndex : Integer; const AValue : String);
- begin
- If (Fintent=AValue) then exit;
- Fintent:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceUpdate.Setmanifest(AIndex : Integer; const AValue : String);
- begin
- If (Fmanifest=AValue) then exit;
- Fmanifest:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceUpdate.Setproperties(AIndex : Integer; const AValue : String);
- begin
- If (Fproperties=AValue) then exit;
- Fproperties:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceUpdate.Setstate(AIndex : Integer; const AValue : String);
- begin
- If (Fstate=AValue) then exit;
- Fstate:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceUpdate.Setwarnings(AIndex : Integer; const AValue : TResourceUpdateTypewarningsArray);
- begin
- If (Fwarnings=AValue) then exit;
- Fwarnings:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TResourceUpdate.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'warnings' : SetLength(Fwarnings,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TResourcesListResponse
- --------------------------------------------------------------------}
- Procedure TResourcesListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
- begin
- If (FnextPageToken=AValue) then exit;
- FnextPageToken:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourcesListResponse.Setresources(AIndex : Integer; const AValue : TResourcesListResponseTyperesourcesArray);
- begin
- If (Fresources=AValue) then exit;
- Fresources:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TResourcesListResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'resources' : SetLength(Fresources,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TTargetConfiguration
- --------------------------------------------------------------------}
- Procedure TTargetConfiguration.Setconfig(AIndex : Integer; const AValue : TConfigFile);
- begin
- If (Fconfig=AValue) then exit;
- Fconfig:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TTargetConfiguration.Setimports(AIndex : Integer; const AValue : TTargetConfigurationTypeimportsArray);
- begin
- If (Fimports=AValue) then exit;
- Fimports:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TTargetConfiguration.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'imports' : SetLength(Fimports,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TType
- --------------------------------------------------------------------}
- Procedure TType.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TType.SetinsertTime(AIndex : Integer; const AValue : String);
- begin
- If (FinsertTime=AValue) then exit;
- FinsertTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TType.Setname(AIndex : Integer; const AValue : String);
- begin
- If (Fname=AValue) then exit;
- Fname:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TType.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TTypesListResponse
- --------------------------------------------------------------------}
- Procedure TTypesListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
- begin
- If (FnextPageToken=AValue) then exit;
- FnextPageToken:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TTypesListResponse.Settypes(AIndex : Integer; const AValue : TTypesListResponseTypetypesArray);
- begin
- If (Ftypes=AValue) then exit;
- Ftypes:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TTypesListResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'types' : SetLength(Ftypes,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TDeploymentsResource
- --------------------------------------------------------------------}
- Class Function TDeploymentsResource.ResourceName : String;
- begin
- Result:='deployments';
- end;
- Class Function TDeploymentsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TdeploymentmanagerAPI;
- end;
- Function TDeploymentsResource.CancelPreview(deployment: string; project: string; aDeploymentsCancelPreviewRequest : TDeploymentsCancelPreviewRequest) : TOperation;
- Const
- _HTTPMethod = 'POST';
- _Path = '{project}/global/deployments/{deployment}/cancelPreview';
- _Methodid = 'deploymentmanager.deployments.cancelPreview';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aDeploymentsCancelPreviewRequest,TOperation) as TOperation;
- end;
- Function TDeploymentsResource.Delete(deployment: string; project: string) : TOperation;
- Const
- _HTTPMethod = 'DELETE';
- _Path = '{project}/global/deployments/{deployment}';
- _Methodid = 'deploymentmanager.deployments.delete';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TOperation) as TOperation;
- end;
- Function TDeploymentsResource.Get(deployment: string; project: string) : TDeployment;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/global/deployments/{deployment}';
- _Methodid = 'deploymentmanager.deployments.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TDeployment) as TDeployment;
- end;
- Function TDeploymentsResource.Insert(project: string; aDeployment : TDeployment; AQuery : string = '') : TOperation;
- Const
- _HTTPMethod = 'POST';
- _Path = '{project}/global/deployments';
- _Methodid = 'deploymentmanager.deployments.insert';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,aDeployment,TOperation) as TOperation;
- end;
- Function TDeploymentsResource.Insert(project: string; aDeployment : TDeployment; AQuery : TDeploymentsinsertOptions) : TOperation;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'preview',AQuery.preview);
- Result:=Insert(project,aDeployment,_Q);
- end;
- Function TDeploymentsResource.List(project: string; AQuery : string = '') : TDeploymentsListResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/global/deployments';
- _Methodid = 'deploymentmanager.deployments.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TDeploymentsListResponse) as TDeploymentsListResponse;
- end;
- Function TDeploymentsResource.List(project: string; AQuery : TDeploymentslistOptions) : TDeploymentsListResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'filter',AQuery.filter);
- AddToQuery(_Q,'maxResults',AQuery.maxResults);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(project,_Q);
- end;
- Function TDeploymentsResource.Patch(deployment: string; project: string; aDeployment : TDeployment; AQuery : string = '') : TOperation;
- Const
- _HTTPMethod = 'PATCH';
- _Path = '{project}/global/deployments/{deployment}';
- _Methodid = 'deploymentmanager.deployments.patch';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,aDeployment,TOperation) as TOperation;
- end;
- Function TDeploymentsResource.Patch(deployment: string; project: string; aDeployment : TDeployment; AQuery : TDeploymentspatchOptions) : TOperation;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'createPolicy',AQuery.createPolicy);
- AddToQuery(_Q,'deletePolicy',AQuery.deletePolicy);
- AddToQuery(_Q,'preview',AQuery.preview);
- Result:=Patch(deployment,project,aDeployment,_Q);
- end;
- Function TDeploymentsResource.Stop(deployment: string; project: string; aDeploymentsStopRequest : TDeploymentsStopRequest) : TOperation;
- Const
- _HTTPMethod = 'POST';
- _Path = '{project}/global/deployments/{deployment}/stop';
- _Methodid = 'deploymentmanager.deployments.stop';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aDeploymentsStopRequest,TOperation) as TOperation;
- end;
- Function TDeploymentsResource.Update(deployment: string; project: string; aDeployment : TDeployment; AQuery : string = '') : TOperation;
- Const
- _HTTPMethod = 'PUT';
- _Path = '{project}/global/deployments/{deployment}';
- _Methodid = 'deploymentmanager.deployments.update';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,aDeployment,TOperation) as TOperation;
- end;
- Function TDeploymentsResource.Update(deployment: string; project: string; aDeployment : TDeployment; AQuery : TDeploymentsupdateOptions) : TOperation;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'createPolicy',AQuery.createPolicy);
- AddToQuery(_Q,'deletePolicy',AQuery.deletePolicy);
- AddToQuery(_Q,'preview',AQuery.preview);
- Result:=Update(deployment,project,aDeployment,_Q);
- end;
- { --------------------------------------------------------------------
- TManifestsResource
- --------------------------------------------------------------------}
- Class Function TManifestsResource.ResourceName : String;
- begin
- Result:='manifests';
- end;
- Class Function TManifestsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TdeploymentmanagerAPI;
- end;
- Function TManifestsResource.Get(deployment: string; manifest: string; project: string) : TManifest;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/global/deployments/{deployment}/manifests/{manifest}';
- _Methodid = 'deploymentmanager.manifests.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['deployment',deployment,'manifest',manifest,'project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TManifest) as TManifest;
- end;
- Function TManifestsResource.List(deployment: string; project: string; AQuery : string = '') : TManifestsListResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/global/deployments/{deployment}/manifests';
- _Methodid = 'deploymentmanager.manifests.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TManifestsListResponse) as TManifestsListResponse;
- end;
- Function TManifestsResource.List(deployment: string; project: string; AQuery : TManifestslistOptions) : TManifestsListResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'filter',AQuery.filter);
- AddToQuery(_Q,'maxResults',AQuery.maxResults);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(deployment,project,_Q);
- end;
- { --------------------------------------------------------------------
- TOperationsResource
- --------------------------------------------------------------------}
- Class Function TOperationsResource.ResourceName : String;
- begin
- Result:='operations';
- end;
- Class Function TOperationsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TdeploymentmanagerAPI;
- end;
- Function TOperationsResource.Get(operation: string; project: string) : TOperation;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/global/operations/{operation}';
- _Methodid = 'deploymentmanager.operations.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['operation',operation,'project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TOperation) as TOperation;
- end;
- Function TOperationsResource.List(project: string; AQuery : string = '') : TOperationsListResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/global/operations';
- _Methodid = 'deploymentmanager.operations.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TOperationsListResponse) as TOperationsListResponse;
- end;
- Function TOperationsResource.List(project: string; AQuery : TOperationslistOptions) : TOperationsListResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'filter',AQuery.filter);
- AddToQuery(_Q,'maxResults',AQuery.maxResults);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(project,_Q);
- end;
- { --------------------------------------------------------------------
- TResourcesResource
- --------------------------------------------------------------------}
- Class Function TResourcesResource.ResourceName : String;
- begin
- Result:='resources';
- end;
- Class Function TResourcesResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TdeploymentmanagerAPI;
- end;
- Function TResourcesResource.Get(deployment: string; project: string; resource: string) : TResource;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/global/deployments/{deployment}/resources/{resource}';
- _Methodid = 'deploymentmanager.resources.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['deployment',deployment,'project',project,'resource',resource]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TResource) as TResource;
- end;
- Function TResourcesResource.List(deployment: string; project: string; AQuery : string = '') : TResourcesListResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/global/deployments/{deployment}/resources';
- _Methodid = 'deploymentmanager.resources.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['deployment',deployment,'project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TResourcesListResponse) as TResourcesListResponse;
- end;
- Function TResourcesResource.List(deployment: string; project: string; AQuery : TResourceslistOptions) : TResourcesListResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'filter',AQuery.filter);
- AddToQuery(_Q,'maxResults',AQuery.maxResults);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(deployment,project,_Q);
- end;
- { --------------------------------------------------------------------
- TTypesResource
- --------------------------------------------------------------------}
- Class Function TTypesResource.ResourceName : String;
- begin
- Result:='types';
- end;
- Class Function TTypesResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TdeploymentmanagerAPI;
- end;
- Function TTypesResource.List(project: string; AQuery : string = '') : TTypesListResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/global/types';
- _Methodid = 'deploymentmanager.types.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TTypesListResponse) as TTypesListResponse;
- end;
- Function TTypesResource.List(project: string; AQuery : TTypeslistOptions) : TTypesListResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'filter',AQuery.filter);
- AddToQuery(_Q,'maxResults',AQuery.maxResults);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(project,_Q);
- end;
- { --------------------------------------------------------------------
- TDeploymentmanagerAPI
- --------------------------------------------------------------------}
- Class Function TDeploymentmanagerAPI.APIName : String;
- begin
- Result:='deploymentmanager';
- end;
- Class Function TDeploymentmanagerAPI.APIVersion : String;
- begin
- Result:='v2';
- end;
- Class Function TDeploymentmanagerAPI.APIRevision : String;
- begin
- Result:='20160426';
- end;
- Class Function TDeploymentmanagerAPI.APIID : String;
- begin
- Result:='deploymentmanager:v2';
- end;
- Class Function TDeploymentmanagerAPI.APITitle : String;
- begin
- Result:='Google Cloud Deployment Manager API';
- end;
- Class Function TDeploymentmanagerAPI.APIDescription : String;
- begin
- Result:='Declares, configures, and deploys complex solutions on Google Cloud Platform.';
- end;
- Class Function TDeploymentmanagerAPI.APIOwnerDomain : String;
- begin
- Result:='google.com';
- end;
- Class Function TDeploymentmanagerAPI.APIOwnerName : String;
- begin
- Result:='Google';
- end;
- Class Function TDeploymentmanagerAPI.APIIcon16 : String;
- begin
- Result:='http://www.google.com/images/icons/product/search-16.gif';
- end;
- Class Function TDeploymentmanagerAPI.APIIcon32 : String;
- begin
- Result:='http://www.google.com/images/icons/product/search-32.gif';
- end;
- Class Function TDeploymentmanagerAPI.APIdocumentationLink : String;
- begin
- Result:='https://cloud.google.com/deployment-manager/';
- end;
- Class Function TDeploymentmanagerAPI.APIrootUrl : string;
- begin
- Result:='https://www.googleapis.com/';
- end;
- Class Function TDeploymentmanagerAPI.APIbasePath : string;
- begin
- Result:='/deploymentmanager/v2/projects/';
- end;
- Class Function TDeploymentmanagerAPI.APIbaseURL : String;
- begin
- Result:='https://www.googleapis.com/deploymentmanager/v2/projects/';
- end;
- Class Function TDeploymentmanagerAPI.APIProtocol : string;
- begin
- Result:='rest';
- end;
- Class Function TDeploymentmanagerAPI.APIservicePath : string;
- begin
- Result:='deploymentmanager/v2/projects/';
- end;
- Class Function TDeploymentmanagerAPI.APIbatchPath : String;
- begin
- Result:='batch';
- end;
- Class Function TDeploymentmanagerAPI.APIAuthScopes : TScopeInfoArray;
- begin
- SetLength(Result,4);
- Result[0].Name:='https://www.googleapis.com/auth/cloud-platform';
- Result[0].Description:='View and manage your data across Google Cloud Platform services';
- Result[1].Name:='https://www.googleapis.com/auth/cloud-platform.read-only';
- Result[1].Description:='View your data across Google Cloud Platform services';
- Result[2].Name:='https://www.googleapis.com/auth/ndev.cloudman';
- Result[2].Description:='View and manage your Google Cloud Platform management resources and deployment status information';
- Result[3].Name:='https://www.googleapis.com/auth/ndev.cloudman.readonly';
- Result[3].Description:='View your Google Cloud Platform management resources and deployment status information';
-
- end;
- Class Function TDeploymentmanagerAPI.APINeedsAuth : Boolean;
- begin
- Result:=True;
- end;
- Class Procedure TDeploymentmanagerAPI.RegisterAPIResources;
- begin
- TConfigFile.RegisterObject;
- TDeployment.RegisterObject;
- TDeploymentLabelEntry.RegisterObject;
- TDeploymentUpdate.RegisterObject;
- TDeploymentUpdateLabelEntry.RegisterObject;
- TDeploymentsCancelPreviewRequest.RegisterObject;
- TDeploymentsListResponse.RegisterObject;
- TDeploymentsStopRequest.RegisterObject;
- TImportFile.RegisterObject;
- TManifest.RegisterObject;
- TManifestsListResponse.RegisterObject;
- TOperationTypeerrorTypeerrorsItem.RegisterObject;
- TOperationTypeerror.RegisterObject;
- TOperationTypewarningsItemTypedataItem.RegisterObject;
- TOperationTypewarningsItem.RegisterObject;
- TOperation.RegisterObject;
- TOperationsListResponse.RegisterObject;
- TResourceTypewarningsItemTypedataItem.RegisterObject;
- TResourceTypewarningsItem.RegisterObject;
- TResource.RegisterObject;
- TResourceUpdateTypeerrorTypeerrorsItem.RegisterObject;
- TResourceUpdateTypeerror.RegisterObject;
- TResourceUpdateTypewarningsItemTypedataItem.RegisterObject;
- TResourceUpdateTypewarningsItem.RegisterObject;
- TResourceUpdate.RegisterObject;
- TResourcesListResponse.RegisterObject;
- TTargetConfiguration.RegisterObject;
- TType.RegisterObject;
- TTypesListResponse.RegisterObject;
- end;
- Function TDeploymentmanagerAPI.GetDeploymentsInstance : TDeploymentsResource;
- begin
- if (FDeploymentsInstance=Nil) then
- FDeploymentsInstance:=CreateDeploymentsResource;
- Result:=FDeploymentsInstance;
- end;
- Function TDeploymentmanagerAPI.CreateDeploymentsResource : TDeploymentsResource;
- begin
- Result:=CreateDeploymentsResource(Self);
- end;
- Function TDeploymentmanagerAPI.CreateDeploymentsResource(AOwner : TComponent) : TDeploymentsResource;
- begin
- Result:=TDeploymentsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TDeploymentmanagerAPI.GetManifestsInstance : TManifestsResource;
- begin
- if (FManifestsInstance=Nil) then
- FManifestsInstance:=CreateManifestsResource;
- Result:=FManifestsInstance;
- end;
- Function TDeploymentmanagerAPI.CreateManifestsResource : TManifestsResource;
- begin
- Result:=CreateManifestsResource(Self);
- end;
- Function TDeploymentmanagerAPI.CreateManifestsResource(AOwner : TComponent) : TManifestsResource;
- begin
- Result:=TManifestsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TDeploymentmanagerAPI.GetOperationsInstance : TOperationsResource;
- begin
- if (FOperationsInstance=Nil) then
- FOperationsInstance:=CreateOperationsResource;
- Result:=FOperationsInstance;
- end;
- Function TDeploymentmanagerAPI.CreateOperationsResource : TOperationsResource;
- begin
- Result:=CreateOperationsResource(Self);
- end;
- Function TDeploymentmanagerAPI.CreateOperationsResource(AOwner : TComponent) : TOperationsResource;
- begin
- Result:=TOperationsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TDeploymentmanagerAPI.GetResourcesInstance : TResourcesResource;
- begin
- if (FResourcesInstance=Nil) then
- FResourcesInstance:=CreateResourcesResource;
- Result:=FResourcesInstance;
- end;
- Function TDeploymentmanagerAPI.CreateResourcesResource : TResourcesResource;
- begin
- Result:=CreateResourcesResource(Self);
- end;
- Function TDeploymentmanagerAPI.CreateResourcesResource(AOwner : TComponent) : TResourcesResource;
- begin
- Result:=TResourcesResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TDeploymentmanagerAPI.GetTypesInstance : TTypesResource;
- begin
- if (FTypesInstance=Nil) then
- FTypesInstance:=CreateTypesResource;
- Result:=FTypesInstance;
- end;
- Function TDeploymentmanagerAPI.CreateTypesResource : TTypesResource;
- begin
- Result:=CreateTypesResource(Self);
- end;
- Function TDeploymentmanagerAPI.CreateTypesResource(AOwner : TComponent) : TTypesResource;
- begin
- Result:=TTypesResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- initialization
- TDeploymentmanagerAPI.RegisterAPI;
- end.
|