123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214 |
- unit googledoubleclickbidmanager;
- {$MODE objfpc}
- {$H+}
- interface
- uses sysutils, classes, googleservice, restbase, googlebase;
- type
-
- //Top-level schema types
- TDownloadLineItemsRequest = Class;
- TDownloadLineItemsResponse = Class;
- TFilterPair = Class;
- TListQueriesResponse = Class;
- TListReportsResponse = Class;
- TNote = Class;
- TNotifyProposalChangeRequest = Class;
- TParameters = Class;
- TQuery = Class;
- TQueryMetadata = Class;
- TQuerySchedule = Class;
- TReport = Class;
- TReportFailure = Class;
- TReportKey = Class;
- TReportMetadata = Class;
- TReportStatus = Class;
- TRowStatus = Class;
- TRunQueryRequest = Class;
- TUploadLineItemsRequest = Class;
- TUploadLineItemsResponse = Class;
- TUploadStatus = Class;
- TDownloadLineItemsRequestArray = Array of TDownloadLineItemsRequest;
- TDownloadLineItemsResponseArray = Array of TDownloadLineItemsResponse;
- TFilterPairArray = Array of TFilterPair;
- TListQueriesResponseArray = Array of TListQueriesResponse;
- TListReportsResponseArray = Array of TListReportsResponse;
- TNoteArray = Array of TNote;
- TNotifyProposalChangeRequestArray = Array of TNotifyProposalChangeRequest;
- TParametersArray = Array of TParameters;
- TQueryArray = Array of TQuery;
- TQueryMetadataArray = Array of TQueryMetadata;
- TQueryScheduleArray = Array of TQuerySchedule;
- TReportArray = Array of TReport;
- TReportFailureArray = Array of TReportFailure;
- TReportKeyArray = Array of TReportKey;
- TReportMetadataArray = Array of TReportMetadata;
- TReportStatusArray = Array of TReportStatus;
- TRowStatusArray = Array of TRowStatus;
- TRunQueryRequestArray = Array of TRunQueryRequest;
- TUploadLineItemsRequestArray = Array of TUploadLineItemsRequest;
- TUploadLineItemsResponseArray = Array of TUploadLineItemsResponse;
- TUploadStatusArray = Array of TUploadStatus;
- //Anonymous types, using auto-generated names
- TListQueriesResponseTypequeriesArray = Array of TQuery;
- TListReportsResponseTypereportsArray = Array of TReport;
- TNotifyProposalChangeRequestTypenotesArray = Array of TNote;
- TParametersTypefiltersArray = Array of TFilterPair;
- TUploadStatusTyperowStatusArray = Array of TRowStatus;
-
- { --------------------------------------------------------------------
- TDownloadLineItemsRequest
- --------------------------------------------------------------------}
-
- TDownloadLineItemsRequest = Class(TGoogleBaseObject)
- Private
- FfileSpec : String;
- FfilterIds : TStringArray;
- FfilterType : String;
- Fformat : String;
- Protected
- //Property setters
- Procedure SetfileSpec(AIndex : Integer; const AValue : String); virtual;
- Procedure SetfilterIds(AIndex : Integer; const AValue : TStringArray); virtual;
- Procedure SetfilterType(AIndex : Integer; const AValue : String); virtual;
- Procedure Setformat(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 fileSpec : String Index 0 Read FfileSpec Write SetfileSpec;
- Property filterIds : TStringArray Index 8 Read FfilterIds Write SetfilterIds;
- Property filterType : String Index 16 Read FfilterType Write SetfilterType;
- Property format : String Index 24 Read Fformat Write Setformat;
- end;
- TDownloadLineItemsRequestClass = Class of TDownloadLineItemsRequest;
-
- { --------------------------------------------------------------------
- TDownloadLineItemsResponse
- --------------------------------------------------------------------}
-
- TDownloadLineItemsResponse = Class(TGoogleBaseObject)
- Private
- FlineItems : String;
- Protected
- //Property setters
- Procedure SetlineItems(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property lineItems : String Index 0 Read FlineItems Write SetlineItems;
- end;
- TDownloadLineItemsResponseClass = Class of TDownloadLineItemsResponse;
-
- { --------------------------------------------------------------------
- TFilterPair
- --------------------------------------------------------------------}
-
- TFilterPair = Class(TGoogleBaseObject)
- Private
- F_type : String;
- Fvalue : String;
- Protected
- Class Function ExportPropertyName(Const AName : String) : string; override;
- //Property setters
- Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
- Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property _type : String Index 0 Read F_type Write Set_type;
- Property value : String Index 8 Read Fvalue Write Setvalue;
- end;
- TFilterPairClass = Class of TFilterPair;
-
- { --------------------------------------------------------------------
- TListQueriesResponse
- --------------------------------------------------------------------}
-
- TListQueriesResponse = Class(TGoogleBaseObject)
- Private
- Fkind : String;
- Fqueries : TListQueriesResponseTypequeriesArray;
- Protected
- //Property setters
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure Setqueries(AIndex : Integer; const AValue : TListQueriesResponseTypequeriesArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property kind : String Index 0 Read Fkind Write Setkind;
- Property queries : TListQueriesResponseTypequeriesArray Index 8 Read Fqueries Write Setqueries;
- end;
- TListQueriesResponseClass = Class of TListQueriesResponse;
-
- { --------------------------------------------------------------------
- TListReportsResponse
- --------------------------------------------------------------------}
-
- TListReportsResponse = Class(TGoogleBaseObject)
- Private
- Fkind : String;
- Freports : TListReportsResponseTypereportsArray;
- Protected
- //Property setters
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure Setreports(AIndex : Integer; const AValue : TListReportsResponseTypereportsArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property kind : String Index 0 Read Fkind Write Setkind;
- Property reports : TListReportsResponseTypereportsArray Index 8 Read Freports Write Setreports;
- end;
- TListReportsResponseClass = Class of TListReportsResponse;
-
- { --------------------------------------------------------------------
- TNote
- --------------------------------------------------------------------}
-
- TNote = Class(TGoogleBaseObject)
- Private
- Fid : String;
- Fmessage : String;
- Fsource : String;
- Ftimestamp : String;
- Fusername : String;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
- Procedure Setsource(AIndex : Integer; const AValue : String); virtual;
- Procedure Settimestamp(AIndex : Integer; const AValue : String); virtual;
- Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property id : String Index 0 Read Fid Write Setid;
- Property message : String Index 8 Read Fmessage Write Setmessage;
- Property source : String Index 16 Read Fsource Write Setsource;
- Property timestamp : String Index 24 Read Ftimestamp Write Settimestamp;
- Property username : String Index 32 Read Fusername Write Setusername;
- end;
- TNoteClass = Class of TNote;
-
- { --------------------------------------------------------------------
- TNotifyProposalChangeRequest
- --------------------------------------------------------------------}
-
- TNotifyProposalChangeRequest = Class(TGoogleBaseObject)
- Private
- Faction : String;
- Fhref : String;
- Fid : String;
- Fnotes : TNotifyProposalChangeRequestTypenotesArray;
- Ftoken : String;
- Protected
- //Property setters
- Procedure Setaction(AIndex : Integer; const AValue : String); virtual;
- Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setnotes(AIndex : Integer; const AValue : TNotifyProposalChangeRequestTypenotesArray); virtual;
- Procedure Settoken(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 action : String Index 0 Read Faction Write Setaction;
- Property href : String Index 8 Read Fhref Write Sethref;
- Property id : String Index 16 Read Fid Write Setid;
- Property notes : TNotifyProposalChangeRequestTypenotesArray Index 24 Read Fnotes Write Setnotes;
- Property token : String Index 32 Read Ftoken Write Settoken;
- end;
- TNotifyProposalChangeRequestClass = Class of TNotifyProposalChangeRequest;
-
- { --------------------------------------------------------------------
- TParameters
- --------------------------------------------------------------------}
-
- TParameters = Class(TGoogleBaseObject)
- Private
- Ffilters : TParametersTypefiltersArray;
- FgroupBys : TStringArray;
- FincludeInviteData : boolean;
- Fmetrics : TStringArray;
- F_type : String;
- Protected
- Class Function ExportPropertyName(Const AName : String) : string; override;
- //Property setters
- Procedure Setfilters(AIndex : Integer; const AValue : TParametersTypefiltersArray); virtual;
- Procedure SetgroupBys(AIndex : Integer; const AValue : TStringArray); virtual;
- Procedure SetincludeInviteData(AIndex : Integer; const AValue : boolean); virtual;
- Procedure Setmetrics(AIndex : Integer; const AValue : TStringArray); virtual;
- Procedure Set_type(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 filters : TParametersTypefiltersArray Index 0 Read Ffilters Write Setfilters;
- Property groupBys : TStringArray Index 8 Read FgroupBys Write SetgroupBys;
- Property includeInviteData : boolean Index 16 Read FincludeInviteData Write SetincludeInviteData;
- Property metrics : TStringArray Index 24 Read Fmetrics Write Setmetrics;
- Property _type : String Index 32 Read F_type Write Set_type;
- end;
- TParametersClass = Class of TParameters;
-
- { --------------------------------------------------------------------
- TQuery
- --------------------------------------------------------------------}
-
- TQuery = Class(TGoogleBaseObject)
- Private
- Fkind : String;
- Fmetadata : TQueryMetadata;
- Fparams : TParameters;
- FqueryId : String;
- FreportDataEndTimeMs : String;
- FreportDataStartTimeMs : String;
- Fschedule : TQuerySchedule;
- FtimezoneCode : String;
- Protected
- //Property setters
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure Setmetadata(AIndex : Integer; const AValue : TQueryMetadata); virtual;
- Procedure Setparams(AIndex : Integer; const AValue : TParameters); virtual;
- Procedure SetqueryId(AIndex : Integer; const AValue : String); virtual;
- Procedure SetreportDataEndTimeMs(AIndex : Integer; const AValue : String); virtual;
- Procedure SetreportDataStartTimeMs(AIndex : Integer; const AValue : String); virtual;
- Procedure Setschedule(AIndex : Integer; const AValue : TQuerySchedule); virtual;
- Procedure SettimezoneCode(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property kind : String Index 0 Read Fkind Write Setkind;
- Property metadata : TQueryMetadata Index 8 Read Fmetadata Write Setmetadata;
- Property params : TParameters Index 16 Read Fparams Write Setparams;
- Property queryId : String Index 24 Read FqueryId Write SetqueryId;
- Property reportDataEndTimeMs : String Index 32 Read FreportDataEndTimeMs Write SetreportDataEndTimeMs;
- Property reportDataStartTimeMs : String Index 40 Read FreportDataStartTimeMs Write SetreportDataStartTimeMs;
- Property schedule : TQuerySchedule Index 48 Read Fschedule Write Setschedule;
- Property timezoneCode : String Index 56 Read FtimezoneCode Write SettimezoneCode;
- end;
- TQueryClass = Class of TQuery;
-
- { --------------------------------------------------------------------
- TQueryMetadata
- --------------------------------------------------------------------}
-
- TQueryMetadata = Class(TGoogleBaseObject)
- Private
- FdataRange : String;
- Fformat : String;
- FgoogleCloudStoragePathForLatestReport : String;
- FgoogleDrivePathForLatestReport : String;
- FlatestReportRunTimeMs : String;
- Flocale : String;
- FreportCount : integer;
- Frunning : boolean;
- FsendNotification : boolean;
- FshareEmailAddress : TStringArray;
- Ftitle : String;
- Protected
- //Property setters
- Procedure SetdataRange(AIndex : Integer; const AValue : String); virtual;
- Procedure Setformat(AIndex : Integer; const AValue : String); virtual;
- Procedure SetgoogleCloudStoragePathForLatestReport(AIndex : Integer; const AValue : String); virtual;
- Procedure SetgoogleDrivePathForLatestReport(AIndex : Integer; const AValue : String); virtual;
- Procedure SetlatestReportRunTimeMs(AIndex : Integer; const AValue : String); virtual;
- Procedure Setlocale(AIndex : Integer; const AValue : String); virtual;
- Procedure SetreportCount(AIndex : Integer; const AValue : integer); virtual;
- Procedure Setrunning(AIndex : Integer; const AValue : boolean); virtual;
- Procedure SetsendNotification(AIndex : Integer; const AValue : boolean); virtual;
- Procedure SetshareEmailAddress(AIndex : Integer; const AValue : TStringArray); virtual;
- Procedure Settitle(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 dataRange : String Index 0 Read FdataRange Write SetdataRange;
- Property format : String Index 8 Read Fformat Write Setformat;
- Property googleCloudStoragePathForLatestReport : String Index 16 Read FgoogleCloudStoragePathForLatestReport Write SetgoogleCloudStoragePathForLatestReport;
- Property googleDrivePathForLatestReport : String Index 24 Read FgoogleDrivePathForLatestReport Write SetgoogleDrivePathForLatestReport;
- Property latestReportRunTimeMs : String Index 32 Read FlatestReportRunTimeMs Write SetlatestReportRunTimeMs;
- Property locale : String Index 40 Read Flocale Write Setlocale;
- Property reportCount : integer Index 48 Read FreportCount Write SetreportCount;
- Property running : boolean Index 56 Read Frunning Write Setrunning;
- Property sendNotification : boolean Index 64 Read FsendNotification Write SetsendNotification;
- Property shareEmailAddress : TStringArray Index 72 Read FshareEmailAddress Write SetshareEmailAddress;
- Property title : String Index 80 Read Ftitle Write Settitle;
- end;
- TQueryMetadataClass = Class of TQueryMetadata;
-
- { --------------------------------------------------------------------
- TQuerySchedule
- --------------------------------------------------------------------}
-
- TQuerySchedule = Class(TGoogleBaseObject)
- Private
- FendTimeMs : String;
- Ffrequency : String;
- FnextRunMinuteOfDay : integer;
- FnextRunTimezoneCode : String;
- Protected
- //Property setters
- Procedure SetendTimeMs(AIndex : Integer; const AValue : String); virtual;
- Procedure Setfrequency(AIndex : Integer; const AValue : String); virtual;
- Procedure SetnextRunMinuteOfDay(AIndex : Integer; const AValue : integer); virtual;
- Procedure SetnextRunTimezoneCode(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property endTimeMs : String Index 0 Read FendTimeMs Write SetendTimeMs;
- Property frequency : String Index 8 Read Ffrequency Write Setfrequency;
- Property nextRunMinuteOfDay : integer Index 16 Read FnextRunMinuteOfDay Write SetnextRunMinuteOfDay;
- Property nextRunTimezoneCode : String Index 24 Read FnextRunTimezoneCode Write SetnextRunTimezoneCode;
- end;
- TQueryScheduleClass = Class of TQuerySchedule;
-
- { --------------------------------------------------------------------
- TReport
- --------------------------------------------------------------------}
-
- TReport = Class(TGoogleBaseObject)
- Private
- Fkey : TReportKey;
- Fmetadata : TReportMetadata;
- Fparams : TParameters;
- Protected
- //Property setters
- Procedure Setkey(AIndex : Integer; const AValue : TReportKey); virtual;
- Procedure Setmetadata(AIndex : Integer; const AValue : TReportMetadata); virtual;
- Procedure Setparams(AIndex : Integer; const AValue : TParameters); virtual;
- Public
- Published
- Property key : TReportKey Index 0 Read Fkey Write Setkey;
- Property metadata : TReportMetadata Index 8 Read Fmetadata Write Setmetadata;
- Property params : TParameters Index 16 Read Fparams Write Setparams;
- end;
- TReportClass = Class of TReport;
-
- { --------------------------------------------------------------------
- TReportFailure
- --------------------------------------------------------------------}
-
- TReportFailure = Class(TGoogleBaseObject)
- Private
- FerrorCode : String;
- Protected
- //Property setters
- Procedure SeterrorCode(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property errorCode : String Index 0 Read FerrorCode Write SeterrorCode;
- end;
- TReportFailureClass = Class of TReportFailure;
-
- { --------------------------------------------------------------------
- TReportKey
- --------------------------------------------------------------------}
-
- TReportKey = Class(TGoogleBaseObject)
- Private
- FqueryId : String;
- FreportId : String;
- Protected
- //Property setters
- Procedure SetqueryId(AIndex : Integer; const AValue : String); virtual;
- Procedure SetreportId(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property queryId : String Index 0 Read FqueryId Write SetqueryId;
- Property reportId : String Index 8 Read FreportId Write SetreportId;
- end;
- TReportKeyClass = Class of TReportKey;
-
- { --------------------------------------------------------------------
- TReportMetadata
- --------------------------------------------------------------------}
-
- TReportMetadata = Class(TGoogleBaseObject)
- Private
- FgoogleCloudStoragePath : String;
- FreportDataEndTimeMs : String;
- FreportDataStartTimeMs : String;
- Fstatus : TReportStatus;
- Protected
- //Property setters
- Procedure SetgoogleCloudStoragePath(AIndex : Integer; const AValue : String); virtual;
- Procedure SetreportDataEndTimeMs(AIndex : Integer; const AValue : String); virtual;
- Procedure SetreportDataStartTimeMs(AIndex : Integer; const AValue : String); virtual;
- Procedure Setstatus(AIndex : Integer; const AValue : TReportStatus); virtual;
- Public
- Published
- Property googleCloudStoragePath : String Index 0 Read FgoogleCloudStoragePath Write SetgoogleCloudStoragePath;
- Property reportDataEndTimeMs : String Index 8 Read FreportDataEndTimeMs Write SetreportDataEndTimeMs;
- Property reportDataStartTimeMs : String Index 16 Read FreportDataStartTimeMs Write SetreportDataStartTimeMs;
- Property status : TReportStatus Index 24 Read Fstatus Write Setstatus;
- end;
- TReportMetadataClass = Class of TReportMetadata;
-
- { --------------------------------------------------------------------
- TReportStatus
- --------------------------------------------------------------------}
-
- TReportStatus = Class(TGoogleBaseObject)
- Private
- Ffailure : TReportFailure;
- FfinishTimeMs : String;
- Fformat : String;
- Fstate : String;
- Protected
- //Property setters
- Procedure Setfailure(AIndex : Integer; const AValue : TReportFailure); virtual;
- Procedure SetfinishTimeMs(AIndex : Integer; const AValue : String); virtual;
- Procedure Setformat(AIndex : Integer; const AValue : String); virtual;
- Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property failure : TReportFailure Index 0 Read Ffailure Write Setfailure;
- Property finishTimeMs : String Index 8 Read FfinishTimeMs Write SetfinishTimeMs;
- Property format : String Index 16 Read Fformat Write Setformat;
- Property state : String Index 24 Read Fstate Write Setstate;
- end;
- TReportStatusClass = Class of TReportStatus;
-
- { --------------------------------------------------------------------
- TRowStatus
- --------------------------------------------------------------------}
-
- TRowStatus = Class(TGoogleBaseObject)
- Private
- Fchanged : boolean;
- FentityId : String;
- FentityName : String;
- Ferrors : TStringArray;
- Fpersisted : boolean;
- FrowNumber : integer;
- Protected
- //Property setters
- Procedure Setchanged(AIndex : Integer; const AValue : boolean); virtual;
- Procedure SetentityId(AIndex : Integer; const AValue : String); virtual;
- Procedure SetentityName(AIndex : Integer; const AValue : String); virtual;
- Procedure Seterrors(AIndex : Integer; const AValue : TStringArray); virtual;
- Procedure Setpersisted(AIndex : Integer; const AValue : boolean); virtual;
- Procedure SetrowNumber(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 changed : boolean Index 0 Read Fchanged Write Setchanged;
- Property entityId : String Index 8 Read FentityId Write SetentityId;
- Property entityName : String Index 16 Read FentityName Write SetentityName;
- Property errors : TStringArray Index 24 Read Ferrors Write Seterrors;
- Property persisted : boolean Index 32 Read Fpersisted Write Setpersisted;
- Property rowNumber : integer Index 40 Read FrowNumber Write SetrowNumber;
- end;
- TRowStatusClass = Class of TRowStatus;
-
- { --------------------------------------------------------------------
- TRunQueryRequest
- --------------------------------------------------------------------}
-
- TRunQueryRequest = Class(TGoogleBaseObject)
- Private
- FdataRange : String;
- FreportDataEndTimeMs : String;
- FreportDataStartTimeMs : String;
- FtimezoneCode : String;
- Protected
- //Property setters
- Procedure SetdataRange(AIndex : Integer; const AValue : String); virtual;
- Procedure SetreportDataEndTimeMs(AIndex : Integer; const AValue : String); virtual;
- Procedure SetreportDataStartTimeMs(AIndex : Integer; const AValue : String); virtual;
- Procedure SettimezoneCode(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property dataRange : String Index 0 Read FdataRange Write SetdataRange;
- Property reportDataEndTimeMs : String Index 8 Read FreportDataEndTimeMs Write SetreportDataEndTimeMs;
- Property reportDataStartTimeMs : String Index 16 Read FreportDataStartTimeMs Write SetreportDataStartTimeMs;
- Property timezoneCode : String Index 24 Read FtimezoneCode Write SettimezoneCode;
- end;
- TRunQueryRequestClass = Class of TRunQueryRequest;
-
- { --------------------------------------------------------------------
- TUploadLineItemsRequest
- --------------------------------------------------------------------}
-
- TUploadLineItemsRequest = Class(TGoogleBaseObject)
- Private
- FdryRun : boolean;
- Fformat : String;
- FlineItems : String;
- Protected
- //Property setters
- Procedure SetdryRun(AIndex : Integer; const AValue : boolean); virtual;
- Procedure Setformat(AIndex : Integer; const AValue : String); virtual;
- Procedure SetlineItems(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property dryRun : boolean Index 0 Read FdryRun Write SetdryRun;
- Property format : String Index 8 Read Fformat Write Setformat;
- Property lineItems : String Index 16 Read FlineItems Write SetlineItems;
- end;
- TUploadLineItemsRequestClass = Class of TUploadLineItemsRequest;
-
- { --------------------------------------------------------------------
- TUploadLineItemsResponse
- --------------------------------------------------------------------}
-
- TUploadLineItemsResponse = Class(TGoogleBaseObject)
- Private
- FuploadStatus : TUploadStatus;
- Protected
- //Property setters
- Procedure SetuploadStatus(AIndex : Integer; const AValue : TUploadStatus); virtual;
- Public
- Published
- Property uploadStatus : TUploadStatus Index 0 Read FuploadStatus Write SetuploadStatus;
- end;
- TUploadLineItemsResponseClass = Class of TUploadLineItemsResponse;
-
- { --------------------------------------------------------------------
- TUploadStatus
- --------------------------------------------------------------------}
-
- TUploadStatus = Class(TGoogleBaseObject)
- Private
- Ferrors : TStringArray;
- FrowStatus : TUploadStatusTyperowStatusArray;
- Protected
- //Property setters
- Procedure Seterrors(AIndex : Integer; const AValue : TStringArray); virtual;
- Procedure SetrowStatus(AIndex : Integer; const AValue : TUploadStatusTyperowStatusArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property errors : TStringArray Index 0 Read Ferrors Write Seterrors;
- Property rowStatus : TUploadStatusTyperowStatusArray Index 8 Read FrowStatus Write SetrowStatus;
- end;
- TUploadStatusClass = Class of TUploadStatus;
-
- { --------------------------------------------------------------------
- TLineitemsResource
- --------------------------------------------------------------------}
-
- TLineitemsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Downloadlineitems(aDownloadLineItemsRequest : TDownloadLineItemsRequest) : TDownloadLineItemsResponse;
- Function Uploadlineitems(aUploadLineItemsRequest : TUploadLineItemsRequest) : TUploadLineItemsResponse;
- end;
-
-
- { --------------------------------------------------------------------
- TQueriesResource
- --------------------------------------------------------------------}
-
- TQueriesResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Createquery(aQuery : TQuery) : TQuery;
- Procedure Deletequery(queryId: string);
- Function Getquery(queryId: string) : TQuery;
- Function Listqueries : TListQueriesResponse;
- Procedure Runquery(queryId: string; aRunQueryRequest : TRunQueryRequest);
- end;
-
-
- { --------------------------------------------------------------------
- TReportsResource
- --------------------------------------------------------------------}
-
- TReportsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Listreports(queryId: string) : TListReportsResponse;
- end;
-
-
- { --------------------------------------------------------------------
- TRubiconResource
- --------------------------------------------------------------------}
-
- TRubiconResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Procedure Notifyproposalchange(aNotifyProposalChangeRequest : TNotifyProposalChangeRequest);
- end;
-
-
- { --------------------------------------------------------------------
- TDoubleclickbidmanagerAPI
- --------------------------------------------------------------------}
-
- TDoubleclickbidmanagerAPI = Class(TGoogleAPI)
- Private
- FLineitemsInstance : TLineitemsResource;
- FQueriesInstance : TQueriesResource;
- FReportsInstance : TReportsResource;
- FRubiconInstance : TRubiconResource;
- Function GetLineitemsInstance : TLineitemsResource;virtual;
- Function GetQueriesInstance : TQueriesResource;virtual;
- Function GetReportsInstance : TReportsResource;virtual;
- Function GetRubiconInstance : TRubiconResource;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 CreateLineitemsResource(AOwner : TComponent) : TLineitemsResource;virtual;overload;
- Function CreateLineitemsResource : TLineitemsResource;virtual;overload;
- Function CreateQueriesResource(AOwner : TComponent) : TQueriesResource;virtual;overload;
- Function CreateQueriesResource : TQueriesResource;virtual;overload;
- Function CreateReportsResource(AOwner : TComponent) : TReportsResource;virtual;overload;
- Function CreateReportsResource : TReportsResource;virtual;overload;
- Function CreateRubiconResource(AOwner : TComponent) : TRubiconResource;virtual;overload;
- Function CreateRubiconResource : TRubiconResource;virtual;overload;
- //Add default on-demand instances for resources
- Property LineitemsResource : TLineitemsResource Read GetLineitemsInstance;
- Property QueriesResource : TQueriesResource Read GetQueriesInstance;
- Property ReportsResource : TReportsResource Read GetReportsInstance;
- Property RubiconResource : TRubiconResource Read GetRubiconInstance;
- end;
- implementation
- { --------------------------------------------------------------------
- TDownloadLineItemsRequest
- --------------------------------------------------------------------}
- Procedure TDownloadLineItemsRequest.SetfileSpec(AIndex : Integer; const AValue : String);
- begin
- If (FfileSpec=AValue) then exit;
- FfileSpec:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDownloadLineItemsRequest.SetfilterIds(AIndex : Integer; const AValue : TStringArray);
- begin
- If (FfilterIds=AValue) then exit;
- FfilterIds:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDownloadLineItemsRequest.SetfilterType(AIndex : Integer; const AValue : String);
- begin
- If (FfilterType=AValue) then exit;
- FfilterType:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDownloadLineItemsRequest.Setformat(AIndex : Integer; const AValue : String);
- begin
- If (Fformat=AValue) then exit;
- Fformat:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TDownloadLineItemsRequest.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'filterids' : SetLength(FfilterIds,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TDownloadLineItemsResponse
- --------------------------------------------------------------------}
- Procedure TDownloadLineItemsResponse.SetlineItems(AIndex : Integer; const AValue : String);
- begin
- If (FlineItems=AValue) then exit;
- FlineItems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TFilterPair
- --------------------------------------------------------------------}
- Procedure TFilterPair.Set_type(AIndex : Integer; const AValue : String);
- begin
- If (F_type=AValue) then exit;
- F_type:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TFilterPair.Setvalue(AIndex : Integer; const AValue : String);
- begin
- If (Fvalue=AValue) then exit;
- Fvalue:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Class Function TFilterPair.ExportPropertyName(Const AName : String) :String;
- begin
- Case AName of
- '_type' : Result:='type';
- else
- Result:=Inherited ExportPropertyName(AName);
- end;
- end;
- { --------------------------------------------------------------------
- TListQueriesResponse
- --------------------------------------------------------------------}
- Procedure TListQueriesResponse.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TListQueriesResponse.Setqueries(AIndex : Integer; const AValue : TListQueriesResponseTypequeriesArray);
- begin
- If (Fqueries=AValue) then exit;
- Fqueries:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TListQueriesResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'queries' : SetLength(Fqueries,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TListReportsResponse
- --------------------------------------------------------------------}
- Procedure TListReportsResponse.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TListReportsResponse.Setreports(AIndex : Integer; const AValue : TListReportsResponseTypereportsArray);
- begin
- If (Freports=AValue) then exit;
- Freports:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TListReportsResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'reports' : SetLength(Freports,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TNote
- --------------------------------------------------------------------}
- Procedure TNote.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TNote.Setmessage(AIndex : Integer; const AValue : String);
- begin
- If (Fmessage=AValue) then exit;
- Fmessage:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TNote.Setsource(AIndex : Integer; const AValue : String);
- begin
- If (Fsource=AValue) then exit;
- Fsource:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TNote.Settimestamp(AIndex : Integer; const AValue : String);
- begin
- If (Ftimestamp=AValue) then exit;
- Ftimestamp:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TNote.Setusername(AIndex : Integer; const AValue : String);
- begin
- If (Fusername=AValue) then exit;
- Fusername:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TNotifyProposalChangeRequest
- --------------------------------------------------------------------}
- Procedure TNotifyProposalChangeRequest.Setaction(AIndex : Integer; const AValue : String);
- begin
- If (Faction=AValue) then exit;
- Faction:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TNotifyProposalChangeRequest.Sethref(AIndex : Integer; const AValue : String);
- begin
- If (Fhref=AValue) then exit;
- Fhref:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TNotifyProposalChangeRequest.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TNotifyProposalChangeRequest.Setnotes(AIndex : Integer; const AValue : TNotifyProposalChangeRequestTypenotesArray);
- begin
- If (Fnotes=AValue) then exit;
- Fnotes:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TNotifyProposalChangeRequest.Settoken(AIndex : Integer; const AValue : String);
- begin
- If (Ftoken=AValue) then exit;
- Ftoken:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TNotifyProposalChangeRequest.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'notes' : SetLength(Fnotes,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TParameters
- --------------------------------------------------------------------}
- Procedure TParameters.Setfilters(AIndex : Integer; const AValue : TParametersTypefiltersArray);
- begin
- If (Ffilters=AValue) then exit;
- Ffilters:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TParameters.SetgroupBys(AIndex : Integer; const AValue : TStringArray);
- begin
- If (FgroupBys=AValue) then exit;
- FgroupBys:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TParameters.SetincludeInviteData(AIndex : Integer; const AValue : boolean);
- begin
- If (FincludeInviteData=AValue) then exit;
- FincludeInviteData:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TParameters.Setmetrics(AIndex : Integer; const AValue : TStringArray);
- begin
- If (Fmetrics=AValue) then exit;
- Fmetrics:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TParameters.Set_type(AIndex : Integer; const AValue : String);
- begin
- If (F_type=AValue) then exit;
- F_type:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Class Function TParameters.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 TParameters.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'filters' : SetLength(Ffilters,ALength);
- 'groupbys' : SetLength(FgroupBys,ALength);
- 'metrics' : SetLength(Fmetrics,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TQuery
- --------------------------------------------------------------------}
- Procedure TQuery.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQuery.Setmetadata(AIndex : Integer; const AValue : TQueryMetadata);
- begin
- If (Fmetadata=AValue) then exit;
- Fmetadata:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQuery.Setparams(AIndex : Integer; const AValue : TParameters);
- begin
- If (Fparams=AValue) then exit;
- Fparams:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQuery.SetqueryId(AIndex : Integer; const AValue : String);
- begin
- If (FqueryId=AValue) then exit;
- FqueryId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQuery.SetreportDataEndTimeMs(AIndex : Integer; const AValue : String);
- begin
- If (FreportDataEndTimeMs=AValue) then exit;
- FreportDataEndTimeMs:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQuery.SetreportDataStartTimeMs(AIndex : Integer; const AValue : String);
- begin
- If (FreportDataStartTimeMs=AValue) then exit;
- FreportDataStartTimeMs:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQuery.Setschedule(AIndex : Integer; const AValue : TQuerySchedule);
- begin
- If (Fschedule=AValue) then exit;
- Fschedule:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQuery.SettimezoneCode(AIndex : Integer; const AValue : String);
- begin
- If (FtimezoneCode=AValue) then exit;
- FtimezoneCode:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TQueryMetadata
- --------------------------------------------------------------------}
- Procedure TQueryMetadata.SetdataRange(AIndex : Integer; const AValue : String);
- begin
- If (FdataRange=AValue) then exit;
- FdataRange:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQueryMetadata.Setformat(AIndex : Integer; const AValue : String);
- begin
- If (Fformat=AValue) then exit;
- Fformat:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQueryMetadata.SetgoogleCloudStoragePathForLatestReport(AIndex : Integer; const AValue : String);
- begin
- If (FgoogleCloudStoragePathForLatestReport=AValue) then exit;
- FgoogleCloudStoragePathForLatestReport:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQueryMetadata.SetgoogleDrivePathForLatestReport(AIndex : Integer; const AValue : String);
- begin
- If (FgoogleDrivePathForLatestReport=AValue) then exit;
- FgoogleDrivePathForLatestReport:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQueryMetadata.SetlatestReportRunTimeMs(AIndex : Integer; const AValue : String);
- begin
- If (FlatestReportRunTimeMs=AValue) then exit;
- FlatestReportRunTimeMs:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQueryMetadata.Setlocale(AIndex : Integer; const AValue : String);
- begin
- If (Flocale=AValue) then exit;
- Flocale:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQueryMetadata.SetreportCount(AIndex : Integer; const AValue : integer);
- begin
- If (FreportCount=AValue) then exit;
- FreportCount:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQueryMetadata.Setrunning(AIndex : Integer; const AValue : boolean);
- begin
- If (Frunning=AValue) then exit;
- Frunning:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQueryMetadata.SetsendNotification(AIndex : Integer; const AValue : boolean);
- begin
- If (FsendNotification=AValue) then exit;
- FsendNotification:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQueryMetadata.SetshareEmailAddress(AIndex : Integer; const AValue : TStringArray);
- begin
- If (FshareEmailAddress=AValue) then exit;
- FshareEmailAddress:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQueryMetadata.Settitle(AIndex : Integer; const AValue : String);
- begin
- If (Ftitle=AValue) then exit;
- Ftitle:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TQueryMetadata.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'shareemailaddress' : SetLength(FshareEmailAddress,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TQuerySchedule
- --------------------------------------------------------------------}
- Procedure TQuerySchedule.SetendTimeMs(AIndex : Integer; const AValue : String);
- begin
- If (FendTimeMs=AValue) then exit;
- FendTimeMs:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQuerySchedule.Setfrequency(AIndex : Integer; const AValue : String);
- begin
- If (Ffrequency=AValue) then exit;
- Ffrequency:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQuerySchedule.SetnextRunMinuteOfDay(AIndex : Integer; const AValue : integer);
- begin
- If (FnextRunMinuteOfDay=AValue) then exit;
- FnextRunMinuteOfDay:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TQuerySchedule.SetnextRunTimezoneCode(AIndex : Integer; const AValue : String);
- begin
- If (FnextRunTimezoneCode=AValue) then exit;
- FnextRunTimezoneCode:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TReport
- --------------------------------------------------------------------}
- Procedure TReport.Setkey(AIndex : Integer; const AValue : TReportKey);
- begin
- If (Fkey=AValue) then exit;
- Fkey:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TReport.Setmetadata(AIndex : Integer; const AValue : TReportMetadata);
- begin
- If (Fmetadata=AValue) then exit;
- Fmetadata:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TReport.Setparams(AIndex : Integer; const AValue : TParameters);
- begin
- If (Fparams=AValue) then exit;
- Fparams:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TReportFailure
- --------------------------------------------------------------------}
- Procedure TReportFailure.SeterrorCode(AIndex : Integer; const AValue : String);
- begin
- If (FerrorCode=AValue) then exit;
- FerrorCode:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TReportKey
- --------------------------------------------------------------------}
- Procedure TReportKey.SetqueryId(AIndex : Integer; const AValue : String);
- begin
- If (FqueryId=AValue) then exit;
- FqueryId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TReportKey.SetreportId(AIndex : Integer; const AValue : String);
- begin
- If (FreportId=AValue) then exit;
- FreportId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TReportMetadata
- --------------------------------------------------------------------}
- Procedure TReportMetadata.SetgoogleCloudStoragePath(AIndex : Integer; const AValue : String);
- begin
- If (FgoogleCloudStoragePath=AValue) then exit;
- FgoogleCloudStoragePath:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TReportMetadata.SetreportDataEndTimeMs(AIndex : Integer; const AValue : String);
- begin
- If (FreportDataEndTimeMs=AValue) then exit;
- FreportDataEndTimeMs:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TReportMetadata.SetreportDataStartTimeMs(AIndex : Integer; const AValue : String);
- begin
- If (FreportDataStartTimeMs=AValue) then exit;
- FreportDataStartTimeMs:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TReportMetadata.Setstatus(AIndex : Integer; const AValue : TReportStatus);
- begin
- If (Fstatus=AValue) then exit;
- Fstatus:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TReportStatus
- --------------------------------------------------------------------}
- Procedure TReportStatus.Setfailure(AIndex : Integer; const AValue : TReportFailure);
- begin
- If (Ffailure=AValue) then exit;
- Ffailure:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TReportStatus.SetfinishTimeMs(AIndex : Integer; const AValue : String);
- begin
- If (FfinishTimeMs=AValue) then exit;
- FfinishTimeMs:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TReportStatus.Setformat(AIndex : Integer; const AValue : String);
- begin
- If (Fformat=AValue) then exit;
- Fformat:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TReportStatus.Setstate(AIndex : Integer; const AValue : String);
- begin
- If (Fstate=AValue) then exit;
- Fstate:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TRowStatus
- --------------------------------------------------------------------}
- Procedure TRowStatus.Setchanged(AIndex : Integer; const AValue : boolean);
- begin
- If (Fchanged=AValue) then exit;
- Fchanged:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TRowStatus.SetentityId(AIndex : Integer; const AValue : String);
- begin
- If (FentityId=AValue) then exit;
- FentityId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TRowStatus.SetentityName(AIndex : Integer; const AValue : String);
- begin
- If (FentityName=AValue) then exit;
- FentityName:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TRowStatus.Seterrors(AIndex : Integer; const AValue : TStringArray);
- begin
- If (Ferrors=AValue) then exit;
- Ferrors:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TRowStatus.Setpersisted(AIndex : Integer; const AValue : boolean);
- begin
- If (Fpersisted=AValue) then exit;
- Fpersisted:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TRowStatus.SetrowNumber(AIndex : Integer; const AValue : integer);
- begin
- If (FrowNumber=AValue) then exit;
- FrowNumber:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TRowStatus.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'errors' : SetLength(Ferrors,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TRunQueryRequest
- --------------------------------------------------------------------}
- Procedure TRunQueryRequest.SetdataRange(AIndex : Integer; const AValue : String);
- begin
- If (FdataRange=AValue) then exit;
- FdataRange:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TRunQueryRequest.SetreportDataEndTimeMs(AIndex : Integer; const AValue : String);
- begin
- If (FreportDataEndTimeMs=AValue) then exit;
- FreportDataEndTimeMs:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TRunQueryRequest.SetreportDataStartTimeMs(AIndex : Integer; const AValue : String);
- begin
- If (FreportDataStartTimeMs=AValue) then exit;
- FreportDataStartTimeMs:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TRunQueryRequest.SettimezoneCode(AIndex : Integer; const AValue : String);
- begin
- If (FtimezoneCode=AValue) then exit;
- FtimezoneCode:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TUploadLineItemsRequest
- --------------------------------------------------------------------}
- Procedure TUploadLineItemsRequest.SetdryRun(AIndex : Integer; const AValue : boolean);
- begin
- If (FdryRun=AValue) then exit;
- FdryRun:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUploadLineItemsRequest.Setformat(AIndex : Integer; const AValue : String);
- begin
- If (Fformat=AValue) then exit;
- Fformat:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUploadLineItemsRequest.SetlineItems(AIndex : Integer; const AValue : String);
- begin
- If (FlineItems=AValue) then exit;
- FlineItems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TUploadLineItemsResponse
- --------------------------------------------------------------------}
- Procedure TUploadLineItemsResponse.SetuploadStatus(AIndex : Integer; const AValue : TUploadStatus);
- begin
- If (FuploadStatus=AValue) then exit;
- FuploadStatus:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TUploadStatus
- --------------------------------------------------------------------}
- Procedure TUploadStatus.Seterrors(AIndex : Integer; const AValue : TStringArray);
- begin
- If (Ferrors=AValue) then exit;
- Ferrors:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUploadStatus.SetrowStatus(AIndex : Integer; const AValue : TUploadStatusTyperowStatusArray);
- begin
- If (FrowStatus=AValue) then exit;
- FrowStatus:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TUploadStatus.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'errors' : SetLength(Ferrors,ALength);
- 'rowstatus' : SetLength(FrowStatus,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TLineitemsResource
- --------------------------------------------------------------------}
- Class Function TLineitemsResource.ResourceName : String;
- begin
- Result:='lineitems';
- end;
- Class Function TLineitemsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TdoubleclickbidmanagerAPI;
- end;
- Function TLineitemsResource.Downloadlineitems(aDownloadLineItemsRequest : TDownloadLineItemsRequest) : TDownloadLineItemsResponse;
- Const
- _HTTPMethod = 'POST';
- _Path = 'lineitems/downloadlineitems';
- _Methodid = 'doubleclickbidmanager.lineitems.downloadlineitems';
- begin
- Result:=ServiceCall(_HTTPMethod,_Path,'',aDownloadLineItemsRequest,TDownloadLineItemsResponse) as TDownloadLineItemsResponse;
- end;
- Function TLineitemsResource.Uploadlineitems(aUploadLineItemsRequest : TUploadLineItemsRequest) : TUploadLineItemsResponse;
- Const
- _HTTPMethod = 'POST';
- _Path = 'lineitems/uploadlineitems';
- _Methodid = 'doubleclickbidmanager.lineitems.uploadlineitems';
- begin
- Result:=ServiceCall(_HTTPMethod,_Path,'',aUploadLineItemsRequest,TUploadLineItemsResponse) as TUploadLineItemsResponse;
- end;
- { --------------------------------------------------------------------
- TQueriesResource
- --------------------------------------------------------------------}
- Class Function TQueriesResource.ResourceName : String;
- begin
- Result:='queries';
- end;
- Class Function TQueriesResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TdoubleclickbidmanagerAPI;
- end;
- Function TQueriesResource.Createquery(aQuery : TQuery) : TQuery;
- Const
- _HTTPMethod = 'POST';
- _Path = 'query';
- _Methodid = 'doubleclickbidmanager.queries.createquery';
- begin
- Result:=ServiceCall(_HTTPMethod,_Path,'',aQuery,TQuery) as TQuery;
- end;
- Procedure TQueriesResource.Deletequery(queryId: string);
- Const
- _HTTPMethod = 'DELETE';
- _Path = 'query/{queryId}';
- _Methodid = 'doubleclickbidmanager.queries.deletequery';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['queryId',queryId]);
- ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
- end;
- Function TQueriesResource.Getquery(queryId: string) : TQuery;
- Const
- _HTTPMethod = 'GET';
- _Path = 'query/{queryId}';
- _Methodid = 'doubleclickbidmanager.queries.getquery';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['queryId',queryId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TQuery) as TQuery;
- end;
- Function TQueriesResource.Listqueries : TListQueriesResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = 'queries';
- _Methodid = 'doubleclickbidmanager.queries.listqueries';
- begin
- Result:=ServiceCall(_HTTPMethod,_Path,'',Nil,TListQueriesResponse) as TListQueriesResponse;
- end;
- Procedure TQueriesResource.Runquery(queryId: string; aRunQueryRequest : TRunQueryRequest);
- Const
- _HTTPMethod = 'POST';
- _Path = 'query/{queryId}';
- _Methodid = 'doubleclickbidmanager.queries.runquery';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['queryId',queryId]);
- ServiceCall(_HTTPMethod,_P,'',aRunQueryRequest,Nil);
- end;
- { --------------------------------------------------------------------
- TReportsResource
- --------------------------------------------------------------------}
- Class Function TReportsResource.ResourceName : String;
- begin
- Result:='reports';
- end;
- Class Function TReportsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TdoubleclickbidmanagerAPI;
- end;
- Function TReportsResource.Listreports(queryId: string) : TListReportsResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = 'queries/{queryId}/reports';
- _Methodid = 'doubleclickbidmanager.reports.listreports';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['queryId',queryId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TListReportsResponse) as TListReportsResponse;
- end;
- { --------------------------------------------------------------------
- TRubiconResource
- --------------------------------------------------------------------}
- Class Function TRubiconResource.ResourceName : String;
- begin
- Result:='rubicon';
- end;
- Class Function TRubiconResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TdoubleclickbidmanagerAPI;
- end;
- Procedure TRubiconResource.Notifyproposalchange(aNotifyProposalChangeRequest : TNotifyProposalChangeRequest);
- Const
- _HTTPMethod = 'POST';
- _Path = 'rubicon/notifyproposalchange';
- _Methodid = 'doubleclickbidmanager.rubicon.notifyproposalchange';
- begin
- ServiceCall(_HTTPMethod,_Path,'',aNotifyProposalChangeRequest,Nil);
- end;
- { --------------------------------------------------------------------
- TDoubleclickbidmanagerAPI
- --------------------------------------------------------------------}
- Class Function TDoubleclickbidmanagerAPI.APIName : String;
- begin
- Result:='doubleclickbidmanager';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIVersion : String;
- begin
- Result:='v1';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIRevision : String;
- begin
- Result:='20160426';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIID : String;
- begin
- Result:='doubleclickbidmanager:v1';
- end;
- Class Function TDoubleclickbidmanagerAPI.APITitle : String;
- begin
- Result:='DoubleClick Bid Manager API';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIDescription : String;
- begin
- Result:='API for viewing and managing your reports in DoubleClick Bid Manager.';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIOwnerDomain : String;
- begin
- Result:='google.com';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIOwnerName : String;
- begin
- Result:='Google';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIIcon16 : String;
- begin
- Result:='http://www.google.com/images/icons/product/search-16.gif';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIIcon32 : String;
- begin
- Result:='http://www.google.com/images/icons/product/search-32.gif';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIdocumentationLink : String;
- begin
- Result:='https://developers.google.com/bid-manager/';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIrootUrl : string;
- begin
- Result:='https://www.googleapis.com/';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIbasePath : string;
- begin
- Result:='/doubleclickbidmanager/v1/';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIbaseURL : String;
- begin
- Result:='https://www.googleapis.com/doubleclickbidmanager/v1/';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIProtocol : string;
- begin
- Result:='rest';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIservicePath : string;
- begin
- Result:='doubleclickbidmanager/v1/';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIbatchPath : String;
- begin
- Result:='batch';
- end;
- Class Function TDoubleclickbidmanagerAPI.APIAuthScopes : TScopeInfoArray;
- begin
- SetLength(Result,0);
-
- end;
- Class Function TDoubleclickbidmanagerAPI.APINeedsAuth : Boolean;
- begin
- Result:=False;
- end;
- Class Procedure TDoubleclickbidmanagerAPI.RegisterAPIResources;
- begin
- TDownloadLineItemsRequest.RegisterObject;
- TDownloadLineItemsResponse.RegisterObject;
- TFilterPair.RegisterObject;
- TListQueriesResponse.RegisterObject;
- TListReportsResponse.RegisterObject;
- TNote.RegisterObject;
- TNotifyProposalChangeRequest.RegisterObject;
- TParameters.RegisterObject;
- TQuery.RegisterObject;
- TQueryMetadata.RegisterObject;
- TQuerySchedule.RegisterObject;
- TReport.RegisterObject;
- TReportFailure.RegisterObject;
- TReportKey.RegisterObject;
- TReportMetadata.RegisterObject;
- TReportStatus.RegisterObject;
- TRowStatus.RegisterObject;
- TRunQueryRequest.RegisterObject;
- TUploadLineItemsRequest.RegisterObject;
- TUploadLineItemsResponse.RegisterObject;
- TUploadStatus.RegisterObject;
- end;
- Function TDoubleclickbidmanagerAPI.GetLineitemsInstance : TLineitemsResource;
- begin
- if (FLineitemsInstance=Nil) then
- FLineitemsInstance:=CreateLineitemsResource;
- Result:=FLineitemsInstance;
- end;
- Function TDoubleclickbidmanagerAPI.CreateLineitemsResource : TLineitemsResource;
- begin
- Result:=CreateLineitemsResource(Self);
- end;
- Function TDoubleclickbidmanagerAPI.CreateLineitemsResource(AOwner : TComponent) : TLineitemsResource;
- begin
- Result:=TLineitemsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TDoubleclickbidmanagerAPI.GetQueriesInstance : TQueriesResource;
- begin
- if (FQueriesInstance=Nil) then
- FQueriesInstance:=CreateQueriesResource;
- Result:=FQueriesInstance;
- end;
- Function TDoubleclickbidmanagerAPI.CreateQueriesResource : TQueriesResource;
- begin
- Result:=CreateQueriesResource(Self);
- end;
- Function TDoubleclickbidmanagerAPI.CreateQueriesResource(AOwner : TComponent) : TQueriesResource;
- begin
- Result:=TQueriesResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TDoubleclickbidmanagerAPI.GetReportsInstance : TReportsResource;
- begin
- if (FReportsInstance=Nil) then
- FReportsInstance:=CreateReportsResource;
- Result:=FReportsInstance;
- end;
- Function TDoubleclickbidmanagerAPI.CreateReportsResource : TReportsResource;
- begin
- Result:=CreateReportsResource(Self);
- end;
- Function TDoubleclickbidmanagerAPI.CreateReportsResource(AOwner : TComponent) : TReportsResource;
- begin
- Result:=TReportsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TDoubleclickbidmanagerAPI.GetRubiconInstance : TRubiconResource;
- begin
- if (FRubiconInstance=Nil) then
- FRubiconInstance:=CreateRubiconResource;
- Result:=FRubiconInstance;
- end;
- Function TDoubleclickbidmanagerAPI.CreateRubiconResource : TRubiconResource;
- begin
- Result:=CreateRubiconResource(Self);
- end;
- Function TDoubleclickbidmanagerAPI.CreateRubiconResource(AOwner : TComponent) : TRubiconResource;
- begin
- Result:=TRubiconResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- initialization
- TDoubleclickbidmanagerAPI.RegisterAPI;
- end.
|