| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052 |
- unit googleresourceviews;
- {$MODE objfpc}
- {$H+}
- interface
- uses sysutils, classes, googleservice, restbase, googlebase;
- type
-
- //Top-level schema types
- TLabel = Class;
- TListResourceResponseItem = Class;
- TOperation = Class;
- TOperationList = Class;
- TResourceView = Class;
- TServiceEndpoint = Class;
- TZoneViewsAddResourcesRequest = Class;
- TZoneViewsGetServiceResponse = Class;
- TZoneViewsList = Class;
- TZoneViewsListResourcesResponse = Class;
- TZoneViewsRemoveResourcesRequest = Class;
- TZoneViewsSetServiceRequest = Class;
- TLabelArray = Array of TLabel;
- TListResourceResponseItemArray = Array of TListResourceResponseItem;
- TOperationArray = Array of TOperation;
- TOperationListArray = Array of TOperationList;
- TResourceViewArray = Array of TResourceView;
- TServiceEndpointArray = Array of TServiceEndpoint;
- TZoneViewsAddResourcesRequestArray = Array of TZoneViewsAddResourcesRequest;
- TZoneViewsGetServiceResponseArray = Array of TZoneViewsGetServiceResponse;
- TZoneViewsListArray = Array of TZoneViewsList;
- TZoneViewsListResourcesResponseArray = Array of TZoneViewsListResourcesResponse;
- TZoneViewsRemoveResourcesRequestArray = Array of TZoneViewsRemoveResourcesRequest;
- TZoneViewsSetServiceRequestArray = Array of TZoneViewsSetServiceRequest;
- //Anonymous types, using auto-generated names
- TListResourceResponseItemTypeendpoints = Class;
- TOperationTypeerrorTypeerrorsItem = Class;
- TOperationTypeerror = Class;
- TOperationTypewarningsItemTypedataItem = Class;
- TOperationTypewarningsItem = Class;
- TOperationTypeerrorTypeerrorsArray = Array of TOperationTypeerrorTypeerrorsItem;
- TOperationTypewarningsItemTypedataArray = Array of TOperationTypewarningsItemTypedataItem;
- TOperationTypewarningsArray = Array of TOperationTypewarningsItem;
- TOperationListTypeitemsArray = Array of TOperation;
- TResourceViewTypeendpointsArray = Array of TServiceEndpoint;
- TResourceViewTypelabelsArray = Array of TLabel;
- TZoneViewsGetServiceResponseTypeendpointsArray = Array of TServiceEndpoint;
- TZoneViewsListTypeitemsArray = Array of TResourceView;
- TZoneViewsListResourcesResponseTypeitemsArray = Array of TListResourceResponseItem;
- TZoneViewsSetServiceRequestTypeendpointsArray = Array of TServiceEndpoint;
-
- { --------------------------------------------------------------------
- TLabel
- --------------------------------------------------------------------}
-
- TLabel = 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;
- TLabelClass = Class of TLabel;
-
- { --------------------------------------------------------------------
- TListResourceResponseItemTypeendpoints
- --------------------------------------------------------------------}
-
- TListResourceResponseItemTypeendpoints = Class(TGoogleBaseObject)
- Private
- Protected
- //Property setters
- Public
- Class Function AllowAdditionalProperties : Boolean; override;
- Published
- end;
- TListResourceResponseItemTypeendpointsClass = Class of TListResourceResponseItemTypeendpoints;
-
- { --------------------------------------------------------------------
- TListResourceResponseItem
- --------------------------------------------------------------------}
-
- TListResourceResponseItem = Class(TGoogleBaseObject)
- Private
- Fendpoints : TListResourceResponseItemTypeendpoints;
- Fresource : String;
- Protected
- //Property setters
- Procedure Setendpoints(AIndex : Integer; const AValue : TListResourceResponseItemTypeendpoints); virtual;
- Procedure Setresource(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property endpoints : TListResourceResponseItemTypeendpoints Index 0 Read Fendpoints Write Setendpoints;
- Property resource : String Index 8 Read Fresource Write Setresource;
- end;
- TListResourceResponseItemClass = Class of TListResourceResponseItem;
-
- { --------------------------------------------------------------------
- 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;
- 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 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 endTime : String Index 16 Read FendTime Write SetendTime;
- Property error : TOperationTypeerror Index 24 Read Ferror Write Seterror;
- Property httpErrorMessage : String Index 32 Read FhttpErrorMessage Write SethttpErrorMessage;
- Property httpErrorStatusCode : integer Index 40 Read FhttpErrorStatusCode Write SethttpErrorStatusCode;
- Property id : String Index 48 Read Fid Write Setid;
- Property insertTime : String Index 56 Read FinsertTime Write SetinsertTime;
- Property kind : String Index 64 Read Fkind Write Setkind;
- Property name : String Index 72 Read Fname Write Setname;
- Property operationType : String Index 80 Read FoperationType Write SetoperationType;
- Property progress : integer Index 88 Read Fprogress Write Setprogress;
- Property region : String Index 96 Read Fregion Write Setregion;
- Property selfLink : String Index 104 Read FselfLink Write SetselfLink;
- Property startTime : String Index 112 Read FstartTime Write SetstartTime;
- Property status : String Index 120 Read Fstatus Write Setstatus;
- Property statusMessage : String Index 128 Read FstatusMessage Write SetstatusMessage;
- Property targetId : String Index 136 Read FtargetId Write SettargetId;
- Property targetLink : String Index 144 Read FtargetLink Write SettargetLink;
- Property user : String Index 152 Read Fuser Write Setuser;
- Property warnings : TOperationTypewarningsArray Index 160 Read Fwarnings Write Setwarnings;
- Property zone : String Index 168 Read Fzone Write Setzone;
- end;
- TOperationClass = Class of TOperation;
-
- { --------------------------------------------------------------------
- TOperationList
- --------------------------------------------------------------------}
-
- TOperationList = Class(TGoogleBaseObject)
- Private
- Fid : String;
- Fitems : TOperationListTypeitemsArray;
- Fkind : String;
- FnextPageToken : String;
- FselfLink : String;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setitems(AIndex : Integer; const AValue : TOperationListTypeitemsArray); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure SetnextPageToken(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 id : String Index 0 Read Fid Write Setid;
- Property items : TOperationListTypeitemsArray Index 8 Read Fitems Write Setitems;
- Property kind : String Index 16 Read Fkind Write Setkind;
- Property nextPageToken : String Index 24 Read FnextPageToken Write SetnextPageToken;
- Property selfLink : String Index 32 Read FselfLink Write SetselfLink;
- end;
- TOperationListClass = Class of TOperationList;
-
- { --------------------------------------------------------------------
- TResourceView
- --------------------------------------------------------------------}
-
- TResourceView = Class(TGoogleBaseObject)
- Private
- FcreationTimestamp : String;
- Fdescription : String;
- Fendpoints : TResourceViewTypeendpointsArray;
- Ffingerprint : String;
- Fid : String;
- Fkind : String;
- Flabels : TResourceViewTypelabelsArray;
- Fname : String;
- Fnetwork : String;
- Fresources : TStringArray;
- FselfLink : String;
- Fsize : integer;
- Protected
- //Property setters
- Procedure SetcreationTimestamp(AIndex : Integer; const AValue : String); virtual;
- Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
- Procedure Setendpoints(AIndex : Integer; const AValue : TResourceViewTypeendpointsArray); virtual;
- Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure Setlabels(AIndex : Integer; const AValue : TResourceViewTypelabelsArray); virtual;
- Procedure Setname(AIndex : Integer; const AValue : String); virtual;
- Procedure Setnetwork(AIndex : Integer; const AValue : String); virtual;
- Procedure Setresources(AIndex : Integer; const AValue : TStringArray); virtual;
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- Procedure Setsize(AIndex : Integer; const AValue : integer); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property creationTimestamp : String Index 0 Read FcreationTimestamp Write SetcreationTimestamp;
- Property description : String Index 8 Read Fdescription Write Setdescription;
- Property endpoints : TResourceViewTypeendpointsArray Index 16 Read Fendpoints Write Setendpoints;
- Property fingerprint : String Index 24 Read Ffingerprint Write Setfingerprint;
- Property id : String Index 32 Read Fid Write Setid;
- Property kind : String Index 40 Read Fkind Write Setkind;
- Property labels : TResourceViewTypelabelsArray Index 48 Read Flabels Write Setlabels;
- Property name : String Index 56 Read Fname Write Setname;
- Property network : String Index 64 Read Fnetwork Write Setnetwork;
- Property resources : TStringArray Index 72 Read Fresources Write Setresources;
- Property selfLink : String Index 80 Read FselfLink Write SetselfLink;
- Property size : integer Index 88 Read Fsize Write Setsize;
- end;
- TResourceViewClass = Class of TResourceView;
-
- { --------------------------------------------------------------------
- TServiceEndpoint
- --------------------------------------------------------------------}
-
- TServiceEndpoint = Class(TGoogleBaseObject)
- Private
- Fname : String;
- Fport : integer;
- Protected
- //Property setters
- Procedure Setname(AIndex : Integer; const AValue : String); virtual;
- Procedure Setport(AIndex : Integer; const AValue : integer); virtual;
- Public
- Published
- Property name : String Index 0 Read Fname Write Setname;
- Property port : integer Index 8 Read Fport Write Setport;
- end;
- TServiceEndpointClass = Class of TServiceEndpoint;
-
- { --------------------------------------------------------------------
- TZoneViewsAddResourcesRequest
- --------------------------------------------------------------------}
-
- TZoneViewsAddResourcesRequest = Class(TGoogleBaseObject)
- Private
- Fresources : TStringArray;
- Protected
- //Property setters
- Procedure Setresources(AIndex : Integer; const AValue : TStringArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property resources : TStringArray Index 0 Read Fresources Write Setresources;
- end;
- TZoneViewsAddResourcesRequestClass = Class of TZoneViewsAddResourcesRequest;
-
- { --------------------------------------------------------------------
- TZoneViewsGetServiceResponse
- --------------------------------------------------------------------}
-
- TZoneViewsGetServiceResponse = Class(TGoogleBaseObject)
- Private
- Fendpoints : TZoneViewsGetServiceResponseTypeendpointsArray;
- Ffingerprint : String;
- Protected
- //Property setters
- Procedure Setendpoints(AIndex : Integer; const AValue : TZoneViewsGetServiceResponseTypeendpointsArray); virtual;
- Procedure Setfingerprint(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 endpoints : TZoneViewsGetServiceResponseTypeendpointsArray Index 0 Read Fendpoints Write Setendpoints;
- Property fingerprint : String Index 8 Read Ffingerprint Write Setfingerprint;
- end;
- TZoneViewsGetServiceResponseClass = Class of TZoneViewsGetServiceResponse;
-
- { --------------------------------------------------------------------
- TZoneViewsList
- --------------------------------------------------------------------}
-
- TZoneViewsList = Class(TGoogleBaseObject)
- Private
- Fitems : TZoneViewsListTypeitemsArray;
- Fkind : String;
- FnextPageToken : String;
- FselfLink : String;
- Protected
- //Property setters
- Procedure Setitems(AIndex : Integer; const AValue : TZoneViewsListTypeitemsArray); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure SetnextPageToken(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 items : TZoneViewsListTypeitemsArray Index 0 Read Fitems Write Setitems;
- Property kind : String Index 8 Read Fkind Write Setkind;
- Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
- Property selfLink : String Index 24 Read FselfLink Write SetselfLink;
- end;
- TZoneViewsListClass = Class of TZoneViewsList;
-
- { --------------------------------------------------------------------
- TZoneViewsListResourcesResponse
- --------------------------------------------------------------------}
-
- TZoneViewsListResourcesResponse = Class(TGoogleBaseObject)
- Private
- Fitems : TZoneViewsListResourcesResponseTypeitemsArray;
- Fnetwork : String;
- FnextPageToken : String;
- Protected
- //Property setters
- Procedure Setitems(AIndex : Integer; const AValue : TZoneViewsListResourcesResponseTypeitemsArray); virtual;
- Procedure Setnetwork(AIndex : Integer; const AValue : String); 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 items : TZoneViewsListResourcesResponseTypeitemsArray Index 0 Read Fitems Write Setitems;
- Property network : String Index 8 Read Fnetwork Write Setnetwork;
- Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
- end;
- TZoneViewsListResourcesResponseClass = Class of TZoneViewsListResourcesResponse;
-
- { --------------------------------------------------------------------
- TZoneViewsRemoveResourcesRequest
- --------------------------------------------------------------------}
-
- TZoneViewsRemoveResourcesRequest = Class(TGoogleBaseObject)
- Private
- Fresources : TStringArray;
- Protected
- //Property setters
- Procedure Setresources(AIndex : Integer; const AValue : TStringArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property resources : TStringArray Index 0 Read Fresources Write Setresources;
- end;
- TZoneViewsRemoveResourcesRequestClass = Class of TZoneViewsRemoveResourcesRequest;
-
- { --------------------------------------------------------------------
- TZoneViewsSetServiceRequest
- --------------------------------------------------------------------}
-
- TZoneViewsSetServiceRequest = Class(TGoogleBaseObject)
- Private
- Fendpoints : TZoneViewsSetServiceRequestTypeendpointsArray;
- Ffingerprint : String;
- FresourceName : String;
- Protected
- //Property setters
- Procedure Setendpoints(AIndex : Integer; const AValue : TZoneViewsSetServiceRequestTypeendpointsArray); virtual;
- Procedure Setfingerprint(AIndex : Integer; const AValue : String); virtual;
- Procedure SetresourceName(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 endpoints : TZoneViewsSetServiceRequestTypeendpointsArray Index 0 Read Fendpoints Write Setendpoints;
- Property fingerprint : String Index 8 Read Ffingerprint Write Setfingerprint;
- Property resourceName : String Index 16 Read FresourceName Write SetresourceName;
- end;
- TZoneViewsSetServiceRequestClass = Class of TZoneViewsSetServiceRequest;
-
- { --------------------------------------------------------------------
- TZoneOperationsResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TZoneOperationsResource, method List
-
- TZoneOperationsListOptions = Record
- filter : String;
- maxResults : integer;
- pageToken : String;
- end;
-
- TZoneOperationsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Get(operation: string; project: string; zone: string) : TOperation;
- Function List(project: string; zone: string; AQuery : string = '') : TOperationList;
- Function List(project: string; zone: string; AQuery : TZoneOperationslistOptions) : TOperationList;
- end;
-
-
- { --------------------------------------------------------------------
- TZoneViewsResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TZoneViewsResource, method GetService
-
- TZoneViewsGetServiceOptions = Record
- _resourceName : String;
- end;
-
-
- //Optional query Options for TZoneViewsResource, method List
-
- TZoneViewsListOptions = Record
- maxResults : integer;
- pageToken : String;
- end;
-
-
- //Optional query Options for TZoneViewsResource, method ListResources
-
- TZoneViewsListResourcesOptions = Record
- format : String;
- listState : String;
- maxResults : integer;
- pageToken : String;
- serviceName : String;
- end;
-
- TZoneViewsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function AddResources(project: string; resourceView: string; zone: string; aZoneViewsAddResourcesRequest : TZoneViewsAddResourcesRequest) : TOperation;
- Function Delete(project: string; resourceView: string; zone: string) : TOperation;
- Function Get(project: string; resourceView: string; zone: string) : TResourceView;
- Function GetService(project: string; resourceView: string; zone: string; AQuery : string = '') : TZoneViewsGetServiceResponse;
- Function GetService(project: string; resourceView: string; zone: string; AQuery : TZoneViewsgetServiceOptions) : TZoneViewsGetServiceResponse;
- Function Insert(project: string; zone: string; aResourceView : TResourceView) : TOperation;
- Function List(project: string; zone: string; AQuery : string = '') : TZoneViewsList;
- Function List(project: string; zone: string; AQuery : TZoneViewslistOptions) : TZoneViewsList;
- Function ListResources(project: string; resourceView: string; zone: string; AQuery : string = '') : TZoneViewsListResourcesResponse;
- Function ListResources(project: string; resourceView: string; zone: string; AQuery : TZoneViewslistResourcesOptions) : TZoneViewsListResourcesResponse;
- Function RemoveResources(project: string; resourceView: string; zone: string; aZoneViewsRemoveResourcesRequest : TZoneViewsRemoveResourcesRequest) : TOperation;
- Function SetService(project: string; resourceView: string; zone: string; aZoneViewsSetServiceRequest : TZoneViewsSetServiceRequest) : TOperation;
- end;
-
-
- { --------------------------------------------------------------------
- TResourceviewsAPI
- --------------------------------------------------------------------}
-
- TResourceviewsAPI = Class(TGoogleAPI)
- Private
- FZoneOperationsInstance : TZoneOperationsResource;
- FZoneViewsInstance : TZoneViewsResource;
- Function GetZoneOperationsInstance : TZoneOperationsResource;virtual;
- Function GetZoneViewsInstance : TZoneViewsResource;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 CreateZoneOperationsResource(AOwner : TComponent) : TZoneOperationsResource;virtual;overload;
- Function CreateZoneOperationsResource : TZoneOperationsResource;virtual;overload;
- Function CreateZoneViewsResource(AOwner : TComponent) : TZoneViewsResource;virtual;overload;
- Function CreateZoneViewsResource : TZoneViewsResource;virtual;overload;
- //Add default on-demand instances for resources
- Property ZoneOperationsResource : TZoneOperationsResource Read GetZoneOperationsInstance;
- Property ZoneViewsResource : TZoneViewsResource Read GetZoneViewsInstance;
- end;
- implementation
- { --------------------------------------------------------------------
- TLabel
- --------------------------------------------------------------------}
- Procedure TLabel.Setkey(AIndex : Integer; const AValue : String);
- begin
- If (Fkey=AValue) then exit;
- Fkey:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TLabel.Setvalue(AIndex : Integer; const AValue : String);
- begin
- If (Fvalue=AValue) then exit;
- Fvalue:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TListResourceResponseItemTypeendpoints
- --------------------------------------------------------------------}
- Class Function TListResourceResponseItemTypeendpoints.AllowAdditionalProperties : Boolean;
- begin
- Result:=True;
- end;
- { --------------------------------------------------------------------
- TListResourceResponseItem
- --------------------------------------------------------------------}
- Procedure TListResourceResponseItem.Setendpoints(AIndex : Integer; const AValue : TListResourceResponseItemTypeendpoints);
- begin
- If (Fendpoints=AValue) then exit;
- Fendpoints:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TListResourceResponseItem.Setresource(AIndex : Integer; const AValue : String);
- begin
- If (Fresource=AValue) then exit;
- Fresource:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- 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.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}
- { --------------------------------------------------------------------
- TOperationList
- --------------------------------------------------------------------}
- Procedure TOperationList.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperationList.Setitems(AIndex : Integer; const AValue : TOperationListTypeitemsArray);
- begin
- If (Fitems=AValue) then exit;
- Fitems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperationList.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperationList.SetnextPageToken(AIndex : Integer; const AValue : String);
- begin
- If (FnextPageToken=AValue) then exit;
- FnextPageToken:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TOperationList.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 TOperationList.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'items' : SetLength(Fitems,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TResourceView
- --------------------------------------------------------------------}
- Procedure TResourceView.SetcreationTimestamp(AIndex : Integer; const AValue : String);
- begin
- If (FcreationTimestamp=AValue) then exit;
- FcreationTimestamp:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceView.Setdescription(AIndex : Integer; const AValue : String);
- begin
- If (Fdescription=AValue) then exit;
- Fdescription:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceView.Setendpoints(AIndex : Integer; const AValue : TResourceViewTypeendpointsArray);
- begin
- If (Fendpoints=AValue) then exit;
- Fendpoints:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceView.Setfingerprint(AIndex : Integer; const AValue : String);
- begin
- If (Ffingerprint=AValue) then exit;
- Ffingerprint:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceView.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceView.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceView.Setlabels(AIndex : Integer; const AValue : TResourceViewTypelabelsArray);
- begin
- If (Flabels=AValue) then exit;
- Flabels:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceView.Setname(AIndex : Integer; const AValue : String);
- begin
- If (Fname=AValue) then exit;
- Fname:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceView.Setnetwork(AIndex : Integer; const AValue : String);
- begin
- If (Fnetwork=AValue) then exit;
- Fnetwork:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceView.Setresources(AIndex : Integer; const AValue : TStringArray);
- begin
- If (Fresources=AValue) then exit;
- Fresources:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceView.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TResourceView.Setsize(AIndex : Integer; const AValue : integer);
- begin
- If (Fsize=AValue) then exit;
- Fsize:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TResourceView.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'endpoints' : SetLength(Fendpoints,ALength);
- 'labels' : SetLength(Flabels,ALength);
- 'resources' : SetLength(Fresources,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TServiceEndpoint
- --------------------------------------------------------------------}
- Procedure TServiceEndpoint.Setname(AIndex : Integer; const AValue : String);
- begin
- If (Fname=AValue) then exit;
- Fname:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TServiceEndpoint.Setport(AIndex : Integer; const AValue : integer);
- begin
- If (Fport=AValue) then exit;
- Fport:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TZoneViewsAddResourcesRequest
- --------------------------------------------------------------------}
- Procedure TZoneViewsAddResourcesRequest.Setresources(AIndex : Integer; const AValue : TStringArray);
- begin
- If (Fresources=AValue) then exit;
- Fresources:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TZoneViewsAddResourcesRequest.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'resources' : SetLength(Fresources,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TZoneViewsGetServiceResponse
- --------------------------------------------------------------------}
- Procedure TZoneViewsGetServiceResponse.Setendpoints(AIndex : Integer; const AValue : TZoneViewsGetServiceResponseTypeendpointsArray);
- begin
- If (Fendpoints=AValue) then exit;
- Fendpoints:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TZoneViewsGetServiceResponse.Setfingerprint(AIndex : Integer; const AValue : String);
- begin
- If (Ffingerprint=AValue) then exit;
- Ffingerprint:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TZoneViewsGetServiceResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'endpoints' : SetLength(Fendpoints,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TZoneViewsList
- --------------------------------------------------------------------}
- Procedure TZoneViewsList.Setitems(AIndex : Integer; const AValue : TZoneViewsListTypeitemsArray);
- begin
- If (Fitems=AValue) then exit;
- Fitems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TZoneViewsList.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TZoneViewsList.SetnextPageToken(AIndex : Integer; const AValue : String);
- begin
- If (FnextPageToken=AValue) then exit;
- FnextPageToken:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TZoneViewsList.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 TZoneViewsList.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'items' : SetLength(Fitems,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TZoneViewsListResourcesResponse
- --------------------------------------------------------------------}
- Procedure TZoneViewsListResourcesResponse.Setitems(AIndex : Integer; const AValue : TZoneViewsListResourcesResponseTypeitemsArray);
- begin
- If (Fitems=AValue) then exit;
- Fitems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TZoneViewsListResourcesResponse.Setnetwork(AIndex : Integer; const AValue : String);
- begin
- If (Fnetwork=AValue) then exit;
- Fnetwork:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TZoneViewsListResourcesResponse.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 TZoneViewsListResourcesResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'items' : SetLength(Fitems,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TZoneViewsRemoveResourcesRequest
- --------------------------------------------------------------------}
- Procedure TZoneViewsRemoveResourcesRequest.Setresources(AIndex : Integer; const AValue : TStringArray);
- begin
- If (Fresources=AValue) then exit;
- Fresources:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TZoneViewsRemoveResourcesRequest.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'resources' : SetLength(Fresources,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TZoneViewsSetServiceRequest
- --------------------------------------------------------------------}
- Procedure TZoneViewsSetServiceRequest.Setendpoints(AIndex : Integer; const AValue : TZoneViewsSetServiceRequestTypeendpointsArray);
- begin
- If (Fendpoints=AValue) then exit;
- Fendpoints:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TZoneViewsSetServiceRequest.Setfingerprint(AIndex : Integer; const AValue : String);
- begin
- If (Ffingerprint=AValue) then exit;
- Ffingerprint:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TZoneViewsSetServiceRequest.SetresourceName(AIndex : Integer; const AValue : String);
- begin
- If (FresourceName=AValue) then exit;
- FresourceName:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TZoneViewsSetServiceRequest.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'endpoints' : SetLength(Fendpoints,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TZoneOperationsResource
- --------------------------------------------------------------------}
- Class Function TZoneOperationsResource.ResourceName : String;
- begin
- Result:='zoneOperations';
- end;
- Class Function TZoneOperationsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TresourceviewsAPI;
- end;
- Function TZoneOperationsResource.Get(operation: string; project: string; zone: string) : TOperation;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/zones/{zone}/operations/{operation}';
- _Methodid = 'resourceviews.zoneOperations.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['operation',operation,'project',project,'zone',zone]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TOperation) as TOperation;
- end;
- Function TZoneOperationsResource.List(project: string; zone: string; AQuery : string = '') : TOperationList;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/zones/{zone}/operations';
- _Methodid = 'resourceviews.zoneOperations.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project,'zone',zone]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TOperationList) as TOperationList;
- end;
- Function TZoneOperationsResource.List(project: string; zone: string; AQuery : TZoneOperationslistOptions) : TOperationList;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'filter',AQuery.filter);
- AddToQuery(_Q,'maxResults',AQuery.maxResults);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(project,zone,_Q);
- end;
- { --------------------------------------------------------------------
- TZoneViewsResource
- --------------------------------------------------------------------}
- Class Function TZoneViewsResource.ResourceName : String;
- begin
- Result:='zoneViews';
- end;
- Class Function TZoneViewsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TresourceviewsAPI;
- end;
- Function TZoneViewsResource.AddResources(project: string; resourceView: string; zone: string; aZoneViewsAddResourcesRequest : TZoneViewsAddResourcesRequest) : TOperation;
- Const
- _HTTPMethod = 'POST';
- _Path = '{project}/zones/{zone}/resourceViews/{resourceView}/addResources';
- _Methodid = 'resourceviews.zoneViews.addResources';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project,'resourceView',resourceView,'zone',zone]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aZoneViewsAddResourcesRequest,TOperation) as TOperation;
- end;
- Function TZoneViewsResource.Delete(project: string; resourceView: string; zone: string) : TOperation;
- Const
- _HTTPMethod = 'DELETE';
- _Path = '{project}/zones/{zone}/resourceViews/{resourceView}';
- _Methodid = 'resourceviews.zoneViews.delete';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project,'resourceView',resourceView,'zone',zone]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TOperation) as TOperation;
- end;
- Function TZoneViewsResource.Get(project: string; resourceView: string; zone: string) : TResourceView;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/zones/{zone}/resourceViews/{resourceView}';
- _Methodid = 'resourceviews.zoneViews.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project,'resourceView',resourceView,'zone',zone]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TResourceView) as TResourceView;
- end;
- Function TZoneViewsResource.GetService(project: string; resourceView: string; zone: string; AQuery : string = '') : TZoneViewsGetServiceResponse;
- Const
- _HTTPMethod = 'POST';
- _Path = '{project}/zones/{zone}/resourceViews/{resourceView}/getService';
- _Methodid = 'resourceviews.zoneViews.getService';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project,'resourceView',resourceView,'zone',zone]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TZoneViewsGetServiceResponse) as TZoneViewsGetServiceResponse;
- end;
- Function TZoneViewsResource.GetService(project: string; resourceView: string; zone: string; AQuery : TZoneViewsgetServiceOptions) : TZoneViewsGetServiceResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'resourceName',AQuery._resourceName);
- Result:=GetService(project,resourceView,zone,_Q);
- end;
- Function TZoneViewsResource.Insert(project: string; zone: string; aResourceView : TResourceView) : TOperation;
- Const
- _HTTPMethod = 'POST';
- _Path = '{project}/zones/{zone}/resourceViews';
- _Methodid = 'resourceviews.zoneViews.insert';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project,'zone',zone]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aResourceView,TOperation) as TOperation;
- end;
- Function TZoneViewsResource.List(project: string; zone: string; AQuery : string = '') : TZoneViewsList;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/zones/{zone}/resourceViews';
- _Methodid = 'resourceviews.zoneViews.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project,'zone',zone]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TZoneViewsList) as TZoneViewsList;
- end;
- Function TZoneViewsResource.List(project: string; zone: string; AQuery : TZoneViewslistOptions) : TZoneViewsList;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'maxResults',AQuery.maxResults);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(project,zone,_Q);
- end;
- Function TZoneViewsResource.ListResources(project: string; resourceView: string; zone: string; AQuery : string = '') : TZoneViewsListResourcesResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = '{project}/zones/{zone}/resourceViews/{resourceView}/resources';
- _Methodid = 'resourceviews.zoneViews.listResources';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project,'resourceView',resourceView,'zone',zone]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TZoneViewsListResourcesResponse) as TZoneViewsListResourcesResponse;
- end;
- Function TZoneViewsResource.ListResources(project: string; resourceView: string; zone: string; AQuery : TZoneViewslistResourcesOptions) : TZoneViewsListResourcesResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'format',AQuery.format);
- AddToQuery(_Q,'listState',AQuery.listState);
- AddToQuery(_Q,'maxResults',AQuery.maxResults);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- AddToQuery(_Q,'serviceName',AQuery.serviceName);
- Result:=ListResources(project,resourceView,zone,_Q);
- end;
- Function TZoneViewsResource.RemoveResources(project: string; resourceView: string; zone: string; aZoneViewsRemoveResourcesRequest : TZoneViewsRemoveResourcesRequest) : TOperation;
- Const
- _HTTPMethod = 'POST';
- _Path = '{project}/zones/{zone}/resourceViews/{resourceView}/removeResources';
- _Methodid = 'resourceviews.zoneViews.removeResources';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project,'resourceView',resourceView,'zone',zone]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aZoneViewsRemoveResourcesRequest,TOperation) as TOperation;
- end;
- Function TZoneViewsResource.SetService(project: string; resourceView: string; zone: string; aZoneViewsSetServiceRequest : TZoneViewsSetServiceRequest) : TOperation;
- Const
- _HTTPMethod = 'POST';
- _Path = '{project}/zones/{zone}/resourceViews/{resourceView}/setService';
- _Methodid = 'resourceviews.zoneViews.setService';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['project',project,'resourceView',resourceView,'zone',zone]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aZoneViewsSetServiceRequest,TOperation) as TOperation;
- end;
- { --------------------------------------------------------------------
- TResourceviewsAPI
- --------------------------------------------------------------------}
- Class Function TResourceviewsAPI.APIName : String;
- begin
- Result:='resourceviews';
- end;
- Class Function TResourceviewsAPI.APIVersion : String;
- begin
- Result:='v1beta2';
- end;
- Class Function TResourceviewsAPI.APIRevision : String;
- begin
- Result:='20160512';
- end;
- Class Function TResourceviewsAPI.APIID : String;
- begin
- Result:='resourceviews:v1beta2';
- end;
- Class Function TResourceviewsAPI.APITitle : String;
- begin
- Result:='Google Compute Engine Instance Groups API';
- end;
- Class Function TResourceviewsAPI.APIDescription : String;
- begin
- Result:='The Resource View API allows users to create and manage logical sets of Google Compute Engine instances.';
- end;
- Class Function TResourceviewsAPI.APIOwnerDomain : String;
- begin
- Result:='google.com';
- end;
- Class Function TResourceviewsAPI.APIOwnerName : String;
- begin
- Result:='Google';
- end;
- Class Function TResourceviewsAPI.APIIcon16 : String;
- begin
- Result:='http://www.google.com/images/icons/product/search-16.gif';
- end;
- Class Function TResourceviewsAPI.APIIcon32 : String;
- begin
- Result:='http://www.google.com/images/icons/product/search-32.gif';
- end;
- Class Function TResourceviewsAPI.APIdocumentationLink : String;
- begin
- Result:='https://developers.google.com/compute/';
- end;
- Class Function TResourceviewsAPI.APIrootUrl : string;
- begin
- Result:='https://www.googleapis.com/';
- end;
- Class Function TResourceviewsAPI.APIbasePath : string;
- begin
- Result:='/resourceviews/v1beta2/projects/';
- end;
- Class Function TResourceviewsAPI.APIbaseURL : String;
- begin
- Result:='https://www.googleapis.com/resourceviews/v1beta2/projects/';
- end;
- Class Function TResourceviewsAPI.APIProtocol : string;
- begin
- Result:='rest';
- end;
- Class Function TResourceviewsAPI.APIservicePath : string;
- begin
- Result:='resourceviews/v1beta2/projects/';
- end;
- Class Function TResourceviewsAPI.APIbatchPath : String;
- begin
- Result:='batch';
- end;
- Class Function TResourceviewsAPI.APIAuthScopes : TScopeInfoArray;
- begin
- SetLength(Result,6);
- 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/compute';
- Result[2].Description:='View and manage your Google Compute Engine resources';
- Result[3].Name:='https://www.googleapis.com/auth/compute.readonly';
- Result[3].Description:='View your Google Compute Engine resources';
- Result[4].Name:='https://www.googleapis.com/auth/ndev.cloudman';
- Result[4].Description:='View and manage your Google Cloud Platform management resources and deployment status information';
- Result[5].Name:='https://www.googleapis.com/auth/ndev.cloudman.readonly';
- Result[5].Description:='View your Google Cloud Platform management resources and deployment status information';
-
- end;
- Class Function TResourceviewsAPI.APINeedsAuth : Boolean;
- begin
- Result:=True;
- end;
- Class Procedure TResourceviewsAPI.RegisterAPIResources;
- begin
- TLabel.RegisterObject;
- TListResourceResponseItemTypeendpoints.RegisterObject;
- TListResourceResponseItem.RegisterObject;
- TOperationTypeerrorTypeerrorsItem.RegisterObject;
- TOperationTypeerror.RegisterObject;
- TOperationTypewarningsItemTypedataItem.RegisterObject;
- TOperationTypewarningsItem.RegisterObject;
- TOperation.RegisterObject;
- TOperationList.RegisterObject;
- TResourceView.RegisterObject;
- TServiceEndpoint.RegisterObject;
- TZoneViewsAddResourcesRequest.RegisterObject;
- TZoneViewsGetServiceResponse.RegisterObject;
- TZoneViewsList.RegisterObject;
- TZoneViewsListResourcesResponse.RegisterObject;
- TZoneViewsRemoveResourcesRequest.RegisterObject;
- TZoneViewsSetServiceRequest.RegisterObject;
- end;
- Function TResourceviewsAPI.GetZoneOperationsInstance : TZoneOperationsResource;
- begin
- if (FZoneOperationsInstance=Nil) then
- FZoneOperationsInstance:=CreateZoneOperationsResource;
- Result:=FZoneOperationsInstance;
- end;
- Function TResourceviewsAPI.CreateZoneOperationsResource : TZoneOperationsResource;
- begin
- Result:=CreateZoneOperationsResource(Self);
- end;
- Function TResourceviewsAPI.CreateZoneOperationsResource(AOwner : TComponent) : TZoneOperationsResource;
- begin
- Result:=TZoneOperationsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TResourceviewsAPI.GetZoneViewsInstance : TZoneViewsResource;
- begin
- if (FZoneViewsInstance=Nil) then
- FZoneViewsInstance:=CreateZoneViewsResource;
- Result:=FZoneViewsInstance;
- end;
- Function TResourceviewsAPI.CreateZoneViewsResource : TZoneViewsResource;
- begin
- Result:=CreateZoneViewsResource(Self);
- end;
- Function TResourceviewsAPI.CreateZoneViewsResource(AOwner : TComponent) : TZoneViewsResource;
- begin
- Result:=TZoneViewsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- initialization
- TResourceviewsAPI.RegisterAPI;
- end.
|