genomics-gen.go 341 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948
  1. // Package genomics provides access to the Genomics API.
  2. //
  3. // See https://developers.google.com/genomics/v1beta2/reference
  4. //
  5. // Usage example:
  6. //
  7. // import "google.golang.org/api/genomics/v1beta2"
  8. // ...
  9. // genomicsService, err := genomics.New(oauthHttpClient)
  10. package genomics // import "google.golang.org/api/genomics/v1beta2"
  11. import (
  12. "bytes"
  13. "encoding/json"
  14. "errors"
  15. "fmt"
  16. context "golang.org/x/net/context"
  17. ctxhttp "golang.org/x/net/context/ctxhttp"
  18. gensupport "google.golang.org/api/gensupport"
  19. googleapi "google.golang.org/api/googleapi"
  20. "io"
  21. "net/http"
  22. "net/url"
  23. "strconv"
  24. "strings"
  25. )
  26. // Always reference these packages, just in case the auto-generated code
  27. // below doesn't.
  28. var _ = bytes.NewBuffer
  29. var _ = strconv.Itoa
  30. var _ = fmt.Sprintf
  31. var _ = json.NewDecoder
  32. var _ = io.Copy
  33. var _ = url.Parse
  34. var _ = gensupport.MarshalJSON
  35. var _ = googleapi.Version
  36. var _ = errors.New
  37. var _ = strings.Replace
  38. var _ = context.Canceled
  39. var _ = ctxhttp.Do
  40. const apiId = "genomics:v1beta2"
  41. const apiName = "genomics"
  42. const apiVersion = "v1beta2"
  43. const basePath = "https://www.googleapis.com/genomics/v1beta2/"
  44. // OAuth2 scopes used by this API.
  45. const (
  46. // View and manage your data in Google BigQuery
  47. BigqueryScope = "https://www.googleapis.com/auth/bigquery"
  48. // View and manage your data across Google Cloud Platform services
  49. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
  50. // Manage your data in Google Cloud Storage
  51. DevstorageReadWriteScope = "https://www.googleapis.com/auth/devstorage.read_write"
  52. // View and manage Genomics data
  53. GenomicsScope = "https://www.googleapis.com/auth/genomics"
  54. // View Genomics data
  55. GenomicsReadonlyScope = "https://www.googleapis.com/auth/genomics.readonly"
  56. )
  57. func New(client *http.Client) (*Service, error) {
  58. if client == nil {
  59. return nil, errors.New("client is nil")
  60. }
  61. s := &Service{client: client, BasePath: basePath}
  62. s.AnnotationSets = NewAnnotationSetsService(s)
  63. s.Annotations = NewAnnotationsService(s)
  64. s.Callsets = NewCallsetsService(s)
  65. s.Datasets = NewDatasetsService(s)
  66. s.Experimental = NewExperimentalService(s)
  67. s.Jobs = NewJobsService(s)
  68. s.Readgroupsets = NewReadgroupsetsService(s)
  69. s.Reads = NewReadsService(s)
  70. s.References = NewReferencesService(s)
  71. s.Referencesets = NewReferencesetsService(s)
  72. s.Variants = NewVariantsService(s)
  73. s.Variantsets = NewVariantsetsService(s)
  74. return s, nil
  75. }
  76. type Service struct {
  77. client *http.Client
  78. BasePath string // API endpoint base URL
  79. UserAgent string // optional additional User-Agent fragment
  80. AnnotationSets *AnnotationSetsService
  81. Annotations *AnnotationsService
  82. Callsets *CallsetsService
  83. Datasets *DatasetsService
  84. Experimental *ExperimentalService
  85. Jobs *JobsService
  86. Readgroupsets *ReadgroupsetsService
  87. Reads *ReadsService
  88. References *ReferencesService
  89. Referencesets *ReferencesetsService
  90. Variants *VariantsService
  91. Variantsets *VariantsetsService
  92. }
  93. func (s *Service) userAgent() string {
  94. if s.UserAgent == "" {
  95. return googleapi.UserAgent
  96. }
  97. return googleapi.UserAgent + " " + s.UserAgent
  98. }
  99. func NewAnnotationSetsService(s *Service) *AnnotationSetsService {
  100. rs := &AnnotationSetsService{s: s}
  101. return rs
  102. }
  103. type AnnotationSetsService struct {
  104. s *Service
  105. }
  106. func NewAnnotationsService(s *Service) *AnnotationsService {
  107. rs := &AnnotationsService{s: s}
  108. return rs
  109. }
  110. type AnnotationsService struct {
  111. s *Service
  112. }
  113. func NewCallsetsService(s *Service) *CallsetsService {
  114. rs := &CallsetsService{s: s}
  115. return rs
  116. }
  117. type CallsetsService struct {
  118. s *Service
  119. }
  120. func NewDatasetsService(s *Service) *DatasetsService {
  121. rs := &DatasetsService{s: s}
  122. return rs
  123. }
  124. type DatasetsService struct {
  125. s *Service
  126. }
  127. func NewExperimentalService(s *Service) *ExperimentalService {
  128. rs := &ExperimentalService{s: s}
  129. rs.Jobs = NewExperimentalJobsService(s)
  130. return rs
  131. }
  132. type ExperimentalService struct {
  133. s *Service
  134. Jobs *ExperimentalJobsService
  135. }
  136. func NewExperimentalJobsService(s *Service) *ExperimentalJobsService {
  137. rs := &ExperimentalJobsService{s: s}
  138. return rs
  139. }
  140. type ExperimentalJobsService struct {
  141. s *Service
  142. }
  143. func NewJobsService(s *Service) *JobsService {
  144. rs := &JobsService{s: s}
  145. return rs
  146. }
  147. type JobsService struct {
  148. s *Service
  149. }
  150. func NewReadgroupsetsService(s *Service) *ReadgroupsetsService {
  151. rs := &ReadgroupsetsService{s: s}
  152. rs.Coveragebuckets = NewReadgroupsetsCoveragebucketsService(s)
  153. return rs
  154. }
  155. type ReadgroupsetsService struct {
  156. s *Service
  157. Coveragebuckets *ReadgroupsetsCoveragebucketsService
  158. }
  159. func NewReadgroupsetsCoveragebucketsService(s *Service) *ReadgroupsetsCoveragebucketsService {
  160. rs := &ReadgroupsetsCoveragebucketsService{s: s}
  161. return rs
  162. }
  163. type ReadgroupsetsCoveragebucketsService struct {
  164. s *Service
  165. }
  166. func NewReadsService(s *Service) *ReadsService {
  167. rs := &ReadsService{s: s}
  168. return rs
  169. }
  170. type ReadsService struct {
  171. s *Service
  172. }
  173. func NewReferencesService(s *Service) *ReferencesService {
  174. rs := &ReferencesService{s: s}
  175. rs.Bases = NewReferencesBasesService(s)
  176. return rs
  177. }
  178. type ReferencesService struct {
  179. s *Service
  180. Bases *ReferencesBasesService
  181. }
  182. func NewReferencesBasesService(s *Service) *ReferencesBasesService {
  183. rs := &ReferencesBasesService{s: s}
  184. return rs
  185. }
  186. type ReferencesBasesService struct {
  187. s *Service
  188. }
  189. func NewReferencesetsService(s *Service) *ReferencesetsService {
  190. rs := &ReferencesetsService{s: s}
  191. return rs
  192. }
  193. type ReferencesetsService struct {
  194. s *Service
  195. }
  196. func NewVariantsService(s *Service) *VariantsService {
  197. rs := &VariantsService{s: s}
  198. return rs
  199. }
  200. type VariantsService struct {
  201. s *Service
  202. }
  203. func NewVariantsetsService(s *Service) *VariantsetsService {
  204. rs := &VariantsetsService{s: s}
  205. return rs
  206. }
  207. type VariantsetsService struct {
  208. s *Service
  209. }
  210. // Annotation: An annotation describes a region of reference genome. The
  211. // value of an annotation may be one of several canonical types,
  212. // supplemented by arbitrary info tags. An annotation is not inherently
  213. // associated with a specific sample or individual (though a client
  214. // could choose to use annotations in this way). Example canonical
  215. // annotation types are GENE and VARIANT.
  216. type Annotation struct {
  217. // AnnotationSetId: The annotation set to which this annotation belongs.
  218. AnnotationSetId string `json:"annotationSetId,omitempty"`
  219. // Id: The server-generated annotation ID, unique across all
  220. // annotations.
  221. Id string `json:"id,omitempty"`
  222. // Info: A string which maps to an array of values.
  223. Info map[string][]string `json:"info,omitempty"`
  224. // Name: The display name of this annotation.
  225. Name string `json:"name,omitempty"`
  226. // Position: The position of this annotation on the reference sequence.
  227. Position *RangePosition `json:"position,omitempty"`
  228. // Transcript: A transcript value represents the assertion that a
  229. // particular region of the reference genome may be transcribed as RNA.
  230. // An alternative splicing pattern would be represented as a separate
  231. // transcript object. This field is only set for annotations of type
  232. // TRANSCRIPT.
  233. Transcript *Transcript `json:"transcript,omitempty"`
  234. // Type: The data type for this annotation. Must match the containing
  235. // annotation set's type.
  236. //
  237. // Possible values:
  238. // "GENE"
  239. // "GENERIC"
  240. // "TRANSCRIPT"
  241. // "VARIANT"
  242. Type string `json:"type,omitempty"`
  243. // Variant: A variant annotation, which describes the effect of a
  244. // variant on the genome, the coding sequence, and/or higher level
  245. // consequences at the organism level e.g. pathogenicity. This field is
  246. // only set for annotations of type VARIANT.
  247. Variant *VariantAnnotation `json:"variant,omitempty"`
  248. // ServerResponse contains the HTTP response code and headers from the
  249. // server.
  250. googleapi.ServerResponse `json:"-"`
  251. // ForceSendFields is a list of field names (e.g. "AnnotationSetId") to
  252. // unconditionally include in API requests. By default, fields with
  253. // empty values are omitted from API requests. However, any non-pointer,
  254. // non-interface field appearing in ForceSendFields will be sent to the
  255. // server regardless of whether the field is empty or not. This may be
  256. // used to include empty fields in Patch requests.
  257. ForceSendFields []string `json:"-"`
  258. }
  259. func (s *Annotation) MarshalJSON() ([]byte, error) {
  260. type noMethod Annotation
  261. raw := noMethod(*s)
  262. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  263. }
  264. // AnnotationSet: An annotation set is a logical grouping of annotations
  265. // that share consistent type information and provenance. Examples of
  266. // annotation sets include 'all genes from refseq', and 'all variant
  267. // annotations from ClinVar'.
  268. type AnnotationSet struct {
  269. // DatasetId: The dataset to which this annotation set belongs.
  270. DatasetId string `json:"datasetId,omitempty"`
  271. // Id: The server-generated annotation set ID, unique across all
  272. // annotation sets.
  273. Id string `json:"id,omitempty"`
  274. // Info: A string which maps to an array of values.
  275. Info map[string][]string `json:"info,omitempty"`
  276. // Name: The display name for this annotation set.
  277. Name string `json:"name,omitempty"`
  278. // ReferenceSetId: The ID of the reference set that defines the
  279. // coordinate space for this set's annotations.
  280. ReferenceSetId string `json:"referenceSetId,omitempty"`
  281. // SourceUri: The source URI describing the file from which this
  282. // annotation set was generated, if any.
  283. SourceUri string `json:"sourceUri,omitempty"`
  284. // Type: The type of annotations contained within this set.
  285. //
  286. // Possible values:
  287. // "GENE"
  288. // "GENERIC"
  289. // "TRANSCRIPT"
  290. // "VARIANT"
  291. Type string `json:"type,omitempty"`
  292. // ServerResponse contains the HTTP response code and headers from the
  293. // server.
  294. googleapi.ServerResponse `json:"-"`
  295. // ForceSendFields is a list of field names (e.g. "DatasetId") to
  296. // unconditionally include in API requests. By default, fields with
  297. // empty values are omitted from API requests. However, any non-pointer,
  298. // non-interface field appearing in ForceSendFields will be sent to the
  299. // server regardless of whether the field is empty or not. This may be
  300. // used to include empty fields in Patch requests.
  301. ForceSendFields []string `json:"-"`
  302. }
  303. func (s *AnnotationSet) MarshalJSON() ([]byte, error) {
  304. type noMethod AnnotationSet
  305. raw := noMethod(*s)
  306. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  307. }
  308. type BatchAnnotationsResponse struct {
  309. // Entries: The resulting per-annotation entries, ordered consistently
  310. // with the original request.
  311. Entries []*BatchAnnotationsResponseEntry `json:"entries,omitempty"`
  312. // ServerResponse contains the HTTP response code and headers from the
  313. // server.
  314. googleapi.ServerResponse `json:"-"`
  315. // ForceSendFields is a list of field names (e.g. "Entries") to
  316. // unconditionally include in API requests. By default, fields with
  317. // empty values are omitted from API requests. However, any non-pointer,
  318. // non-interface field appearing in ForceSendFields will be sent to the
  319. // server regardless of whether the field is empty or not. This may be
  320. // used to include empty fields in Patch requests.
  321. ForceSendFields []string `json:"-"`
  322. }
  323. func (s *BatchAnnotationsResponse) MarshalJSON() ([]byte, error) {
  324. type noMethod BatchAnnotationsResponse
  325. raw := noMethod(*s)
  326. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  327. }
  328. type BatchAnnotationsResponseEntry struct {
  329. // Annotation: The annotation, if any.
  330. Annotation *Annotation `json:"annotation,omitempty"`
  331. // Status: The resulting status for this annotation operation.
  332. Status *BatchAnnotationsResponseEntryStatus `json:"status,omitempty"`
  333. // ForceSendFields is a list of field names (e.g. "Annotation") to
  334. // unconditionally include in API requests. By default, fields with
  335. // empty values are omitted from API requests. However, any non-pointer,
  336. // non-interface field appearing in ForceSendFields will be sent to the
  337. // server regardless of whether the field is empty or not. This may be
  338. // used to include empty fields in Patch requests.
  339. ForceSendFields []string `json:"-"`
  340. }
  341. func (s *BatchAnnotationsResponseEntry) MarshalJSON() ([]byte, error) {
  342. type noMethod BatchAnnotationsResponseEntry
  343. raw := noMethod(*s)
  344. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  345. }
  346. type BatchAnnotationsResponseEntryStatus struct {
  347. // Code: The HTTP status code for this operation.
  348. Code int64 `json:"code,omitempty"`
  349. // Message: Error message for this status, if any.
  350. Message string `json:"message,omitempty"`
  351. // ForceSendFields is a list of field names (e.g. "Code") to
  352. // unconditionally include in API requests. By default, fields with
  353. // empty values are omitted from API requests. However, any non-pointer,
  354. // non-interface field appearing in ForceSendFields will be sent to the
  355. // server regardless of whether the field is empty or not. This may be
  356. // used to include empty fields in Patch requests.
  357. ForceSendFields []string `json:"-"`
  358. }
  359. func (s *BatchAnnotationsResponseEntryStatus) MarshalJSON() ([]byte, error) {
  360. type noMethod BatchAnnotationsResponseEntryStatus
  361. raw := noMethod(*s)
  362. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  363. }
  364. type BatchCreateAnnotationsRequest struct {
  365. // Annotations: The annotations to be created. At most 4096 can be
  366. // specified in a single request.
  367. Annotations []*Annotation `json:"annotations,omitempty"`
  368. // ForceSendFields is a list of field names (e.g. "Annotations") to
  369. // unconditionally include in API requests. By default, fields with
  370. // empty values are omitted from API requests. However, any non-pointer,
  371. // non-interface field appearing in ForceSendFields will be sent to the
  372. // server regardless of whether the field is empty or not. This may be
  373. // used to include empty fields in Patch requests.
  374. ForceSendFields []string `json:"-"`
  375. }
  376. func (s *BatchCreateAnnotationsRequest) MarshalJSON() ([]byte, error) {
  377. type noMethod BatchCreateAnnotationsRequest
  378. raw := noMethod(*s)
  379. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  380. }
  381. // Call: A call represents the determination of genotype with respect to
  382. // a particular variant. It may include associated information such as
  383. // quality and phasing. For example, a call might assign a probability
  384. // of 0.32 to the occurrence of a SNP named rs1234 in a call set with
  385. // the name NA12345.
  386. type Call struct {
  387. // CallSetId: The ID of the call set this variant call belongs to.
  388. CallSetId string `json:"callSetId,omitempty"`
  389. // CallSetName: The name of the call set this variant call belongs to.
  390. CallSetName string `json:"callSetName,omitempty"`
  391. // Genotype: The genotype of this variant call. Each value represents
  392. // either the value of the referenceBases field or a 1-based index into
  393. // alternateBases. If a variant had a referenceBases value of T and an
  394. // alternateBases value of ["A", "C"], and the genotype was [2, 1], that
  395. // would mean the call represented the heterozygous value CA for this
  396. // variant. If the genotype was instead [0, 1], the represented value
  397. // would be TA. Ordering of the genotype values is important if the
  398. // phaseset is present. If a genotype is not called (that is, a . is
  399. // present in the GT string) -1 is returned.
  400. Genotype []int64 `json:"genotype,omitempty"`
  401. // GenotypeLikelihood: The genotype likelihoods for this variant call.
  402. // Each array entry represents how likely a specific genotype is for
  403. // this call. The value ordering is defined by the GL tag in the VCF
  404. // spec. If Phred-scaled genotype likelihood scores (PL) are available
  405. // and log10(P) genotype likelihood scores (GL) are not, PL scores are
  406. // converted to GL scores. If both are available, PL scores are stored
  407. // in info.
  408. GenotypeLikelihood []float64 `json:"genotypeLikelihood,omitempty"`
  409. // Info: A string which maps to an array of values.
  410. Info map[string][]string `json:"info,omitempty"`
  411. // Phaseset: If this field is present, this variant call's genotype
  412. // ordering implies the phase of the bases and is consistent with any
  413. // other variant calls in the same reference sequence which have the
  414. // same phaseset value. When importing data from VCF, if the genotype
  415. // data was phased but no phase set was specified this field will be set
  416. // to *.
  417. Phaseset string `json:"phaseset,omitempty"`
  418. // ForceSendFields is a list of field names (e.g. "CallSetId") to
  419. // unconditionally include in API requests. By default, fields with
  420. // empty values are omitted from API requests. However, any non-pointer,
  421. // non-interface field appearing in ForceSendFields will be sent to the
  422. // server regardless of whether the field is empty or not. This may be
  423. // used to include empty fields in Patch requests.
  424. ForceSendFields []string `json:"-"`
  425. }
  426. func (s *Call) MarshalJSON() ([]byte, error) {
  427. type noMethod Call
  428. raw := noMethod(*s)
  429. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  430. }
  431. // CallSet: A call set is a collection of variant calls, typically for
  432. // one sample. It belongs to a variant set.
  433. type CallSet struct {
  434. // Created: The date this call set was created in milliseconds from the
  435. // epoch.
  436. Created int64 `json:"created,omitempty,string"`
  437. // Id: The Google generated ID of the call set, immutable.
  438. Id string `json:"id,omitempty"`
  439. // Info: A string which maps to an array of values.
  440. Info map[string][]string `json:"info,omitempty"`
  441. // Name: The call set name.
  442. Name string `json:"name,omitempty"`
  443. // SampleId: The sample ID this call set corresponds to.
  444. SampleId string `json:"sampleId,omitempty"`
  445. // VariantSetIds: The IDs of the variant sets this call set belongs to.
  446. VariantSetIds []string `json:"variantSetIds,omitempty"`
  447. // ServerResponse contains the HTTP response code and headers from the
  448. // server.
  449. googleapi.ServerResponse `json:"-"`
  450. // ForceSendFields is a list of field names (e.g. "Created") to
  451. // unconditionally include in API requests. By default, fields with
  452. // empty values are omitted from API requests. However, any non-pointer,
  453. // non-interface field appearing in ForceSendFields will be sent to the
  454. // server regardless of whether the field is empty or not. This may be
  455. // used to include empty fields in Patch requests.
  456. ForceSendFields []string `json:"-"`
  457. }
  458. func (s *CallSet) MarshalJSON() ([]byte, error) {
  459. type noMethod CallSet
  460. raw := noMethod(*s)
  461. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  462. }
  463. // CigarUnit: A single CIGAR operation.
  464. type CigarUnit struct {
  465. // Possible values:
  466. // "ALIGNMENT_MATCH"
  467. // "CLIP_HARD"
  468. // "CLIP_SOFT"
  469. // "DELETE"
  470. // "INSERT"
  471. // "OPERATION_UNSPECIFIED"
  472. // "PAD"
  473. // "SEQUENCE_MATCH"
  474. // "SEQUENCE_MISMATCH"
  475. // "SKIP"
  476. Operation string `json:"operation,omitempty"`
  477. // OperationLength: The number of bases that the operation runs for.
  478. // Required.
  479. OperationLength int64 `json:"operationLength,omitempty,string"`
  480. // ReferenceSequence: referenceSequence is only used at mismatches
  481. // (SEQUENCE_MISMATCH) and deletions (DELETE). Filling this field
  482. // replaces SAM's MD tag. If the relevant information is not available,
  483. // this field is unset.
  484. ReferenceSequence string `json:"referenceSequence,omitempty"`
  485. // ForceSendFields is a list of field names (e.g. "Operation") to
  486. // unconditionally include in API requests. By default, fields with
  487. // empty values are omitted from API requests. However, any non-pointer,
  488. // non-interface field appearing in ForceSendFields will be sent to the
  489. // server regardless of whether the field is empty or not. This may be
  490. // used to include empty fields in Patch requests.
  491. ForceSendFields []string `json:"-"`
  492. }
  493. func (s *CigarUnit) MarshalJSON() ([]byte, error) {
  494. type noMethod CigarUnit
  495. raw := noMethod(*s)
  496. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  497. }
  498. // CoverageBucket: A bucket over which read coverage has been
  499. // precomputed. A bucket corresponds to a specific range of the
  500. // reference sequence.
  501. type CoverageBucket struct {
  502. // MeanCoverage: The average number of reads which are aligned to each
  503. // individual reference base in this bucket.
  504. MeanCoverage float64 `json:"meanCoverage,omitempty"`
  505. // Range: The genomic coordinate range spanned by this bucket.
  506. Range *Range `json:"range,omitempty"`
  507. // ForceSendFields is a list of field names (e.g. "MeanCoverage") to
  508. // unconditionally include in API requests. By default, fields with
  509. // empty values are omitted from API requests. However, any non-pointer,
  510. // non-interface field appearing in ForceSendFields will be sent to the
  511. // server regardless of whether the field is empty or not. This may be
  512. // used to include empty fields in Patch requests.
  513. ForceSendFields []string `json:"-"`
  514. }
  515. func (s *CoverageBucket) MarshalJSON() ([]byte, error) {
  516. type noMethod CoverageBucket
  517. raw := noMethod(*s)
  518. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  519. }
  520. // Dataset: A Dataset is a collection of genomic data.
  521. type Dataset struct {
  522. // CreateTime: The time this dataset was created, in seconds from the
  523. // epoch.
  524. CreateTime int64 `json:"createTime,omitempty,string"`
  525. // Id: The Google generated ID of the dataset, immutable.
  526. Id string `json:"id,omitempty"`
  527. // IsPublic: Flag indicating whether or not a dataset is publicly
  528. // viewable. If a dataset is not public, it inherits viewing permissions
  529. // from its project.
  530. IsPublic *bool `json:"isPublic,omitempty"`
  531. // Name: The dataset name.
  532. Name string `json:"name,omitempty"`
  533. // ProjectNumber: The Google Developers Console project number that this
  534. // dataset belongs to.
  535. ProjectNumber int64 `json:"projectNumber,omitempty,string"`
  536. // ServerResponse contains the HTTP response code and headers from the
  537. // server.
  538. googleapi.ServerResponse `json:"-"`
  539. // ForceSendFields is a list of field names (e.g. "CreateTime") to
  540. // unconditionally include in API requests. By default, fields with
  541. // empty values are omitted from API requests. However, any non-pointer,
  542. // non-interface field appearing in ForceSendFields will be sent to the
  543. // server regardless of whether the field is empty or not. This may be
  544. // used to include empty fields in Patch requests.
  545. ForceSendFields []string `json:"-"`
  546. }
  547. func (s *Dataset) MarshalJSON() ([]byte, error) {
  548. type noMethod Dataset
  549. raw := noMethod(*s)
  550. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  551. }
  552. // ExperimentalCreateJobRequest: The job creation request.
  553. type ExperimentalCreateJobRequest struct {
  554. // Align: Specifies whether or not to run the alignment pipeline. Either
  555. // align or callVariants must be set.
  556. Align bool `json:"align,omitempty"`
  557. // CallVariants: Specifies whether or not to run the variant calling
  558. // pipeline. Either align or callVariants must be set.
  559. CallVariants bool `json:"callVariants,omitempty"`
  560. // GcsOutputPath: Specifies where to copy the results of certain
  561. // pipelines. This should be in the form of gs://bucket/path.
  562. GcsOutputPath string `json:"gcsOutputPath,omitempty"`
  563. // PairedSourceUris: A list of Google Cloud Storage URIs of paired end
  564. // .fastq files to operate upon. If specified, this represents the
  565. // second file of each paired .fastq file. The first file of each pair
  566. // should be specified in sourceUris.
  567. PairedSourceUris []string `json:"pairedSourceUris,omitempty"`
  568. // ProjectNumber: Required. The Google Cloud Project ID with which to
  569. // associate the request.
  570. ProjectNumber int64 `json:"projectNumber,omitempty,string"`
  571. // SourceUris: A list of Google Cloud Storage URIs of data files to
  572. // operate upon. These can be .bam, interleaved .fastq, or paired
  573. // .fastq. If specifying paired .fastq files, the first of each pair of
  574. // files should be listed here, and the second of each pair should be
  575. // listed in pairedSourceUris.
  576. SourceUris []string `json:"sourceUris,omitempty"`
  577. // ForceSendFields is a list of field names (e.g. "Align") to
  578. // unconditionally include in API requests. By default, fields with
  579. // empty values are omitted from API requests. However, any non-pointer,
  580. // non-interface field appearing in ForceSendFields will be sent to the
  581. // server regardless of whether the field is empty or not. This may be
  582. // used to include empty fields in Patch requests.
  583. ForceSendFields []string `json:"-"`
  584. }
  585. func (s *ExperimentalCreateJobRequest) MarshalJSON() ([]byte, error) {
  586. type noMethod ExperimentalCreateJobRequest
  587. raw := noMethod(*s)
  588. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  589. }
  590. // ExperimentalCreateJobResponse: The job creation response.
  591. type ExperimentalCreateJobResponse struct {
  592. // JobId: A job ID that can be used to get status information.
  593. JobId string `json:"jobId,omitempty"`
  594. // ServerResponse contains the HTTP response code and headers from the
  595. // server.
  596. googleapi.ServerResponse `json:"-"`
  597. // ForceSendFields is a list of field names (e.g. "JobId") to
  598. // unconditionally include in API requests. By default, fields with
  599. // empty values are omitted from API requests. However, any non-pointer,
  600. // non-interface field appearing in ForceSendFields will be sent to the
  601. // server regardless of whether the field is empty or not. This may be
  602. // used to include empty fields in Patch requests.
  603. ForceSendFields []string `json:"-"`
  604. }
  605. func (s *ExperimentalCreateJobResponse) MarshalJSON() ([]byte, error) {
  606. type noMethod ExperimentalCreateJobResponse
  607. raw := noMethod(*s)
  608. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  609. }
  610. // ExportReadGroupSetsRequest: The read group set export request.
  611. type ExportReadGroupSetsRequest struct {
  612. // ExportUri: Required. A Google Cloud Storage URI for the exported BAM
  613. // file. The currently authenticated user must have write access to the
  614. // new file. An error will be returned if the URI already contains data.
  615. ExportUri string `json:"exportUri,omitempty"`
  616. // ProjectNumber: Required. The Google Developers Console project number
  617. // that owns this export. The caller must have WRITE access to this
  618. // project.
  619. ProjectNumber int64 `json:"projectNumber,omitempty,string"`
  620. // ReadGroupSetIds: Required. The IDs of the read group sets to export.
  621. // The caller must have READ access to these read group sets.
  622. ReadGroupSetIds []string `json:"readGroupSetIds,omitempty"`
  623. // ReferenceNames: The reference names to export. If this is not
  624. // specified, all reference sequences, including unmapped reads, are
  625. // exported. Use * to export only unmapped reads.
  626. ReferenceNames []string `json:"referenceNames,omitempty"`
  627. // ForceSendFields is a list of field names (e.g. "ExportUri") to
  628. // unconditionally include in API requests. By default, fields with
  629. // empty values are omitted from API requests. However, any non-pointer,
  630. // non-interface field appearing in ForceSendFields will be sent to the
  631. // server regardless of whether the field is empty or not. This may be
  632. // used to include empty fields in Patch requests.
  633. ForceSendFields []string `json:"-"`
  634. }
  635. func (s *ExportReadGroupSetsRequest) MarshalJSON() ([]byte, error) {
  636. type noMethod ExportReadGroupSetsRequest
  637. raw := noMethod(*s)
  638. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  639. }
  640. // ExportReadGroupSetsResponse: The read group set export response.
  641. type ExportReadGroupSetsResponse struct {
  642. // JobId: A job ID that can be used to get status information.
  643. JobId string `json:"jobId,omitempty"`
  644. // ServerResponse contains the HTTP response code and headers from the
  645. // server.
  646. googleapi.ServerResponse `json:"-"`
  647. // ForceSendFields is a list of field names (e.g. "JobId") to
  648. // unconditionally include in API requests. By default, fields with
  649. // empty values are omitted from API requests. However, any non-pointer,
  650. // non-interface field appearing in ForceSendFields will be sent to the
  651. // server regardless of whether the field is empty or not. This may be
  652. // used to include empty fields in Patch requests.
  653. ForceSendFields []string `json:"-"`
  654. }
  655. func (s *ExportReadGroupSetsResponse) MarshalJSON() ([]byte, error) {
  656. type noMethod ExportReadGroupSetsResponse
  657. raw := noMethod(*s)
  658. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  659. }
  660. // ExportVariantSetRequest: The variant data export request.
  661. type ExportVariantSetRequest struct {
  662. // BigqueryDataset: Required. The BigQuery dataset to export data to.
  663. // This dataset must already exist. Note that this is distinct from the
  664. // Genomics concept of "dataset".
  665. BigqueryDataset string `json:"bigqueryDataset,omitempty"`
  666. // BigqueryTable: Required. The BigQuery table to export data to. If the
  667. // table doesn't exist, it will be created. If it already exists, it
  668. // will be overwritten.
  669. BigqueryTable string `json:"bigqueryTable,omitempty"`
  670. // CallSetIds: If provided, only variant call information from the
  671. // specified call sets will be exported. By default all variant calls
  672. // are exported.
  673. CallSetIds []string `json:"callSetIds,omitempty"`
  674. // Format: The format for the exported data.
  675. //
  676. // Possible values:
  677. // "BIGQUERY"
  678. Format string `json:"format,omitempty"`
  679. // ProjectNumber: Required. The Google Cloud project number that owns
  680. // the destination BigQuery dataset. The caller must have WRITE access
  681. // to this project. This project will also own the resulting export job.
  682. ProjectNumber int64 `json:"projectNumber,omitempty,string"`
  683. // ForceSendFields is a list of field names (e.g. "BigqueryDataset") to
  684. // unconditionally include in API requests. By default, fields with
  685. // empty values are omitted from API requests. However, any non-pointer,
  686. // non-interface field appearing in ForceSendFields will be sent to the
  687. // server regardless of whether the field is empty or not. This may be
  688. // used to include empty fields in Patch requests.
  689. ForceSendFields []string `json:"-"`
  690. }
  691. func (s *ExportVariantSetRequest) MarshalJSON() ([]byte, error) {
  692. type noMethod ExportVariantSetRequest
  693. raw := noMethod(*s)
  694. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  695. }
  696. // ExportVariantSetResponse: The variant data export response.
  697. type ExportVariantSetResponse struct {
  698. // JobId: A job ID that can be used to get status information.
  699. JobId string `json:"jobId,omitempty"`
  700. // ServerResponse contains the HTTP response code and headers from the
  701. // server.
  702. googleapi.ServerResponse `json:"-"`
  703. // ForceSendFields is a list of field names (e.g. "JobId") to
  704. // unconditionally include in API requests. By default, fields with
  705. // empty values are omitted from API requests. However, any non-pointer,
  706. // non-interface field appearing in ForceSendFields will be sent to the
  707. // server regardless of whether the field is empty or not. This may be
  708. // used to include empty fields in Patch requests.
  709. ForceSendFields []string `json:"-"`
  710. }
  711. func (s *ExportVariantSetResponse) MarshalJSON() ([]byte, error) {
  712. type noMethod ExportVariantSetResponse
  713. raw := noMethod(*s)
  714. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  715. }
  716. type ExternalId struct {
  717. // Id: The id used by the source of this data.
  718. Id string `json:"id,omitempty"`
  719. // SourceName: The name of the source of this data.
  720. SourceName string `json:"sourceName,omitempty"`
  721. // ForceSendFields is a list of field names (e.g. "Id") to
  722. // unconditionally include in API requests. By default, fields with
  723. // empty values are omitted from API requests. However, any non-pointer,
  724. // non-interface field appearing in ForceSendFields will be sent to the
  725. // server regardless of whether the field is empty or not. This may be
  726. // used to include empty fields in Patch requests.
  727. ForceSendFields []string `json:"-"`
  728. }
  729. func (s *ExternalId) MarshalJSON() ([]byte, error) {
  730. type noMethod ExternalId
  731. raw := noMethod(*s)
  732. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  733. }
  734. // ImportReadGroupSetsRequest: The read group set import request.
  735. type ImportReadGroupSetsRequest struct {
  736. // DatasetId: Required. The ID of the dataset these read group sets will
  737. // belong to. The caller must have WRITE permissions to this dataset.
  738. DatasetId string `json:"datasetId,omitempty"`
  739. // PartitionStrategy: The partition strategy describes how read groups
  740. // are partitioned into read group sets.
  741. //
  742. // Possible values:
  743. // "MERGE_ALL"
  744. // "PER_FILE_PER_SAMPLE"
  745. PartitionStrategy string `json:"partitionStrategy,omitempty"`
  746. // ReferenceSetId: The reference set to which the imported read group
  747. // sets are aligned to, if any. The reference names of this reference
  748. // set must be a superset of those found in the imported file headers.
  749. // If no reference set id is provided, a best effort is made to
  750. // associate with a matching reference set.
  751. ReferenceSetId string `json:"referenceSetId,omitempty"`
  752. // SourceUris: A list of URIs pointing at BAM files in Google Cloud
  753. // Storage.
  754. SourceUris []string `json:"sourceUris,omitempty"`
  755. // ForceSendFields is a list of field names (e.g. "DatasetId") to
  756. // unconditionally include in API requests. By default, fields with
  757. // empty values are omitted from API requests. However, any non-pointer,
  758. // non-interface field appearing in ForceSendFields will be sent to the
  759. // server regardless of whether the field is empty or not. This may be
  760. // used to include empty fields in Patch requests.
  761. ForceSendFields []string `json:"-"`
  762. }
  763. func (s *ImportReadGroupSetsRequest) MarshalJSON() ([]byte, error) {
  764. type noMethod ImportReadGroupSetsRequest
  765. raw := noMethod(*s)
  766. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  767. }
  768. // ImportReadGroupSetsResponse: The read group set import response.
  769. type ImportReadGroupSetsResponse struct {
  770. // JobId: A job ID that can be used to get status information.
  771. JobId string `json:"jobId,omitempty"`
  772. // ServerResponse contains the HTTP response code and headers from the
  773. // server.
  774. googleapi.ServerResponse `json:"-"`
  775. // ForceSendFields is a list of field names (e.g. "JobId") to
  776. // unconditionally include in API requests. By default, fields with
  777. // empty values are omitted from API requests. However, any non-pointer,
  778. // non-interface field appearing in ForceSendFields will be sent to the
  779. // server regardless of whether the field is empty or not. This may be
  780. // used to include empty fields in Patch requests.
  781. ForceSendFields []string `json:"-"`
  782. }
  783. func (s *ImportReadGroupSetsResponse) MarshalJSON() ([]byte, error) {
  784. type noMethod ImportReadGroupSetsResponse
  785. raw := noMethod(*s)
  786. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  787. }
  788. // ImportVariantsRequest: The variant data import request.
  789. type ImportVariantsRequest struct {
  790. // Format: The format of the variant data being imported. If
  791. // unspecified, defaults to to "VCF".
  792. //
  793. // Possible values:
  794. // "COMPLETE_GENOMICS"
  795. // "VCF"
  796. Format string `json:"format,omitempty"`
  797. // NormalizeReferenceNames: Convert reference names to the canonical
  798. // representation. hg19 haploytypes (those reference names containing
  799. // "_hap") are not modified in any way. All other reference names are
  800. // modified according to the following rules: The reference name is
  801. // capitalized. The "chr" prefix is dropped for all autosomes and sex
  802. // chromsomes. For example "chr17" becomes "17" and "chrX" becomes "X".
  803. // All mitochondrial chromosomes ("chrM", "chrMT", etc) become "MT".
  804. NormalizeReferenceNames bool `json:"normalizeReferenceNames,omitempty"`
  805. // SourceUris: A list of URIs referencing variant files in Google Cloud
  806. // Storage. URIs can include wildcards as described here. Note that
  807. // recursive wildcards ('**') are not supported.
  808. SourceUris []string `json:"sourceUris,omitempty"`
  809. // ForceSendFields is a list of field names (e.g. "Format") to
  810. // unconditionally include in API requests. By default, fields with
  811. // empty values are omitted from API requests. However, any non-pointer,
  812. // non-interface field appearing in ForceSendFields will be sent to the
  813. // server regardless of whether the field is empty or not. This may be
  814. // used to include empty fields in Patch requests.
  815. ForceSendFields []string `json:"-"`
  816. }
  817. func (s *ImportVariantsRequest) MarshalJSON() ([]byte, error) {
  818. type noMethod ImportVariantsRequest
  819. raw := noMethod(*s)
  820. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  821. }
  822. // ImportVariantsResponse: The variant data import response.
  823. type ImportVariantsResponse struct {
  824. // JobId: A job ID that can be used to get status information.
  825. JobId string `json:"jobId,omitempty"`
  826. // ServerResponse contains the HTTP response code and headers from the
  827. // server.
  828. googleapi.ServerResponse `json:"-"`
  829. // ForceSendFields is a list of field names (e.g. "JobId") to
  830. // unconditionally include in API requests. By default, fields with
  831. // empty values are omitted from API requests. However, any non-pointer,
  832. // non-interface field appearing in ForceSendFields will be sent to the
  833. // server regardless of whether the field is empty or not. This may be
  834. // used to include empty fields in Patch requests.
  835. ForceSendFields []string `json:"-"`
  836. }
  837. func (s *ImportVariantsResponse) MarshalJSON() ([]byte, error) {
  838. type noMethod ImportVariantsResponse
  839. raw := noMethod(*s)
  840. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  841. }
  842. // Int32Value: Wrapper message for `int32`.
  843. //
  844. // The JSON representation for `Int32Value` is JSON number.
  845. type Int32Value struct {
  846. // Value: The int32 value.
  847. Value int64 `json:"value,omitempty"`
  848. // ForceSendFields is a list of field names (e.g. "Value") to
  849. // unconditionally include in API requests. By default, fields with
  850. // empty values are omitted from API requests. However, any non-pointer,
  851. // non-interface field appearing in ForceSendFields will be sent to the
  852. // server regardless of whether the field is empty or not. This may be
  853. // used to include empty fields in Patch requests.
  854. ForceSendFields []string `json:"-"`
  855. }
  856. func (s *Int32Value) MarshalJSON() ([]byte, error) {
  857. type noMethod Int32Value
  858. raw := noMethod(*s)
  859. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  860. }
  861. // Job: A Job represents an ongoing process that can be monitored for
  862. // status information.
  863. type Job struct {
  864. // Created: The date this job was created, in milliseconds from the
  865. // epoch.
  866. Created int64 `json:"created,omitempty,string"`
  867. // DetailedStatus: A more detailed description of this job's current
  868. // status.
  869. DetailedStatus string `json:"detailedStatus,omitempty"`
  870. // Errors: Any errors that occurred during processing.
  871. Errors []string `json:"errors,omitempty"`
  872. // Id: The job ID.
  873. Id string `json:"id,omitempty"`
  874. // ImportedIds: If this Job represents an import, this field will
  875. // contain the IDs of the objects that were successfully imported.
  876. ImportedIds []string `json:"importedIds,omitempty"`
  877. // ProjectNumber: The Google Developers Console project number to which
  878. // this job belongs.
  879. ProjectNumber int64 `json:"projectNumber,omitempty,string"`
  880. // Request: A summarized representation of the original service request.
  881. Request *JobRequest `json:"request,omitempty"`
  882. // Status: The status of this job.
  883. //
  884. // Possible values:
  885. // "CANCELED"
  886. // "FAILURE"
  887. // "NEW"
  888. // "PENDING"
  889. // "RUNNING"
  890. // "SUCCESS"
  891. // "UNKNOWN_STATUS"
  892. Status string `json:"status,omitempty"`
  893. // Warnings: Any warnings that occurred during processing.
  894. Warnings []string `json:"warnings,omitempty"`
  895. // ServerResponse contains the HTTP response code and headers from the
  896. // server.
  897. googleapi.ServerResponse `json:"-"`
  898. // ForceSendFields is a list of field names (e.g. "Created") to
  899. // unconditionally include in API requests. By default, fields with
  900. // empty values are omitted from API requests. However, any non-pointer,
  901. // non-interface field appearing in ForceSendFields will be sent to the
  902. // server regardless of whether the field is empty or not. This may be
  903. // used to include empty fields in Patch requests.
  904. ForceSendFields []string `json:"-"`
  905. }
  906. func (s *Job) MarshalJSON() ([]byte, error) {
  907. type noMethod Job
  908. raw := noMethod(*s)
  909. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  910. }
  911. // JobRequest: A summary representation of the service request that
  912. // spawned the job.
  913. type JobRequest struct {
  914. // Destination: The data destination of the request, for example, a
  915. // Google BigQuery Table or Dataset ID.
  916. Destination []string `json:"destination,omitempty"`
  917. // Source: The data source of the request, for example, a Google Cloud
  918. // Storage object path or Readset ID.
  919. Source []string `json:"source,omitempty"`
  920. // Type: The original request type.
  921. //
  922. // Possible values:
  923. // "ALIGN_READSETS"
  924. // "CALL_READSETS"
  925. // "EXPERIMENTAL_CREATE_JOB"
  926. // "EXPORT_READSETS"
  927. // "EXPORT_VARIANTS"
  928. // "IMPORT_READSETS"
  929. // "IMPORT_VARIANTS"
  930. // "UNKNOWN_TYPE"
  931. Type string `json:"type,omitempty"`
  932. // ForceSendFields is a list of field names (e.g. "Destination") to
  933. // unconditionally include in API requests. By default, fields with
  934. // empty values are omitted from API requests. However, any non-pointer,
  935. // non-interface field appearing in ForceSendFields will be sent to the
  936. // server regardless of whether the field is empty or not. This may be
  937. // used to include empty fields in Patch requests.
  938. ForceSendFields []string `json:"-"`
  939. }
  940. func (s *JobRequest) MarshalJSON() ([]byte, error) {
  941. type noMethod JobRequest
  942. raw := noMethod(*s)
  943. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  944. }
  945. // KeyValue: Used to hold basic key value information.
  946. type KeyValue struct {
  947. // Key: A string which maps to an array of values.
  948. Key string `json:"key,omitempty"`
  949. // Value: The string values.
  950. Value []string `json:"value,omitempty"`
  951. // ForceSendFields is a list of field names (e.g. "Key") to
  952. // unconditionally include in API requests. By default, fields with
  953. // empty values are omitted from API requests. However, any non-pointer,
  954. // non-interface field appearing in ForceSendFields will be sent to the
  955. // server regardless of whether the field is empty or not. This may be
  956. // used to include empty fields in Patch requests.
  957. ForceSendFields []string `json:"-"`
  958. }
  959. func (s *KeyValue) MarshalJSON() ([]byte, error) {
  960. type noMethod KeyValue
  961. raw := noMethod(*s)
  962. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  963. }
  964. // LinearAlignment: A linear alignment can be represented by one CIGAR
  965. // string. Describes the mapped position and local alignment of the read
  966. // to the reference.
  967. type LinearAlignment struct {
  968. // Cigar: Represents the local alignment of this sequence (alignment
  969. // matches, indels, etc) against the reference.
  970. Cigar []*CigarUnit `json:"cigar,omitempty"`
  971. // MappingQuality: The mapping quality of this alignment. Represents how
  972. // likely the read maps to this position as opposed to other
  973. // locations.
  974. //
  975. // Specifically, this is -10 log10 Pr(mapping position is wrong),
  976. // rounded to the nearest integer.
  977. MappingQuality int64 `json:"mappingQuality,omitempty"`
  978. // Position: The position of this alignment.
  979. Position *Position `json:"position,omitempty"`
  980. // ForceSendFields is a list of field names (e.g. "Cigar") to
  981. // unconditionally include in API requests. By default, fields with
  982. // empty values are omitted from API requests. However, any non-pointer,
  983. // non-interface field appearing in ForceSendFields will be sent to the
  984. // server regardless of whether the field is empty or not. This may be
  985. // used to include empty fields in Patch requests.
  986. ForceSendFields []string `json:"-"`
  987. }
  988. func (s *LinearAlignment) MarshalJSON() ([]byte, error) {
  989. type noMethod LinearAlignment
  990. raw := noMethod(*s)
  991. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  992. }
  993. type ListBasesResponse struct {
  994. // NextPageToken: The continuation token, which is used to page through
  995. // large result sets. Provide this value in a subsequent request to
  996. // return the next page of results. This field will be empty if there
  997. // aren't any additional results.
  998. NextPageToken string `json:"nextPageToken,omitempty"`
  999. // Offset: The offset position (0-based) of the given sequence from the
  1000. // start of this Reference. This value will differ for each page in a
  1001. // paginated request.
  1002. Offset int64 `json:"offset,omitempty,string"`
  1003. // Sequence: A substring of the bases that make up this reference.
  1004. Sequence string `json:"sequence,omitempty"`
  1005. // ServerResponse contains the HTTP response code and headers from the
  1006. // server.
  1007. googleapi.ServerResponse `json:"-"`
  1008. // ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1009. // unconditionally include in API requests. By default, fields with
  1010. // empty values are omitted from API requests. However, any non-pointer,
  1011. // non-interface field appearing in ForceSendFields will be sent to the
  1012. // server regardless of whether the field is empty or not. This may be
  1013. // used to include empty fields in Patch requests.
  1014. ForceSendFields []string `json:"-"`
  1015. }
  1016. func (s *ListBasesResponse) MarshalJSON() ([]byte, error) {
  1017. type noMethod ListBasesResponse
  1018. raw := noMethod(*s)
  1019. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1020. }
  1021. type ListCoverageBucketsResponse struct {
  1022. // BucketWidth: The length of each coverage bucket in base pairs. Note
  1023. // that buckets at the end of a reference sequence may be shorter. This
  1024. // value is omitted if the bucket width is infinity (the default
  1025. // behaviour, with no range or targetBucketWidth).
  1026. BucketWidth int64 `json:"bucketWidth,omitempty,string"`
  1027. // CoverageBuckets: The coverage buckets. The list of buckets is sparse;
  1028. // a bucket with 0 overlapping reads is not returned. A bucket never
  1029. // crosses more than one reference sequence. Each bucket has width
  1030. // bucketWidth, unless its end is the end of the reference sequence.
  1031. CoverageBuckets []*CoverageBucket `json:"coverageBuckets,omitempty"`
  1032. // NextPageToken: The continuation token, which is used to page through
  1033. // large result sets. Provide this value in a subsequent request to
  1034. // return the next page of results. This field will be empty if there
  1035. // aren't any additional results.
  1036. NextPageToken string `json:"nextPageToken,omitempty"`
  1037. // ServerResponse contains the HTTP response code and headers from the
  1038. // server.
  1039. googleapi.ServerResponse `json:"-"`
  1040. // ForceSendFields is a list of field names (e.g. "BucketWidth") to
  1041. // unconditionally include in API requests. By default, fields with
  1042. // empty values are omitted from API requests. However, any non-pointer,
  1043. // non-interface field appearing in ForceSendFields will be sent to the
  1044. // server regardless of whether the field is empty or not. This may be
  1045. // used to include empty fields in Patch requests.
  1046. ForceSendFields []string `json:"-"`
  1047. }
  1048. func (s *ListCoverageBucketsResponse) MarshalJSON() ([]byte, error) {
  1049. type noMethod ListCoverageBucketsResponse
  1050. raw := noMethod(*s)
  1051. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1052. }
  1053. // ListDatasetsResponse: The dataset list response.
  1054. type ListDatasetsResponse struct {
  1055. // Datasets: The list of matching Datasets.
  1056. Datasets []*Dataset `json:"datasets,omitempty"`
  1057. // NextPageToken: The continuation token, which is used to page through
  1058. // large result sets. Provide this value in a subsequent request to
  1059. // return the next page of results. This field will be empty if there
  1060. // aren't any additional results.
  1061. NextPageToken string `json:"nextPageToken,omitempty"`
  1062. // ServerResponse contains the HTTP response code and headers from the
  1063. // server.
  1064. googleapi.ServerResponse `json:"-"`
  1065. // ForceSendFields is a list of field names (e.g. "Datasets") to
  1066. // unconditionally include in API requests. By default, fields with
  1067. // empty values are omitted from API requests. However, any non-pointer,
  1068. // non-interface field appearing in ForceSendFields will be sent to the
  1069. // server regardless of whether the field is empty or not. This may be
  1070. // used to include empty fields in Patch requests.
  1071. ForceSendFields []string `json:"-"`
  1072. }
  1073. func (s *ListDatasetsResponse) MarshalJSON() ([]byte, error) {
  1074. type noMethod ListDatasetsResponse
  1075. raw := noMethod(*s)
  1076. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1077. }
  1078. type MergeVariantsRequest struct {
  1079. // Variants: The variants to be merged with existing variants.
  1080. Variants []*Variant `json:"variants,omitempty"`
  1081. // ForceSendFields is a list of field names (e.g. "Variants") to
  1082. // unconditionally include in API requests. By default, fields with
  1083. // empty values are omitted from API requests. However, any non-pointer,
  1084. // non-interface field appearing in ForceSendFields will be sent to the
  1085. // server regardless of whether the field is empty or not. This may be
  1086. // used to include empty fields in Patch requests.
  1087. ForceSendFields []string `json:"-"`
  1088. }
  1089. func (s *MergeVariantsRequest) MarshalJSON() ([]byte, error) {
  1090. type noMethod MergeVariantsRequest
  1091. raw := noMethod(*s)
  1092. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1093. }
  1094. // Metadata: Metadata describes a single piece of variant call metadata.
  1095. // These data include a top level key and either a single value string
  1096. // (value) or a list of key-value pairs (info.) Value and info are
  1097. // mutually exclusive.
  1098. type Metadata struct {
  1099. // Description: A textual description of this metadata.
  1100. Description string `json:"description,omitempty"`
  1101. // Id: User-provided ID field, not enforced by this API. Two or more
  1102. // pieces of structured metadata with identical id and key fields are
  1103. // considered equivalent.
  1104. Id string `json:"id,omitempty"`
  1105. // Info: A string which maps to an array of values.
  1106. Info map[string][]string `json:"info,omitempty"`
  1107. // Key: The top-level key.
  1108. Key string `json:"key,omitempty"`
  1109. // Number: The number of values that can be included in a field
  1110. // described by this metadata.
  1111. Number string `json:"number,omitempty"`
  1112. // Type: The type of data. Possible types include: Integer, Float, Flag,
  1113. // Character, and String.
  1114. //
  1115. // Possible values:
  1116. // "CHARACTER"
  1117. // "FLAG"
  1118. // "FLOAT"
  1119. // "INTEGER"
  1120. // "STRING"
  1121. // "UNKNOWN_TYPE"
  1122. Type string `json:"type,omitempty"`
  1123. // Value: The value field for simple metadata
  1124. Value string `json:"value,omitempty"`
  1125. // ForceSendFields is a list of field names (e.g. "Description") to
  1126. // unconditionally include in API requests. By default, fields with
  1127. // empty values are omitted from API requests. However, any non-pointer,
  1128. // non-interface field appearing in ForceSendFields will be sent to the
  1129. // server regardless of whether the field is empty or not. This may be
  1130. // used to include empty fields in Patch requests.
  1131. ForceSendFields []string `json:"-"`
  1132. }
  1133. func (s *Metadata) MarshalJSON() ([]byte, error) {
  1134. type noMethod Metadata
  1135. raw := noMethod(*s)
  1136. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1137. }
  1138. // Position: An abstraction for referring to a genomic position, in
  1139. // relation to some already known reference. For now, represents a
  1140. // genomic position as a reference name, a base number on that reference
  1141. // (0-based), and a determination of forward or reverse strand.
  1142. type Position struct {
  1143. // Position: The 0-based offset from the start of the forward strand for
  1144. // that reference.
  1145. Position int64 `json:"position,omitempty,string"`
  1146. // ReferenceName: The name of the reference in whatever reference set is
  1147. // being used.
  1148. ReferenceName string `json:"referenceName,omitempty"`
  1149. // ReverseStrand: Whether this position is on the reverse strand, as
  1150. // opposed to the forward strand.
  1151. ReverseStrand bool `json:"reverseStrand,omitempty"`
  1152. // ForceSendFields is a list of field names (e.g. "Position") to
  1153. // unconditionally include in API requests. By default, fields with
  1154. // empty values are omitted from API requests. However, any non-pointer,
  1155. // non-interface field appearing in ForceSendFields will be sent to the
  1156. // server regardless of whether the field is empty or not. This may be
  1157. // used to include empty fields in Patch requests.
  1158. ForceSendFields []string `json:"-"`
  1159. }
  1160. func (s *Position) MarshalJSON() ([]byte, error) {
  1161. type noMethod Position
  1162. raw := noMethod(*s)
  1163. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1164. }
  1165. // QueryRange: A 0-based half-open genomic coordinate range for search
  1166. // requests.
  1167. type QueryRange struct {
  1168. // End: The end position of the range on the reference, 0-based
  1169. // exclusive. If specified, referenceId or referenceName must also be
  1170. // specified. If unset or 0, defaults to the length of the reference.
  1171. End int64 `json:"end,omitempty,string"`
  1172. // ReferenceId: The ID of the reference to query. At most one of
  1173. // referenceId and referenceName should be specified.
  1174. ReferenceId string `json:"referenceId,omitempty"`
  1175. // ReferenceName: The name of the reference to query, within the
  1176. // reference set associated with this query. At most one of referenceId
  1177. // and referenceName pshould be specified.
  1178. ReferenceName string `json:"referenceName,omitempty"`
  1179. // Start: The start position of the range on the reference, 0-based
  1180. // inclusive. If specified, referenceId or referenceName must also be
  1181. // specified. Defaults to 0.
  1182. Start int64 `json:"start,omitempty,string"`
  1183. // ForceSendFields is a list of field names (e.g. "End") to
  1184. // unconditionally include in API requests. By default, fields with
  1185. // empty values are omitted from API requests. However, any non-pointer,
  1186. // non-interface field appearing in ForceSendFields will be sent to the
  1187. // server regardless of whether the field is empty or not. This may be
  1188. // used to include empty fields in Patch requests.
  1189. ForceSendFields []string `json:"-"`
  1190. }
  1191. func (s *QueryRange) MarshalJSON() ([]byte, error) {
  1192. type noMethod QueryRange
  1193. raw := noMethod(*s)
  1194. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1195. }
  1196. // Range: A 0-based half-open genomic coordinate range over a reference
  1197. // sequence.
  1198. type Range struct {
  1199. // End: The end position of the range on the reference, 0-based
  1200. // exclusive. If specified, referenceName must also be specified.
  1201. End int64 `json:"end,omitempty,string"`
  1202. // ReferenceName: The reference sequence name, for example chr1, 1, or
  1203. // chrX.
  1204. ReferenceName string `json:"referenceName,omitempty"`
  1205. // Start: The start position of the range on the reference, 0-based
  1206. // inclusive. If specified, referenceName must also be specified.
  1207. Start int64 `json:"start,omitempty,string"`
  1208. // ForceSendFields is a list of field names (e.g. "End") to
  1209. // unconditionally include in API requests. By default, fields with
  1210. // empty values are omitted from API requests. However, any non-pointer,
  1211. // non-interface field appearing in ForceSendFields will be sent to the
  1212. // server regardless of whether the field is empty or not. This may be
  1213. // used to include empty fields in Patch requests.
  1214. ForceSendFields []string `json:"-"`
  1215. }
  1216. func (s *Range) MarshalJSON() ([]byte, error) {
  1217. type noMethod Range
  1218. raw := noMethod(*s)
  1219. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1220. }
  1221. // RangePosition: A 0-based half-open genomic coordinate range over a
  1222. // reference sequence, for representing the position of a genomic
  1223. // resource.
  1224. type RangePosition struct {
  1225. // End: The end position of the range on the reference, 0-based
  1226. // exclusive.
  1227. End int64 `json:"end,omitempty,string"`
  1228. // ReferenceId: The ID of the Google Genomics reference associated with
  1229. // this range.
  1230. ReferenceId string `json:"referenceId,omitempty"`
  1231. // ReferenceName: The display name corresponding to the reference
  1232. // specified by referenceId, for example chr1, 1, or chrX.
  1233. ReferenceName string `json:"referenceName,omitempty"`
  1234. // ReverseStrand: Whether this range refers to the reverse strand, as
  1235. // opposed to the forward strand. Note that regardless of this field,
  1236. // the start/end position of the range always refer to the forward
  1237. // strand.
  1238. ReverseStrand bool `json:"reverseStrand,omitempty"`
  1239. // Start: The start position of the range on the reference, 0-based
  1240. // inclusive.
  1241. Start int64 `json:"start,omitempty,string"`
  1242. // ForceSendFields is a list of field names (e.g. "End") to
  1243. // unconditionally include in API requests. By default, fields with
  1244. // empty values are omitted from API requests. However, any non-pointer,
  1245. // non-interface field appearing in ForceSendFields will be sent to the
  1246. // server regardless of whether the field is empty or not. This may be
  1247. // used to include empty fields in Patch requests.
  1248. ForceSendFields []string `json:"-"`
  1249. }
  1250. func (s *RangePosition) MarshalJSON() ([]byte, error) {
  1251. type noMethod RangePosition
  1252. raw := noMethod(*s)
  1253. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1254. }
  1255. // Read: A read alignment describes a linear alignment of a string of
  1256. // DNA to a reference sequence, in addition to metadata about the
  1257. // fragment (the molecule of DNA sequenced) and the read (the bases
  1258. // which were read by the sequencer). A read is equivalent to a line in
  1259. // a SAM file. A read belongs to exactly one read group and exactly one
  1260. // read group set. Generating a reference-aligned sequence string When
  1261. // interacting with mapped reads, it's often useful to produce a string
  1262. // representing the local alignment of the read to reference. The
  1263. // following pseudocode demonstrates one way of doing this:
  1264. // out = "" offset = 0 for c in read.alignment.cigar { switch
  1265. // c.operation { case "ALIGNMENT_MATCH", "SEQUENCE_MATCH",
  1266. // "SEQUENCE_MISMATCH": out +=
  1267. // read.alignedSequence[offset:offset+c.operationLength] offset +=
  1268. // c.operationLength break case "CLIP_SOFT", "INSERT": offset +=
  1269. // c.operationLength break case "PAD": out += repeat("*",
  1270. // c.operationLength) break case "DELETE": out += repeat("-",
  1271. // c.operationLength) break case "SKIP": out += repeat(" ",
  1272. // c.operationLength) break case "CLIP_HARD": break } } return
  1273. // out
  1274. // Converting to SAM's CIGAR string The following pseudocode generates a
  1275. // SAM CIGAR string from the cigar field. Note that this is a lossy
  1276. // conversion (cigar.referenceSequence is lost).
  1277. // cigarMap = { "ALIGNMENT_MATCH": "M", "INSERT": "I", "DELETE": "D",
  1278. // "SKIP": "N", "CLIP_SOFT": "S", "CLIP_HARD": "H", "PAD": "P",
  1279. // "SEQUENCE_MATCH": "=", "SEQUENCE_MISMATCH": "X", } cigarStr = "" for
  1280. // c in read.alignment.cigar { cigarStr += c.operationLength +
  1281. // cigarMap[c.operation] } return cigarStr
  1282. type Read struct {
  1283. // AlignedQuality: The quality of the read sequence contained in this
  1284. // alignment record. (equivalent to QUAL in SAM). alignedSequence and
  1285. // alignedQuality may be shorter than the full read sequence and
  1286. // quality. This will occur if the alignment is part of a chimeric
  1287. // alignment, or if the read was trimmed. When this occurs, the CIGAR
  1288. // for this read will begin/end with a hard clip operator that will
  1289. // indicate the length of the excised sequence.
  1290. AlignedQuality []int64 `json:"alignedQuality,omitempty"`
  1291. // AlignedSequence: The bases of the read sequence contained in this
  1292. // alignment record, without CIGAR operations applied (equivalent to SEQ
  1293. // in SAM). alignedSequence and alignedQuality may be shorter than the
  1294. // full read sequence and quality. This will occur if the alignment is
  1295. // part of a chimeric alignment, or if the read was trimmed. When this
  1296. // occurs, the CIGAR for this read will begin/end with a hard clip
  1297. // operator that will indicate the length of the excised sequence.
  1298. AlignedSequence string `json:"alignedSequence,omitempty"`
  1299. // Alignment: The linear alignment for this alignment record. This field
  1300. // is null for unmapped reads.
  1301. Alignment *LinearAlignment `json:"alignment,omitempty"`
  1302. // DuplicateFragment: The fragment is a PCR or optical duplicate (SAM
  1303. // flag 0x400).
  1304. DuplicateFragment bool `json:"duplicateFragment,omitempty"`
  1305. // FailedVendorQualityChecks: Whether this read did not pass filters,
  1306. // such as platform or vendor quality controls (SAM flag 0x200).
  1307. FailedVendorQualityChecks bool `json:"failedVendorQualityChecks,omitempty"`
  1308. // FragmentLength: The observed length of the fragment, equivalent to
  1309. // TLEN in SAM.
  1310. FragmentLength int64 `json:"fragmentLength,omitempty"`
  1311. // FragmentName: The fragment name. Equivalent to QNAME (query template
  1312. // name) in SAM.
  1313. FragmentName string `json:"fragmentName,omitempty"`
  1314. // Id: The unique ID for this read. This is a generated unique ID, not
  1315. // to be confused with fragmentName.
  1316. Id string `json:"id,omitempty"`
  1317. // Info: A string which maps to an array of values.
  1318. Info map[string][]string `json:"info,omitempty"`
  1319. // NextMatePosition: The position of the primary alignment of the
  1320. // (readNumber+1)%numberReads read in the fragment. It replaces mate
  1321. // position and mate strand in SAM. This field will be unset if that
  1322. // read is unmapped or if the fragment only has a single read.
  1323. NextMatePosition *Position `json:"nextMatePosition,omitempty"`
  1324. // NumberReads: The number of reads in the fragment (extension to SAM
  1325. // flag 0x1).
  1326. NumberReads int64 `json:"numberReads,omitempty"`
  1327. // ProperPlacement: The orientation and the distance between reads from
  1328. // the fragment are consistent with the sequencing protocol (SAM flag
  1329. // 0x2).
  1330. ProperPlacement bool `json:"properPlacement,omitempty"`
  1331. // ReadGroupId: The ID of the read group this read belongs to. A read
  1332. // belongs to exactly one read group. This is a server-generated ID (not
  1333. // SAM's RG tag).
  1334. ReadGroupId string `json:"readGroupId,omitempty"`
  1335. // ReadGroupSetId: The ID of the read group set this read belongs to. A
  1336. // read belongs to exactly one read group set.
  1337. ReadGroupSetId string `json:"readGroupSetId,omitempty"`
  1338. // ReadNumber: The read number in sequencing. 0-based and less than
  1339. // numberReads. This field replaces SAM flag 0x40 and 0x80.
  1340. ReadNumber int64 `json:"readNumber,omitempty"`
  1341. // SecondaryAlignment: Whether this alignment is secondary. Equivalent
  1342. // to SAM flag 0x100. A secondary alignment represents an alternative to
  1343. // the primary alignment for this read. Aligners may return secondary
  1344. // alignments if a read can map ambiguously to multiple coordinates in
  1345. // the genome. By convention, each read has one and only one alignment
  1346. // where both secondaryAlignment and supplementaryAlignment are false.
  1347. SecondaryAlignment bool `json:"secondaryAlignment,omitempty"`
  1348. // SupplementaryAlignment: Whether this alignment is supplementary.
  1349. // Equivalent to SAM flag 0x800. Supplementary alignments are used in
  1350. // the representation of a chimeric alignment. In a chimeric alignment,
  1351. // a read is split into multiple linear alignments that map to different
  1352. // reference contigs. The first linear alignment in the read will be
  1353. // designated as the representative alignment; the remaining linear
  1354. // alignments will be designated as supplementary alignments. These
  1355. // alignments may have different mapping quality scores. In each linear
  1356. // alignment in a chimeric alignment, the read will be hard clipped. The
  1357. // alignedSequence and alignedQuality fields in the alignment record
  1358. // will only represent the bases for its respective linear alignment.
  1359. SupplementaryAlignment bool `json:"supplementaryAlignment,omitempty"`
  1360. // ForceSendFields is a list of field names (e.g. "AlignedQuality") to
  1361. // unconditionally include in API requests. By default, fields with
  1362. // empty values are omitted from API requests. However, any non-pointer,
  1363. // non-interface field appearing in ForceSendFields will be sent to the
  1364. // server regardless of whether the field is empty or not. This may be
  1365. // used to include empty fields in Patch requests.
  1366. ForceSendFields []string `json:"-"`
  1367. }
  1368. func (s *Read) MarshalJSON() ([]byte, error) {
  1369. type noMethod Read
  1370. raw := noMethod(*s)
  1371. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1372. }
  1373. // ReadGroup: A read group is all the data that's processed the same way
  1374. // by the sequencer.
  1375. type ReadGroup struct {
  1376. // DatasetId: The ID of the dataset this read group belongs to.
  1377. DatasetId string `json:"datasetId,omitempty"`
  1378. // Description: A free-form text description of this read group.
  1379. Description string `json:"description,omitempty"`
  1380. // Experiment: The experiment used to generate this read group.
  1381. Experiment *ReadGroupExperiment `json:"experiment,omitempty"`
  1382. // Id: The generated unique read group ID. Note: This is different than
  1383. // the @RG ID field in the SAM spec. For that value, see the name field.
  1384. Id string `json:"id,omitempty"`
  1385. // Info: A string which maps to an array of values.
  1386. Info map[string][]string `json:"info,omitempty"`
  1387. // Name: The read group name. This corresponds to the @RG ID field in
  1388. // the SAM spec.
  1389. Name string `json:"name,omitempty"`
  1390. // PredictedInsertSize: The predicted insert size of this read group.
  1391. // The insert size is the length the sequenced DNA fragment from
  1392. // end-to-end, not including the adapters.
  1393. PredictedInsertSize int64 `json:"predictedInsertSize,omitempty"`
  1394. // Programs: The programs used to generate this read group. Programs are
  1395. // always identical for all read groups within a read group set. For
  1396. // this reason, only the first read group in a returned set will have
  1397. // this field populated.
  1398. Programs []*ReadGroupProgram `json:"programs,omitempty"`
  1399. // ReferenceSetId: The reference set to which the reads in this read
  1400. // group are aligned.
  1401. ReferenceSetId string `json:"referenceSetId,omitempty"`
  1402. // SampleId: The sample this read group's data was generated from. Note:
  1403. // This is not an actual ID within this repository, but rather an
  1404. // identifier for a sample which may be meaningful to some external
  1405. // system.
  1406. SampleId string `json:"sampleId,omitempty"`
  1407. // ForceSendFields is a list of field names (e.g. "DatasetId") to
  1408. // unconditionally include in API requests. By default, fields with
  1409. // empty values are omitted from API requests. However, any non-pointer,
  1410. // non-interface field appearing in ForceSendFields will be sent to the
  1411. // server regardless of whether the field is empty or not. This may be
  1412. // used to include empty fields in Patch requests.
  1413. ForceSendFields []string `json:"-"`
  1414. }
  1415. func (s *ReadGroup) MarshalJSON() ([]byte, error) {
  1416. type noMethod ReadGroup
  1417. raw := noMethod(*s)
  1418. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1419. }
  1420. type ReadGroupExperiment struct {
  1421. // InstrumentModel: The instrument model used as part of this
  1422. // experiment. This maps to sequencing technology in BAM.
  1423. InstrumentModel string `json:"instrumentModel,omitempty"`
  1424. // LibraryId: The library used as part of this experiment. Note: This is
  1425. // not an actual ID within this repository, but rather an identifier for
  1426. // a library which may be meaningful to some external system.
  1427. LibraryId string `json:"libraryId,omitempty"`
  1428. // PlatformUnit: The platform unit used as part of this experiment e.g.
  1429. // flowcell-barcode.lane for Illumina or slide for SOLiD. Corresponds to
  1430. // the
  1431. PlatformUnit string `json:"platformUnit,omitempty"`
  1432. // SequencingCenter: The sequencing center used as part of this
  1433. // experiment.
  1434. SequencingCenter string `json:"sequencingCenter,omitempty"`
  1435. // ForceSendFields is a list of field names (e.g. "InstrumentModel") to
  1436. // unconditionally include in API requests. By default, fields with
  1437. // empty values are omitted from API requests. However, any non-pointer,
  1438. // non-interface field appearing in ForceSendFields will be sent to the
  1439. // server regardless of whether the field is empty or not. This may be
  1440. // used to include empty fields in Patch requests.
  1441. ForceSendFields []string `json:"-"`
  1442. }
  1443. func (s *ReadGroupExperiment) MarshalJSON() ([]byte, error) {
  1444. type noMethod ReadGroupExperiment
  1445. raw := noMethod(*s)
  1446. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1447. }
  1448. type ReadGroupProgram struct {
  1449. // CommandLine: The command line used to run this program.
  1450. CommandLine string `json:"commandLine,omitempty"`
  1451. // Id: The user specified locally unique ID of the program. Used along
  1452. // with prevProgramId to define an ordering between programs.
  1453. Id string `json:"id,omitempty"`
  1454. // Name: The display name of the program. This is typically the
  1455. // colloquial name of the tool used, for example 'bwa' or 'picard'.
  1456. Name string `json:"name,omitempty"`
  1457. // PrevProgramId: The ID of the program run before this one.
  1458. PrevProgramId string `json:"prevProgramId,omitempty"`
  1459. // Version: The version of the program run.
  1460. Version string `json:"version,omitempty"`
  1461. // ForceSendFields is a list of field names (e.g. "CommandLine") to
  1462. // unconditionally include in API requests. By default, fields with
  1463. // empty values are omitted from API requests. However, any non-pointer,
  1464. // non-interface field appearing in ForceSendFields will be sent to the
  1465. // server regardless of whether the field is empty or not. This may be
  1466. // used to include empty fields in Patch requests.
  1467. ForceSendFields []string `json:"-"`
  1468. }
  1469. func (s *ReadGroupProgram) MarshalJSON() ([]byte, error) {
  1470. type noMethod ReadGroupProgram
  1471. raw := noMethod(*s)
  1472. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1473. }
  1474. // ReadGroupSet: A read group set is a logical collection of read
  1475. // groups, which are collections of reads produced by a sequencer. A
  1476. // read group set typically models reads corresponding to one sample,
  1477. // sequenced one way, and aligned one way.
  1478. // - A read group set belongs to one dataset.
  1479. // - A read group belongs to one read group set.
  1480. // - A read belongs to one read group.
  1481. type ReadGroupSet struct {
  1482. // DatasetId: The dataset ID.
  1483. DatasetId string `json:"datasetId,omitempty"`
  1484. // Filename: The filename of the original source file for this read
  1485. // group set, if any.
  1486. Filename string `json:"filename,omitempty"`
  1487. // Id: The read group set ID.
  1488. Id string `json:"id,omitempty"`
  1489. // Info: A string which maps to an array of values.
  1490. Info map[string][]string `json:"info,omitempty"`
  1491. // Name: The read group set name. By default this will be initialized to
  1492. // the sample name of the sequenced data contained in this set.
  1493. Name string `json:"name,omitempty"`
  1494. // ReadGroups: The read groups in this set. There are typically 1-10
  1495. // read groups in a read group set.
  1496. ReadGroups []*ReadGroup `json:"readGroups,omitempty"`
  1497. // ReferenceSetId: The reference set the reads in this read group set
  1498. // are aligned to.
  1499. ReferenceSetId string `json:"referenceSetId,omitempty"`
  1500. // ServerResponse contains the HTTP response code and headers from the
  1501. // server.
  1502. googleapi.ServerResponse `json:"-"`
  1503. // ForceSendFields is a list of field names (e.g. "DatasetId") to
  1504. // unconditionally include in API requests. By default, fields with
  1505. // empty values are omitted from API requests. However, any non-pointer,
  1506. // non-interface field appearing in ForceSendFields will be sent to the
  1507. // server regardless of whether the field is empty or not. This may be
  1508. // used to include empty fields in Patch requests.
  1509. ForceSendFields []string `json:"-"`
  1510. }
  1511. func (s *ReadGroupSet) MarshalJSON() ([]byte, error) {
  1512. type noMethod ReadGroupSet
  1513. raw := noMethod(*s)
  1514. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1515. }
  1516. // Reference: A reference is a canonical assembled DNA sequence,
  1517. // intended to act as a reference coordinate space for other genomic
  1518. // annotations. A single reference might represent the human chromosome
  1519. // 1 or mitochandrial DNA, for instance. A reference belongs to one or
  1520. // more reference sets.
  1521. type Reference struct {
  1522. // Id: The Google generated immutable ID of the reference.
  1523. Id string `json:"id,omitempty"`
  1524. // Length: The length of this reference's sequence.
  1525. Length int64 `json:"length,omitempty,string"`
  1526. // Md5checksum: MD5 of the upper-case sequence excluding all whitespace
  1527. // characters (this is equivalent to SQ:M5 in SAM). This value is
  1528. // represented in lower case hexadecimal format.
  1529. Md5checksum string `json:"md5checksum,omitempty"`
  1530. // Name: The name of this reference, for example 22.
  1531. Name string `json:"name,omitempty"`
  1532. // NcbiTaxonId: ID from http://www.ncbi.nlm.nih.gov/taxonomy. For
  1533. // example, 9606 for human.
  1534. NcbiTaxonId int64 `json:"ncbiTaxonId,omitempty"`
  1535. // SourceAccessions: All known corresponding accession IDs in INSDC
  1536. // (GenBank/ENA/DDBJ) ideally with a version number, for example
  1537. // GCF_000001405.26.
  1538. SourceAccessions []string `json:"sourceAccessions,omitempty"`
  1539. // SourceURI: The URI from which the sequence was obtained. Typically
  1540. // specifies a FASTA format file.
  1541. SourceURI string `json:"sourceURI,omitempty"`
  1542. // ServerResponse contains the HTTP response code and headers from the
  1543. // server.
  1544. googleapi.ServerResponse `json:"-"`
  1545. // ForceSendFields is a list of field names (e.g. "Id") to
  1546. // unconditionally include in API requests. By default, fields with
  1547. // empty values are omitted from API requests. However, any non-pointer,
  1548. // non-interface field appearing in ForceSendFields will be sent to the
  1549. // server regardless of whether the field is empty or not. This may be
  1550. // used to include empty fields in Patch requests.
  1551. ForceSendFields []string `json:"-"`
  1552. }
  1553. func (s *Reference) MarshalJSON() ([]byte, error) {
  1554. type noMethod Reference
  1555. raw := noMethod(*s)
  1556. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1557. }
  1558. // ReferenceBound: ReferenceBound records an upper bound for the
  1559. // starting coordinate of variants in a particular reference.
  1560. type ReferenceBound struct {
  1561. // ReferenceName: The name of the reference associated with this
  1562. // ReferenceBound.
  1563. ReferenceName string `json:"referenceName,omitempty"`
  1564. // UpperBound: An upper bound (inclusive) on the starting coordinate of
  1565. // any variant in the reference sequence.
  1566. UpperBound int64 `json:"upperBound,omitempty,string"`
  1567. // ForceSendFields is a list of field names (e.g. "ReferenceName") to
  1568. // unconditionally include in API requests. By default, fields with
  1569. // empty values are omitted from API requests. However, any non-pointer,
  1570. // non-interface field appearing in ForceSendFields will be sent to the
  1571. // server regardless of whether the field is empty or not. This may be
  1572. // used to include empty fields in Patch requests.
  1573. ForceSendFields []string `json:"-"`
  1574. }
  1575. func (s *ReferenceBound) MarshalJSON() ([]byte, error) {
  1576. type noMethod ReferenceBound
  1577. raw := noMethod(*s)
  1578. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1579. }
  1580. // ReferenceSet: A reference set is a set of references which typically
  1581. // comprise a reference assembly for a species, such as GRCh38 which is
  1582. // representative of the human genome. A reference set defines a common
  1583. // coordinate space for comparing reference-aligned experimental data. A
  1584. // reference set contains 1 or more references.
  1585. type ReferenceSet struct {
  1586. // AssemblyId: Public id of this reference set, such as GRCh37.
  1587. AssemblyId string `json:"assemblyId,omitempty"`
  1588. // Description: Free text description of this reference set.
  1589. Description string `json:"description,omitempty"`
  1590. // Id: The Google generated immutable ID of the reference set.
  1591. Id string `json:"id,omitempty"`
  1592. // Md5checksum: Order-independent MD5 checksum which identifies this
  1593. // reference set. The checksum is computed by sorting all lower case
  1594. // hexidecimal string reference.md5checksum (for all reference in this
  1595. // set) in ascending lexicographic order, concatenating, and taking the
  1596. // MD5 of that value. The resulting value is represented in lower case
  1597. // hexadecimal format.
  1598. Md5checksum string `json:"md5checksum,omitempty"`
  1599. // NcbiTaxonId: ID from http://www.ncbi.nlm.nih.gov/taxonomy (for
  1600. // example, 9606 for human) indicating the species which this reference
  1601. // set is intended to model. Note that contained references may specify
  1602. // a different ncbiTaxonId, as assemblies may contain reference
  1603. // sequences which do not belong to the modeled species, for example EBV
  1604. // in a human reference genome.
  1605. NcbiTaxonId int64 `json:"ncbiTaxonId,omitempty"`
  1606. // ReferenceIds: The IDs of the reference objects that are part of this
  1607. // set. Reference.md5checksum must be unique within this set.
  1608. ReferenceIds []string `json:"referenceIds,omitempty"`
  1609. // SourceAccessions: All known corresponding accession IDs in INSDC
  1610. // (GenBank/ENA/DDBJ) ideally with a version number, for example
  1611. // NC_000001.11.
  1612. SourceAccessions []string `json:"sourceAccessions,omitempty"`
  1613. // SourceURI: The URI from which the references were obtained.
  1614. SourceURI string `json:"sourceURI,omitempty"`
  1615. // ServerResponse contains the HTTP response code and headers from the
  1616. // server.
  1617. googleapi.ServerResponse `json:"-"`
  1618. // ForceSendFields is a list of field names (e.g. "AssemblyId") to
  1619. // unconditionally include in API requests. By default, fields with
  1620. // empty values are omitted from API requests. However, any non-pointer,
  1621. // non-interface field appearing in ForceSendFields will be sent to the
  1622. // server regardless of whether the field is empty or not. This may be
  1623. // used to include empty fields in Patch requests.
  1624. ForceSendFields []string `json:"-"`
  1625. }
  1626. func (s *ReferenceSet) MarshalJSON() ([]byte, error) {
  1627. type noMethod ReferenceSet
  1628. raw := noMethod(*s)
  1629. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1630. }
  1631. type SearchAnnotationSetsRequest struct {
  1632. // DatasetIds: The dataset IDs to search within. Caller must have READ
  1633. // access to these datasets.
  1634. DatasetIds []string `json:"datasetIds,omitempty"`
  1635. // Name: Only return annotations sets for which a substring of the name
  1636. // matches this string (case insensitive).
  1637. Name string `json:"name,omitempty"`
  1638. // PageSize: The maximum number of results to return in a single page.
  1639. // If unspecified, defaults to 128. The maximum value is 1024.
  1640. PageSize int64 `json:"pageSize,omitempty"`
  1641. // PageToken: The continuation token, which is used to page through
  1642. // large result sets. To get the next page of results, set this
  1643. // parameter to the value of nextPageToken from the previous response.
  1644. PageToken string `json:"pageToken,omitempty"`
  1645. // ReferenceSetId: If specified, only annotation sets associated with
  1646. // the given reference set are returned.
  1647. ReferenceSetId string `json:"referenceSetId,omitempty"`
  1648. // Types: If specified, only annotation sets that have any of these
  1649. // types are returned.
  1650. //
  1651. // Possible values:
  1652. // "GENE"
  1653. // "GENERIC"
  1654. // "TRANSCRIPT"
  1655. // "VARIANT"
  1656. Types []string `json:"types,omitempty"`
  1657. // ForceSendFields is a list of field names (e.g. "DatasetIds") to
  1658. // unconditionally include in API requests. By default, fields with
  1659. // empty values are omitted from API requests. However, any non-pointer,
  1660. // non-interface field appearing in ForceSendFields will be sent to the
  1661. // server regardless of whether the field is empty or not. This may be
  1662. // used to include empty fields in Patch requests.
  1663. ForceSendFields []string `json:"-"`
  1664. }
  1665. func (s *SearchAnnotationSetsRequest) MarshalJSON() ([]byte, error) {
  1666. type noMethod SearchAnnotationSetsRequest
  1667. raw := noMethod(*s)
  1668. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1669. }
  1670. type SearchAnnotationSetsResponse struct {
  1671. // AnnotationSets: The matching annotation sets.
  1672. AnnotationSets []*AnnotationSet `json:"annotationSets,omitempty"`
  1673. // NextPageToken: The continuation token, which is used to page through
  1674. // large result sets. Provide this value in a subsequent request to
  1675. // return the next page of results. This field will be empty if there
  1676. // aren't any additional results.
  1677. NextPageToken string `json:"nextPageToken,omitempty"`
  1678. // ServerResponse contains the HTTP response code and headers from the
  1679. // server.
  1680. googleapi.ServerResponse `json:"-"`
  1681. // ForceSendFields is a list of field names (e.g. "AnnotationSets") to
  1682. // unconditionally include in API requests. By default, fields with
  1683. // empty values are omitted from API requests. However, any non-pointer,
  1684. // non-interface field appearing in ForceSendFields will be sent to the
  1685. // server regardless of whether the field is empty or not. This may be
  1686. // used to include empty fields in Patch requests.
  1687. ForceSendFields []string `json:"-"`
  1688. }
  1689. func (s *SearchAnnotationSetsResponse) MarshalJSON() ([]byte, error) {
  1690. type noMethod SearchAnnotationSetsResponse
  1691. raw := noMethod(*s)
  1692. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1693. }
  1694. type SearchAnnotationsRequest struct {
  1695. // AnnotationSetIds: The annotation sets to search within. The caller
  1696. // must have READ access to these annotation sets. Required. All queried
  1697. // annotation sets must have the same type.
  1698. AnnotationSetIds []string `json:"annotationSetIds,omitempty"`
  1699. // PageSize: The maximum number of results to return in a single page.
  1700. // If unspecified, defaults to 256. The maximum value is 2048.
  1701. PageSize int64 `json:"pageSize,omitempty"`
  1702. // PageToken: The continuation token, which is used to page through
  1703. // large result sets. To get the next page of results, set this
  1704. // parameter to the value of nextPageToken from the previous response.
  1705. PageToken string `json:"pageToken,omitempty"`
  1706. // Range: If specified, this query matches only annotations that overlap
  1707. // this range.
  1708. Range *QueryRange `json:"range,omitempty"`
  1709. // ForceSendFields is a list of field names (e.g. "AnnotationSetIds") to
  1710. // unconditionally include in API requests. By default, fields with
  1711. // empty values are omitted from API requests. However, any non-pointer,
  1712. // non-interface field appearing in ForceSendFields will be sent to the
  1713. // server regardless of whether the field is empty or not. This may be
  1714. // used to include empty fields in Patch requests.
  1715. ForceSendFields []string `json:"-"`
  1716. }
  1717. func (s *SearchAnnotationsRequest) MarshalJSON() ([]byte, error) {
  1718. type noMethod SearchAnnotationsRequest
  1719. raw := noMethod(*s)
  1720. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1721. }
  1722. type SearchAnnotationsResponse struct {
  1723. // Annotations: The matching annotations.
  1724. Annotations []*Annotation `json:"annotations,omitempty"`
  1725. // NextPageToken: The continuation token, which is used to page through
  1726. // large result sets. Provide this value in a subsequent request to
  1727. // return the next page of results. This field will be empty if there
  1728. // aren't any additional results.
  1729. NextPageToken string `json:"nextPageToken,omitempty"`
  1730. // ServerResponse contains the HTTP response code and headers from the
  1731. // server.
  1732. googleapi.ServerResponse `json:"-"`
  1733. // ForceSendFields is a list of field names (e.g. "Annotations") to
  1734. // unconditionally include in API requests. By default, fields with
  1735. // empty values are omitted from API requests. However, any non-pointer,
  1736. // non-interface field appearing in ForceSendFields will be sent to the
  1737. // server regardless of whether the field is empty or not. This may be
  1738. // used to include empty fields in Patch requests.
  1739. ForceSendFields []string `json:"-"`
  1740. }
  1741. func (s *SearchAnnotationsResponse) MarshalJSON() ([]byte, error) {
  1742. type noMethod SearchAnnotationsResponse
  1743. raw := noMethod(*s)
  1744. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1745. }
  1746. // SearchCallSetsRequest: The call set search request.
  1747. type SearchCallSetsRequest struct {
  1748. // Name: Only return call sets for which a substring of the name matches
  1749. // this string.
  1750. Name string `json:"name,omitempty"`
  1751. // PageSize: The maximum number of results to return in a single page.
  1752. // If unspecified, defaults to 1024.
  1753. PageSize int64 `json:"pageSize,omitempty"`
  1754. // PageToken: The continuation token, which is used to page through
  1755. // large result sets. To get the next page of results, set this
  1756. // parameter to the value of nextPageToken from the previous response.
  1757. PageToken string `json:"pageToken,omitempty"`
  1758. // VariantSetIds: Restrict the query to call sets within the given
  1759. // variant sets. At least one ID must be provided.
  1760. VariantSetIds []string `json:"variantSetIds,omitempty"`
  1761. // ForceSendFields is a list of field names (e.g. "Name") to
  1762. // unconditionally include in API requests. By default, fields with
  1763. // empty values are omitted from API requests. However, any non-pointer,
  1764. // non-interface field appearing in ForceSendFields will be sent to the
  1765. // server regardless of whether the field is empty or not. This may be
  1766. // used to include empty fields in Patch requests.
  1767. ForceSendFields []string `json:"-"`
  1768. }
  1769. func (s *SearchCallSetsRequest) MarshalJSON() ([]byte, error) {
  1770. type noMethod SearchCallSetsRequest
  1771. raw := noMethod(*s)
  1772. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1773. }
  1774. // SearchCallSetsResponse: The call set search response.
  1775. type SearchCallSetsResponse struct {
  1776. // CallSets: The list of matching call sets.
  1777. CallSets []*CallSet `json:"callSets,omitempty"`
  1778. // NextPageToken: The continuation token, which is used to page through
  1779. // large result sets. Provide this value in a subsequent request to
  1780. // return the next page of results. This field will be empty if there
  1781. // aren't any additional results.
  1782. NextPageToken string `json:"nextPageToken,omitempty"`
  1783. // ServerResponse contains the HTTP response code and headers from the
  1784. // server.
  1785. googleapi.ServerResponse `json:"-"`
  1786. // ForceSendFields is a list of field names (e.g. "CallSets") to
  1787. // unconditionally include in API requests. By default, fields with
  1788. // empty values are omitted from API requests. However, any non-pointer,
  1789. // non-interface field appearing in ForceSendFields will be sent to the
  1790. // server regardless of whether the field is empty or not. This may be
  1791. // used to include empty fields in Patch requests.
  1792. ForceSendFields []string `json:"-"`
  1793. }
  1794. func (s *SearchCallSetsResponse) MarshalJSON() ([]byte, error) {
  1795. type noMethod SearchCallSetsResponse
  1796. raw := noMethod(*s)
  1797. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1798. }
  1799. // SearchJobsRequest: The jobs search request.
  1800. type SearchJobsRequest struct {
  1801. // CreatedAfter: If specified, only jobs created on or after this date,
  1802. // given in milliseconds since Unix epoch, will be returned.
  1803. CreatedAfter int64 `json:"createdAfter,omitempty,string"`
  1804. // CreatedBefore: If specified, only jobs created prior to this date,
  1805. // given in milliseconds since Unix epoch, will be returned.
  1806. CreatedBefore int64 `json:"createdBefore,omitempty,string"`
  1807. // PageSize: The maximum number of results to return in a single page.
  1808. // If unspecified, defaults to 128. The maximum value is 256.
  1809. PageSize int64 `json:"pageSize,omitempty"`
  1810. // PageToken: The continuation token which is used to page through large
  1811. // result sets. To get the next page of results, set this parameter to
  1812. // the value of the nextPageToken from the previous response.
  1813. PageToken string `json:"pageToken,omitempty"`
  1814. // ProjectNumber: Required. Only return jobs which belong to this Google
  1815. // Developers Console project.
  1816. ProjectNumber int64 `json:"projectNumber,omitempty,string"`
  1817. // Status: Only return jobs which have a matching status.
  1818. //
  1819. // Possible values:
  1820. // "CANCELED"
  1821. // "FAILURE"
  1822. // "NEW"
  1823. // "PENDING"
  1824. // "RUNNING"
  1825. // "SUCCESS"
  1826. // "UNKNOWN_STATUS"
  1827. Status []string `json:"status,omitempty"`
  1828. // ForceSendFields is a list of field names (e.g. "CreatedAfter") to
  1829. // unconditionally include in API requests. By default, fields with
  1830. // empty values are omitted from API requests. However, any non-pointer,
  1831. // non-interface field appearing in ForceSendFields will be sent to the
  1832. // server regardless of whether the field is empty or not. This may be
  1833. // used to include empty fields in Patch requests.
  1834. ForceSendFields []string `json:"-"`
  1835. }
  1836. func (s *SearchJobsRequest) MarshalJSON() ([]byte, error) {
  1837. type noMethod SearchJobsRequest
  1838. raw := noMethod(*s)
  1839. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1840. }
  1841. // SearchJobsResponse: The job search response.
  1842. type SearchJobsResponse struct {
  1843. // Jobs: The list of jobs results, ordered newest to oldest.
  1844. Jobs []*Job `json:"jobs,omitempty"`
  1845. // NextPageToken: The continuation token which is used to page through
  1846. // large result sets. Provide this value is a subsequent request to
  1847. // return the next page of results. This field will be empty if there
  1848. // are no more results.
  1849. NextPageToken string `json:"nextPageToken,omitempty"`
  1850. // ServerResponse contains the HTTP response code and headers from the
  1851. // server.
  1852. googleapi.ServerResponse `json:"-"`
  1853. // ForceSendFields is a list of field names (e.g. "Jobs") to
  1854. // unconditionally include in API requests. By default, fields with
  1855. // empty values are omitted from API requests. However, any non-pointer,
  1856. // non-interface field appearing in ForceSendFields will be sent to the
  1857. // server regardless of whether the field is empty or not. This may be
  1858. // used to include empty fields in Patch requests.
  1859. ForceSendFields []string `json:"-"`
  1860. }
  1861. func (s *SearchJobsResponse) MarshalJSON() ([]byte, error) {
  1862. type noMethod SearchJobsResponse
  1863. raw := noMethod(*s)
  1864. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1865. }
  1866. // SearchReadGroupSetsRequest: The read group set search request.
  1867. type SearchReadGroupSetsRequest struct {
  1868. // DatasetIds: Restricts this query to read group sets within the given
  1869. // datasets. At least one ID must be provided.
  1870. DatasetIds []string `json:"datasetIds,omitempty"`
  1871. // Name: Only return read group sets for which a substring of the name
  1872. // matches this string.
  1873. Name string `json:"name,omitempty"`
  1874. // PageSize: The maximum number of results to return in a single page.
  1875. // If unspecified, defaults to 256. The maximum value is 1024.
  1876. PageSize int64 `json:"pageSize,omitempty"`
  1877. // PageToken: The continuation token, which is used to page through
  1878. // large result sets. To get the next page of results, set this
  1879. // parameter to the value of nextPageToken from the previous response.
  1880. PageToken string `json:"pageToken,omitempty"`
  1881. // ForceSendFields is a list of field names (e.g. "DatasetIds") to
  1882. // unconditionally include in API requests. By default, fields with
  1883. // empty values are omitted from API requests. However, any non-pointer,
  1884. // non-interface field appearing in ForceSendFields will be sent to the
  1885. // server regardless of whether the field is empty or not. This may be
  1886. // used to include empty fields in Patch requests.
  1887. ForceSendFields []string `json:"-"`
  1888. }
  1889. func (s *SearchReadGroupSetsRequest) MarshalJSON() ([]byte, error) {
  1890. type noMethod SearchReadGroupSetsRequest
  1891. raw := noMethod(*s)
  1892. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1893. }
  1894. // SearchReadGroupSetsResponse: The read group set search response.
  1895. type SearchReadGroupSetsResponse struct {
  1896. // NextPageToken: The continuation token, which is used to page through
  1897. // large result sets. Provide this value in a subsequent request to
  1898. // return the next page of results. This field will be empty if there
  1899. // aren't any additional results.
  1900. NextPageToken string `json:"nextPageToken,omitempty"`
  1901. // ReadGroupSets: The list of matching read group sets.
  1902. ReadGroupSets []*ReadGroupSet `json:"readGroupSets,omitempty"`
  1903. // ServerResponse contains the HTTP response code and headers from the
  1904. // server.
  1905. googleapi.ServerResponse `json:"-"`
  1906. // ForceSendFields is a list of field names (e.g. "NextPageToken") to
  1907. // unconditionally include in API requests. By default, fields with
  1908. // empty values are omitted from API requests. However, any non-pointer,
  1909. // non-interface field appearing in ForceSendFields will be sent to the
  1910. // server regardless of whether the field is empty or not. This may be
  1911. // used to include empty fields in Patch requests.
  1912. ForceSendFields []string `json:"-"`
  1913. }
  1914. func (s *SearchReadGroupSetsResponse) MarshalJSON() ([]byte, error) {
  1915. type noMethod SearchReadGroupSetsResponse
  1916. raw := noMethod(*s)
  1917. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1918. }
  1919. // SearchReadsRequest: The read search request.
  1920. type SearchReadsRequest struct {
  1921. // End: The end position of the range on the reference, 0-based
  1922. // exclusive. If specified, referenceName must also be specified.
  1923. End int64 `json:"end,omitempty,string"`
  1924. // PageSize: The maximum number of results to return in a single page.
  1925. // If unspecified, defaults to 256. The maximum value is 2048.
  1926. PageSize int64 `json:"pageSize,omitempty"`
  1927. // PageToken: The continuation token, which is used to page through
  1928. // large result sets. To get the next page of results, set this
  1929. // parameter to the value of nextPageToken from the previous response.
  1930. PageToken string `json:"pageToken,omitempty"`
  1931. // ReadGroupIds: The IDs of the read groups within which to search for
  1932. // reads. All specified read groups must belong to the same read group
  1933. // sets. Must specify one of readGroupSetIds or readGroupIds.
  1934. ReadGroupIds []string `json:"readGroupIds,omitempty"`
  1935. // ReadGroupSetIds: The IDs of the read groups sets within which to
  1936. // search for reads. All specified read group sets must be aligned
  1937. // against a common set of reference sequences; this defines the genomic
  1938. // coordinates for the query. Must specify one of readGroupSetIds or
  1939. // readGroupIds.
  1940. ReadGroupSetIds []string `json:"readGroupSetIds,omitempty"`
  1941. // ReferenceName: The reference sequence name, for example chr1, 1, or
  1942. // chrX. If set to *, only unmapped reads are returned. If unspecified,
  1943. // all reads (mapped and unmapped) returned.
  1944. ReferenceName string `json:"referenceName,omitempty"`
  1945. // Start: The start position of the range on the reference, 0-based
  1946. // inclusive. If specified, referenceName must also be specified.
  1947. Start int64 `json:"start,omitempty,string"`
  1948. // ForceSendFields is a list of field names (e.g. "End") to
  1949. // unconditionally include in API requests. By default, fields with
  1950. // empty values are omitted from API requests. However, any non-pointer,
  1951. // non-interface field appearing in ForceSendFields will be sent to the
  1952. // server regardless of whether the field is empty or not. This may be
  1953. // used to include empty fields in Patch requests.
  1954. ForceSendFields []string `json:"-"`
  1955. }
  1956. func (s *SearchReadsRequest) MarshalJSON() ([]byte, error) {
  1957. type noMethod SearchReadsRequest
  1958. raw := noMethod(*s)
  1959. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1960. }
  1961. // SearchReadsResponse: The read search response.
  1962. type SearchReadsResponse struct {
  1963. // Alignments: The list of matching alignments sorted by mapped genomic
  1964. // coordinate, if any, ascending in position within the same reference.
  1965. // Unmapped reads, which have no position, are returned contiguously and
  1966. // are sorted in ascending lexicographic order by fragment name.
  1967. Alignments []*Read `json:"alignments,omitempty"`
  1968. // NextPageToken: The continuation token, which is used to page through
  1969. // large result sets. Provide this value in a subsequent request to
  1970. // return the next page of results. This field will be empty if there
  1971. // aren't any additional results.
  1972. NextPageToken string `json:"nextPageToken,omitempty"`
  1973. // ServerResponse contains the HTTP response code and headers from the
  1974. // server.
  1975. googleapi.ServerResponse `json:"-"`
  1976. // ForceSendFields is a list of field names (e.g. "Alignments") to
  1977. // unconditionally include in API requests. By default, fields with
  1978. // empty values are omitted from API requests. However, any non-pointer,
  1979. // non-interface field appearing in ForceSendFields will be sent to the
  1980. // server regardless of whether the field is empty or not. This may be
  1981. // used to include empty fields in Patch requests.
  1982. ForceSendFields []string `json:"-"`
  1983. }
  1984. func (s *SearchReadsResponse) MarshalJSON() ([]byte, error) {
  1985. type noMethod SearchReadsResponse
  1986. raw := noMethod(*s)
  1987. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1988. }
  1989. type SearchReferenceSetsRequest struct {
  1990. // Accessions: If present, return references for which the accession
  1991. // matches any of these strings. Best to give a version number, for
  1992. // example GCF_000001405.26. If only the main accession number is given
  1993. // then all records with that main accession will be returned, whichever
  1994. // version. Note that different versions will have different sequences.
  1995. Accessions []string `json:"accessions,omitempty"`
  1996. // AssemblyId: If present, return reference sets for which a substring
  1997. // of their assemblyId matches this string (case insensitive).
  1998. AssemblyId string `json:"assemblyId,omitempty"`
  1999. // Md5checksums: If present, return references for which the md5checksum
  2000. // matches. See ReferenceSet.md5checksum for details.
  2001. Md5checksums []string `json:"md5checksums,omitempty"`
  2002. // PageSize: The maximum number of results to return in a single page.
  2003. // If unspecified, defaults to 1024. The maximum value is 4096.
  2004. PageSize int64 `json:"pageSize,omitempty"`
  2005. // PageToken: The continuation token, which is used to page through
  2006. // large result sets. To get the next page of results, set this
  2007. // parameter to the value of nextPageToken from the previous response.
  2008. PageToken string `json:"pageToken,omitempty"`
  2009. // ForceSendFields is a list of field names (e.g. "Accessions") to
  2010. // unconditionally include in API requests. By default, fields with
  2011. // empty values are omitted from API requests. However, any non-pointer,
  2012. // non-interface field appearing in ForceSendFields will be sent to the
  2013. // server regardless of whether the field is empty or not. This may be
  2014. // used to include empty fields in Patch requests.
  2015. ForceSendFields []string `json:"-"`
  2016. }
  2017. func (s *SearchReferenceSetsRequest) MarshalJSON() ([]byte, error) {
  2018. type noMethod SearchReferenceSetsRequest
  2019. raw := noMethod(*s)
  2020. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2021. }
  2022. type SearchReferenceSetsResponse struct {
  2023. // NextPageToken: The continuation token, which is used to page through
  2024. // large result sets. Provide this value in a subsequent request to
  2025. // return the next page of results. This field will be empty if there
  2026. // aren't any additional results.
  2027. NextPageToken string `json:"nextPageToken,omitempty"`
  2028. // ReferenceSets: The matching references sets.
  2029. ReferenceSets []*ReferenceSet `json:"referenceSets,omitempty"`
  2030. // ServerResponse contains the HTTP response code and headers from the
  2031. // server.
  2032. googleapi.ServerResponse `json:"-"`
  2033. // ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2034. // unconditionally include in API requests. By default, fields with
  2035. // empty values are omitted from API requests. However, any non-pointer,
  2036. // non-interface field appearing in ForceSendFields will be sent to the
  2037. // server regardless of whether the field is empty or not. This may be
  2038. // used to include empty fields in Patch requests.
  2039. ForceSendFields []string `json:"-"`
  2040. }
  2041. func (s *SearchReferenceSetsResponse) MarshalJSON() ([]byte, error) {
  2042. type noMethod SearchReferenceSetsResponse
  2043. raw := noMethod(*s)
  2044. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2045. }
  2046. type SearchReferencesRequest struct {
  2047. // Accessions: If present, return references for which the accession
  2048. // matches this string. Best to give a version number, for example
  2049. // GCF_000001405.26. If only the main accession number is given then all
  2050. // records with that main accession will be returned, whichever version.
  2051. // Note that different versions will have different sequences.
  2052. Accessions []string `json:"accessions,omitempty"`
  2053. // Md5checksums: If present, return references for which the md5checksum
  2054. // matches. See Reference.md5checksum for construction details.
  2055. Md5checksums []string `json:"md5checksums,omitempty"`
  2056. // PageSize: The maximum number of results to return in a single page.
  2057. // If unspecified, defaults to 1024. The maximum value is 4096.
  2058. PageSize int64 `json:"pageSize,omitempty"`
  2059. // PageToken: The continuation token, which is used to page through
  2060. // large result sets. To get the next page of results, set this
  2061. // parameter to the value of nextPageToken from the previous response.
  2062. PageToken string `json:"pageToken,omitempty"`
  2063. // ReferenceSetId: If present, return only references which belong to
  2064. // this reference set.
  2065. ReferenceSetId string `json:"referenceSetId,omitempty"`
  2066. // ForceSendFields is a list of field names (e.g. "Accessions") to
  2067. // unconditionally include in API requests. By default, fields with
  2068. // empty values are omitted from API requests. However, any non-pointer,
  2069. // non-interface field appearing in ForceSendFields will be sent to the
  2070. // server regardless of whether the field is empty or not. This may be
  2071. // used to include empty fields in Patch requests.
  2072. ForceSendFields []string `json:"-"`
  2073. }
  2074. func (s *SearchReferencesRequest) MarshalJSON() ([]byte, error) {
  2075. type noMethod SearchReferencesRequest
  2076. raw := noMethod(*s)
  2077. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2078. }
  2079. type SearchReferencesResponse struct {
  2080. // NextPageToken: The continuation token, which is used to page through
  2081. // large result sets. Provide this value in a subsequent request to
  2082. // return the next page of results. This field will be empty if there
  2083. // aren't any additional results.
  2084. NextPageToken string `json:"nextPageToken,omitempty"`
  2085. // References: The matching references.
  2086. References []*Reference `json:"references,omitempty"`
  2087. // ServerResponse contains the HTTP response code and headers from the
  2088. // server.
  2089. googleapi.ServerResponse `json:"-"`
  2090. // ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2091. // unconditionally include in API requests. By default, fields with
  2092. // empty values are omitted from API requests. However, any non-pointer,
  2093. // non-interface field appearing in ForceSendFields will be sent to the
  2094. // server regardless of whether the field is empty or not. This may be
  2095. // used to include empty fields in Patch requests.
  2096. ForceSendFields []string `json:"-"`
  2097. }
  2098. func (s *SearchReferencesResponse) MarshalJSON() ([]byte, error) {
  2099. type noMethod SearchReferencesResponse
  2100. raw := noMethod(*s)
  2101. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2102. }
  2103. // SearchVariantSetsRequest: The search variant sets request.
  2104. type SearchVariantSetsRequest struct {
  2105. // DatasetIds: Exactly one dataset ID must be provided here. Only
  2106. // variant sets which belong to this dataset will be returned.
  2107. DatasetIds []string `json:"datasetIds,omitempty"`
  2108. // PageSize: The maximum number of results to return in a single page.
  2109. // If unspecified, defaults to 1024.
  2110. PageSize int64 `json:"pageSize,omitempty"`
  2111. // PageToken: The continuation token, which is used to page through
  2112. // large result sets. To get the next page of results, set this
  2113. // parameter to the value of nextPageToken from the previous response.
  2114. PageToken string `json:"pageToken,omitempty"`
  2115. // ForceSendFields is a list of field names (e.g. "DatasetIds") to
  2116. // unconditionally include in API requests. By default, fields with
  2117. // empty values are omitted from API requests. However, any non-pointer,
  2118. // non-interface field appearing in ForceSendFields will be sent to the
  2119. // server regardless of whether the field is empty or not. This may be
  2120. // used to include empty fields in Patch requests.
  2121. ForceSendFields []string `json:"-"`
  2122. }
  2123. func (s *SearchVariantSetsRequest) MarshalJSON() ([]byte, error) {
  2124. type noMethod SearchVariantSetsRequest
  2125. raw := noMethod(*s)
  2126. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2127. }
  2128. // SearchVariantSetsResponse: The search variant sets response.
  2129. type SearchVariantSetsResponse struct {
  2130. // NextPageToken: The continuation token, which is used to page through
  2131. // large result sets. Provide this value in a subsequent request to
  2132. // return the next page of results. This field will be empty if there
  2133. // aren't any additional results.
  2134. NextPageToken string `json:"nextPageToken,omitempty"`
  2135. // VariantSets: The variant sets belonging to the requested dataset.
  2136. VariantSets []*VariantSet `json:"variantSets,omitempty"`
  2137. // ServerResponse contains the HTTP response code and headers from the
  2138. // server.
  2139. googleapi.ServerResponse `json:"-"`
  2140. // ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2141. // unconditionally include in API requests. By default, fields with
  2142. // empty values are omitted from API requests. However, any non-pointer,
  2143. // non-interface field appearing in ForceSendFields will be sent to the
  2144. // server regardless of whether the field is empty or not. This may be
  2145. // used to include empty fields in Patch requests.
  2146. ForceSendFields []string `json:"-"`
  2147. }
  2148. func (s *SearchVariantSetsResponse) MarshalJSON() ([]byte, error) {
  2149. type noMethod SearchVariantSetsResponse
  2150. raw := noMethod(*s)
  2151. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2152. }
  2153. // SearchVariantsRequest: The variant search request.
  2154. type SearchVariantsRequest struct {
  2155. // CallSetIds: Only return variant calls which belong to call sets with
  2156. // these ids. Leaving this blank returns all variant calls. If a variant
  2157. // has no calls belonging to any of these call sets, it won't be
  2158. // returned at all. Currently, variants with no calls from any call set
  2159. // will never be returned.
  2160. CallSetIds []string `json:"callSetIds,omitempty"`
  2161. // End: The end of the window, 0-based exclusive. If unspecified or 0,
  2162. // defaults to the length of the reference.
  2163. End int64 `json:"end,omitempty,string"`
  2164. // MaxCalls: The maximum number of calls to return in a single page.
  2165. // Note that this limit may be exceeded; at least one variant is always
  2166. // returned per page, even if it has more calls than this limit. If
  2167. // unspecified, defaults to 5000. The maximum value is 10000.
  2168. MaxCalls int64 `json:"maxCalls,omitempty"`
  2169. // PageSize: The maximum number of variants to return in a single page.
  2170. // If unspecified, defaults to 5000. The maximum value is 10000.
  2171. PageSize int64 `json:"pageSize,omitempty"`
  2172. // PageToken: The continuation token, which is used to page through
  2173. // large result sets. To get the next page of results, set this
  2174. // parameter to the value of nextPageToken from the previous response.
  2175. PageToken string `json:"pageToken,omitempty"`
  2176. // ReferenceName: Required. Only return variants in this reference
  2177. // sequence.
  2178. ReferenceName string `json:"referenceName,omitempty"`
  2179. // Start: The beginning of the window (0-based, inclusive) for which
  2180. // overlapping variants should be returned. If unspecified, defaults to
  2181. // 0.
  2182. Start int64 `json:"start,omitempty,string"`
  2183. // VariantName: Only return variants which have exactly this name.
  2184. VariantName string `json:"variantName,omitempty"`
  2185. // VariantSetIds: At most one variant set ID must be provided. Only
  2186. // variants from this variant set will be returned. If omitted, a call
  2187. // set id must be included in the request.
  2188. VariantSetIds []string `json:"variantSetIds,omitempty"`
  2189. // ForceSendFields is a list of field names (e.g. "CallSetIds") to
  2190. // unconditionally include in API requests. By default, fields with
  2191. // empty values are omitted from API requests. However, any non-pointer,
  2192. // non-interface field appearing in ForceSendFields will be sent to the
  2193. // server regardless of whether the field is empty or not. This may be
  2194. // used to include empty fields in Patch requests.
  2195. ForceSendFields []string `json:"-"`
  2196. }
  2197. func (s *SearchVariantsRequest) MarshalJSON() ([]byte, error) {
  2198. type noMethod SearchVariantsRequest
  2199. raw := noMethod(*s)
  2200. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2201. }
  2202. // SearchVariantsResponse: The variant search response.
  2203. type SearchVariantsResponse struct {
  2204. // NextPageToken: The continuation token, which is used to page through
  2205. // large result sets. Provide this value in a subsequent request to
  2206. // return the next page of results. This field will be empty if there
  2207. // aren't any additional results.
  2208. NextPageToken string `json:"nextPageToken,omitempty"`
  2209. // Variants: The list of matching Variants.
  2210. Variants []*Variant `json:"variants,omitempty"`
  2211. // ServerResponse contains the HTTP response code and headers from the
  2212. // server.
  2213. googleapi.ServerResponse `json:"-"`
  2214. // ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2215. // unconditionally include in API requests. By default, fields with
  2216. // empty values are omitted from API requests. However, any non-pointer,
  2217. // non-interface field appearing in ForceSendFields will be sent to the
  2218. // server regardless of whether the field is empty or not. This may be
  2219. // used to include empty fields in Patch requests.
  2220. ForceSendFields []string `json:"-"`
  2221. }
  2222. func (s *SearchVariantsResponse) MarshalJSON() ([]byte, error) {
  2223. type noMethod SearchVariantsResponse
  2224. raw := noMethod(*s)
  2225. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2226. }
  2227. // Transcript: A transcript represents the assertion that a particular
  2228. // region of the reference genome may be transcribed as RNA.
  2229. type Transcript struct {
  2230. // CodingSequence: The range of the coding sequence for this transcript,
  2231. // if any. To determine the exact ranges of coding sequence, intersect
  2232. // this range with those of the exons, if any. If there are any exons,
  2233. // the codingSequence must start and end within them.
  2234. //
  2235. // Note that in some cases, the reference genome will not exactly match
  2236. // the observed mRNA transcript e.g. due to variance in the source
  2237. // genome from reference. In these cases, exon.frame will not
  2238. // necessarily match the expected reference reading frame and coding
  2239. // exon reference bases cannot necessarily be concatenated to produce
  2240. // the original transcript mRNA.
  2241. CodingSequence *TranscriptCodingSequence `json:"codingSequence,omitempty"`
  2242. // Exons: The exons that compose this transcript. This field should be
  2243. // unset for genomes where transcript splicing does not occur, for
  2244. // example prokaryotes.
  2245. //
  2246. //
  2247. // Introns are regions of the transcript that are not included in the
  2248. // spliced RNA product. Though not explicitly modeled here, intron
  2249. // ranges can be deduced; all regions of this transcript that are not
  2250. // exons are introns.
  2251. //
  2252. //
  2253. // Exonic sequences do not necessarily code for a translational product
  2254. // (amino acids). Only the regions of exons bounded by the
  2255. // codingSequence correspond to coding DNA sequence.
  2256. //
  2257. //
  2258. // Exons are ordered by start position and may not overlap.
  2259. Exons []*TranscriptExon `json:"exons,omitempty"`
  2260. // GeneId: The annotation ID of the gene from which this transcript is
  2261. // transcribed.
  2262. GeneId string `json:"geneId,omitempty"`
  2263. // ForceSendFields is a list of field names (e.g. "CodingSequence") to
  2264. // unconditionally include in API requests. By default, fields with
  2265. // empty values are omitted from API requests. However, any non-pointer,
  2266. // non-interface field appearing in ForceSendFields will be sent to the
  2267. // server regardless of whether the field is empty or not. This may be
  2268. // used to include empty fields in Patch requests.
  2269. ForceSendFields []string `json:"-"`
  2270. }
  2271. func (s *Transcript) MarshalJSON() ([]byte, error) {
  2272. type noMethod Transcript
  2273. raw := noMethod(*s)
  2274. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2275. }
  2276. type TranscriptCodingSequence struct {
  2277. // End: The end of the coding sequence on this annotation's reference
  2278. // sequence, 0-based exclusive. Note that this position is relative to
  2279. // the reference start, and not the containing annotation start.
  2280. End int64 `json:"end,omitempty,string"`
  2281. // Start: The start of the coding sequence on this annotation's
  2282. // reference sequence, 0-based inclusive. Note that this position is
  2283. // relative to the reference start, and not the containing annotation
  2284. // start.
  2285. Start int64 `json:"start,omitempty,string"`
  2286. // ForceSendFields is a list of field names (e.g. "End") to
  2287. // unconditionally include in API requests. By default, fields with
  2288. // empty values are omitted from API requests. However, any non-pointer,
  2289. // non-interface field appearing in ForceSendFields will be sent to the
  2290. // server regardless of whether the field is empty or not. This may be
  2291. // used to include empty fields in Patch requests.
  2292. ForceSendFields []string `json:"-"`
  2293. }
  2294. func (s *TranscriptCodingSequence) MarshalJSON() ([]byte, error) {
  2295. type noMethod TranscriptCodingSequence
  2296. raw := noMethod(*s)
  2297. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2298. }
  2299. type TranscriptExon struct {
  2300. // End: The end position of the exon on this annotation's reference
  2301. // sequence, 0-based exclusive. Note that this is relative to the
  2302. // reference start, and not the containing annotation start.
  2303. End int64 `json:"end,omitempty,string"`
  2304. // Frame: The frame of this exon. Contains a value of 0, 1, or 2, which
  2305. // indicates the offset of the first coding base of the exon within the
  2306. // reading frame of the coding DNA sequence, if any. This field is
  2307. // dependent on the strandedness of this annotation (see
  2308. // Annotation.position.reverseStrand). For forward stranded annotations,
  2309. // this offset is relative to the exon.start. For reverse strand
  2310. // annotations, this offset is relative to the exon.end-1.
  2311. //
  2312. // Unset if this exon does not intersect the coding sequence. Upon
  2313. // creation of a transcript, the frame must be populated for all or none
  2314. // of the coding exons.
  2315. Frame *Int32Value `json:"frame,omitempty"`
  2316. // Start: The start position of the exon on this annotation's reference
  2317. // sequence, 0-based inclusive. Note that this is relative to the
  2318. // reference start, and not the containing annotation start.
  2319. Start int64 `json:"start,omitempty,string"`
  2320. // ForceSendFields is a list of field names (e.g. "End") to
  2321. // unconditionally include in API requests. By default, fields with
  2322. // empty values are omitted from API requests. However, any non-pointer,
  2323. // non-interface field appearing in ForceSendFields will be sent to the
  2324. // server regardless of whether the field is empty or not. This may be
  2325. // used to include empty fields in Patch requests.
  2326. ForceSendFields []string `json:"-"`
  2327. }
  2328. func (s *TranscriptExon) MarshalJSON() ([]byte, error) {
  2329. type noMethod TranscriptExon
  2330. raw := noMethod(*s)
  2331. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2332. }
  2333. // Variant: A variant represents a change in DNA sequence relative to a
  2334. // reference sequence. For example, a variant could represent a SNP or
  2335. // an insertion. Variants belong to a variant set. Each of the calls on
  2336. // a variant represent a determination of genotype with respect to that
  2337. // variant. For example, a call might assign probability of 0.32 to the
  2338. // occurrence of a SNP named rs1234 in a sample named NA12345. A call
  2339. // belongs to a call set, which contains related calls typically from
  2340. // one sample.
  2341. type Variant struct {
  2342. // AlternateBases: The bases that appear instead of the reference bases.
  2343. AlternateBases []string `json:"alternateBases,omitempty"`
  2344. // Calls: The variant calls for this particular variant. Each one
  2345. // represents the determination of genotype with respect to this
  2346. // variant.
  2347. Calls []*Call `json:"calls,omitempty"`
  2348. // Created: The date this variant was created, in milliseconds from the
  2349. // epoch.
  2350. Created int64 `json:"created,omitempty,string"`
  2351. // End: The end position (0-based) of this variant. This corresponds to
  2352. // the first base after the last base in the reference allele. So, the
  2353. // length of the reference allele is (end - start). This is useful for
  2354. // variants that don't explicitly give alternate bases, for example
  2355. // large deletions.
  2356. End int64 `json:"end,omitempty,string"`
  2357. // Filter: A list of filters (normally quality filters) this variant has
  2358. // failed. PASS indicates this variant has passed all filters.
  2359. Filter []string `json:"filter,omitempty"`
  2360. // Id: The Google generated ID of the variant, immutable.
  2361. Id string `json:"id,omitempty"`
  2362. // Info: A string which maps to an array of values.
  2363. Info map[string][]string `json:"info,omitempty"`
  2364. // Names: Names for the variant, for example a RefSNP ID.
  2365. Names []string `json:"names,omitempty"`
  2366. // Quality: A measure of how likely this variant is to be real. A higher
  2367. // value is better.
  2368. Quality float64 `json:"quality,omitempty"`
  2369. // ReferenceBases: The reference bases for this variant. They start at
  2370. // the given position.
  2371. ReferenceBases string `json:"referenceBases,omitempty"`
  2372. // ReferenceName: The reference on which this variant occurs. (such as
  2373. // chr20 or X)
  2374. ReferenceName string `json:"referenceName,omitempty"`
  2375. // Start: The position at which this variant occurs (0-based). This
  2376. // corresponds to the first base of the string of reference bases.
  2377. Start int64 `json:"start,omitempty,string"`
  2378. // VariantSetId: The ID of the variant set this variant belongs to.
  2379. VariantSetId string `json:"variantSetId,omitempty"`
  2380. // ServerResponse contains the HTTP response code and headers from the
  2381. // server.
  2382. googleapi.ServerResponse `json:"-"`
  2383. // ForceSendFields is a list of field names (e.g. "AlternateBases") to
  2384. // unconditionally include in API requests. By default, fields with
  2385. // empty values are omitted from API requests. However, any non-pointer,
  2386. // non-interface field appearing in ForceSendFields will be sent to the
  2387. // server regardless of whether the field is empty or not. This may be
  2388. // used to include empty fields in Patch requests.
  2389. ForceSendFields []string `json:"-"`
  2390. }
  2391. func (s *Variant) MarshalJSON() ([]byte, error) {
  2392. type noMethod Variant
  2393. raw := noMethod(*s)
  2394. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2395. }
  2396. // VariantAnnotation: A Variant annotation.
  2397. type VariantAnnotation struct {
  2398. // AlternateBases: The alternate allele for this variant. If multiple
  2399. // alternate alleles exist at this location, create a separate variant
  2400. // for each one, as they may represent distinct conditions.
  2401. AlternateBases string `json:"alternateBases,omitempty"`
  2402. // ClinicalSignificance: Describes the clinical significance of a
  2403. // variant. It is adapted from the ClinVar controlled vocabulary for
  2404. // clinical significance described at:
  2405. // http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/
  2406. //
  2407. // Possible values:
  2408. // "ASSOCIATION"
  2409. // "BENIGN"
  2410. // "CLINICAL_SIGNIFICANCE_UNSPECIFIED"
  2411. // "CONFERS_SENSITIVITY"
  2412. // "DRUG_RESPONSE"
  2413. // "HISTOCOMPATIBILITY"
  2414. // "LIKELY_BENIGN"
  2415. // "LIKELY_PATHOGENIC"
  2416. // "MULTIPLE_REPORTED"
  2417. // "OTHER"
  2418. // "PATHOGENIC"
  2419. // "PROTECTIVE"
  2420. // "RISK_FACTOR"
  2421. // "UNCERTAIN"
  2422. ClinicalSignificance string `json:"clinicalSignificance,omitempty"`
  2423. // Conditions: The set of conditions associated with this variant. A
  2424. // condition describes the way a variant influences human health.
  2425. Conditions []*VariantAnnotationCondition `json:"conditions,omitempty"`
  2426. // Effect: Effect of the variant on the coding sequence.
  2427. //
  2428. // Possible values:
  2429. // "EFFECT_UNSPECIFIED"
  2430. // "FRAMESHIFT"
  2431. // "FRAME_PRESERVING_INDEL"
  2432. // "NONSYNONYMOUS_SNP"
  2433. // "OTHER"
  2434. // "SPLICE_SITE_DISRUPTION"
  2435. // "STOP_GAIN"
  2436. // "STOP_LOSS"
  2437. // "SYNONYMOUS_SNP"
  2438. Effect string `json:"effect,omitempty"`
  2439. // GeneId: Google annotation ID of the gene affected by this variant.
  2440. // This should be provided when the variant is created.
  2441. GeneId string `json:"geneId,omitempty"`
  2442. // TranscriptIds: Google annotation IDs of the transcripts affected by
  2443. // this variant. These should be provided when the variant is created.
  2444. TranscriptIds []string `json:"transcriptIds,omitempty"`
  2445. // Type: Type has been adapted from ClinVar's list of variant types.
  2446. //
  2447. // Possible values:
  2448. // "CNV"
  2449. // "DELETION"
  2450. // "INSERTION"
  2451. // "OTHER"
  2452. // "SNP"
  2453. // "STRUCTURAL"
  2454. // "SUBSTITUTION"
  2455. // "TYPE_UNSPECIFIED"
  2456. Type string `json:"type,omitempty"`
  2457. // ForceSendFields is a list of field names (e.g. "AlternateBases") to
  2458. // unconditionally include in API requests. By default, fields with
  2459. // empty values are omitted from API requests. However, any non-pointer,
  2460. // non-interface field appearing in ForceSendFields will be sent to the
  2461. // server regardless of whether the field is empty or not. This may be
  2462. // used to include empty fields in Patch requests.
  2463. ForceSendFields []string `json:"-"`
  2464. }
  2465. func (s *VariantAnnotation) MarshalJSON() ([]byte, error) {
  2466. type noMethod VariantAnnotation
  2467. raw := noMethod(*s)
  2468. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2469. }
  2470. type VariantAnnotationCondition struct {
  2471. // ConceptId: The MedGen concept id associated with this gene. Search
  2472. // for these IDs at http://www.ncbi.nlm.nih.gov/medgen/
  2473. ConceptId string `json:"conceptId,omitempty"`
  2474. // ExternalIds: The set of external IDs for this condition.
  2475. ExternalIds []*ExternalId `json:"externalIds,omitempty"`
  2476. // Names: A set of names for the condition.
  2477. Names []string `json:"names,omitempty"`
  2478. // OmimId: The OMIM id for this condition. Search for these IDs at
  2479. // http://omim.org/
  2480. OmimId string `json:"omimId,omitempty"`
  2481. // ForceSendFields is a list of field names (e.g. "ConceptId") to
  2482. // unconditionally include in API requests. By default, fields with
  2483. // empty values are omitted from API requests. However, any non-pointer,
  2484. // non-interface field appearing in ForceSendFields will be sent to the
  2485. // server regardless of whether the field is empty or not. This may be
  2486. // used to include empty fields in Patch requests.
  2487. ForceSendFields []string `json:"-"`
  2488. }
  2489. func (s *VariantAnnotationCondition) MarshalJSON() ([]byte, error) {
  2490. type noMethod VariantAnnotationCondition
  2491. raw := noMethod(*s)
  2492. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2493. }
  2494. // VariantSet: A variant set is a collection of call sets and variants.
  2495. // It contains summary statistics of those contents. A variant set
  2496. // belongs to a dataset.
  2497. type VariantSet struct {
  2498. // DatasetId: The dataset to which this variant set belongs. Immutable.
  2499. DatasetId string `json:"datasetId,omitempty"`
  2500. // Id: The Google-generated ID of the variant set. Immutable.
  2501. Id string `json:"id,omitempty"`
  2502. // Metadata: The metadata associated with this variant set.
  2503. Metadata []*Metadata `json:"metadata,omitempty"`
  2504. // ReferenceBounds: A list of all references used by the variants in a
  2505. // variant set with associated coordinate upper bounds for each one.
  2506. ReferenceBounds []*ReferenceBound `json:"referenceBounds,omitempty"`
  2507. // ReferenceSetId: The reference set to which the variant set is mapped.
  2508. // The reference set describes the alignment provenance of the variant
  2509. // set, while the referenceBounds describe the shape of the actual
  2510. // variant data. The reference set's reference names are a superset of
  2511. // those found in the referenceBounds.
  2512. //
  2513. // For example, given a variant set that is mapped to the GRCh38
  2514. // reference set and contains a single variant on reference 'X',
  2515. // referenceBounds would contain only an entry for 'X', while the
  2516. // associated reference set enumerates all possible references: '1',
  2517. // '2', 'X', 'Y', 'MT', etc.
  2518. ReferenceSetId string `json:"referenceSetId,omitempty"`
  2519. // ServerResponse contains the HTTP response code and headers from the
  2520. // server.
  2521. googleapi.ServerResponse `json:"-"`
  2522. // ForceSendFields is a list of field names (e.g. "DatasetId") to
  2523. // unconditionally include in API requests. By default, fields with
  2524. // empty values are omitted from API requests. However, any non-pointer,
  2525. // non-interface field appearing in ForceSendFields will be sent to the
  2526. // server regardless of whether the field is empty or not. This may be
  2527. // used to include empty fields in Patch requests.
  2528. ForceSendFields []string `json:"-"`
  2529. }
  2530. func (s *VariantSet) MarshalJSON() ([]byte, error) {
  2531. type noMethod VariantSet
  2532. raw := noMethod(*s)
  2533. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  2534. }
  2535. // method id "genomics.annotationSets.create":
  2536. type AnnotationSetsCreateCall struct {
  2537. s *Service
  2538. annotationset *AnnotationSet
  2539. urlParams_ gensupport.URLParams
  2540. ctx_ context.Context
  2541. }
  2542. // Create: Creates a new annotation set. Caller must have WRITE
  2543. // permission for the associated dataset.
  2544. //
  2545. // The following fields must be provided when creating an annotation
  2546. // set:
  2547. // - datasetId
  2548. // - referenceSetId
  2549. // All other fields may be optionally specified, unless documented as
  2550. // being server-generated (for example, the id field).
  2551. func (r *AnnotationSetsService) Create(annotationset *AnnotationSet) *AnnotationSetsCreateCall {
  2552. c := &AnnotationSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2553. c.annotationset = annotationset
  2554. return c
  2555. }
  2556. // Fields allows partial responses to be retrieved. See
  2557. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2558. // for more information.
  2559. func (c *AnnotationSetsCreateCall) Fields(s ...googleapi.Field) *AnnotationSetsCreateCall {
  2560. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2561. return c
  2562. }
  2563. // Context sets the context to be used in this call's Do method. Any
  2564. // pending HTTP request will be aborted if the provided context is
  2565. // canceled.
  2566. func (c *AnnotationSetsCreateCall) Context(ctx context.Context) *AnnotationSetsCreateCall {
  2567. c.ctx_ = ctx
  2568. return c
  2569. }
  2570. func (c *AnnotationSetsCreateCall) doRequest(alt string) (*http.Response, error) {
  2571. var body io.Reader = nil
  2572. body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationset)
  2573. if err != nil {
  2574. return nil, err
  2575. }
  2576. ctype := "application/json"
  2577. c.urlParams_.Set("alt", alt)
  2578. urls := googleapi.ResolveRelative(c.s.BasePath, "annotationSets")
  2579. urls += "?" + c.urlParams_.Encode()
  2580. req, _ := http.NewRequest("POST", urls, body)
  2581. googleapi.SetOpaque(req.URL)
  2582. req.Header.Set("Content-Type", ctype)
  2583. req.Header.Set("User-Agent", c.s.userAgent())
  2584. if c.ctx_ != nil {
  2585. return ctxhttp.Do(c.ctx_, c.s.client, req)
  2586. }
  2587. return c.s.client.Do(req)
  2588. }
  2589. // Do executes the "genomics.annotationSets.create" call.
  2590. // Exactly one of *AnnotationSet or error will be non-nil. Any non-2xx
  2591. // status code is an error. Response headers are in either
  2592. // *AnnotationSet.ServerResponse.Header or (if a response was returned
  2593. // at all) in error.(*googleapi.Error).Header. Use
  2594. // googleapi.IsNotModified to check whether the returned error was
  2595. // because http.StatusNotModified was returned.
  2596. func (c *AnnotationSetsCreateCall) Do(opts ...googleapi.CallOption) (*AnnotationSet, error) {
  2597. gensupport.SetOptions(c.urlParams_, opts...)
  2598. res, err := c.doRequest("json")
  2599. if res != nil && res.StatusCode == http.StatusNotModified {
  2600. if res.Body != nil {
  2601. res.Body.Close()
  2602. }
  2603. return nil, &googleapi.Error{
  2604. Code: res.StatusCode,
  2605. Header: res.Header,
  2606. }
  2607. }
  2608. if err != nil {
  2609. return nil, err
  2610. }
  2611. defer googleapi.CloseBody(res)
  2612. if err := googleapi.CheckResponse(res); err != nil {
  2613. return nil, err
  2614. }
  2615. ret := &AnnotationSet{
  2616. ServerResponse: googleapi.ServerResponse{
  2617. Header: res.Header,
  2618. HTTPStatusCode: res.StatusCode,
  2619. },
  2620. }
  2621. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  2622. return nil, err
  2623. }
  2624. return ret, nil
  2625. // {
  2626. // "description": "Creates a new annotation set. Caller must have WRITE permission for the associated dataset.\n\nThe following fields must be provided when creating an annotation set: \n- datasetId \n- referenceSetId \nAll other fields may be optionally specified, unless documented as being server-generated (for example, the id field).",
  2627. // "httpMethod": "POST",
  2628. // "id": "genomics.annotationSets.create",
  2629. // "path": "annotationSets",
  2630. // "request": {
  2631. // "$ref": "AnnotationSet"
  2632. // },
  2633. // "response": {
  2634. // "$ref": "AnnotationSet"
  2635. // },
  2636. // "scopes": [
  2637. // "https://www.googleapis.com/auth/cloud-platform",
  2638. // "https://www.googleapis.com/auth/genomics"
  2639. // ]
  2640. // }
  2641. }
  2642. // method id "genomics.annotationSets.delete":
  2643. type AnnotationSetsDeleteCall struct {
  2644. s *Service
  2645. annotationSetId string
  2646. urlParams_ gensupport.URLParams
  2647. ctx_ context.Context
  2648. }
  2649. // Delete: Deletes an annotation set. Caller must have WRITE permission
  2650. // for the associated annotation set.
  2651. func (r *AnnotationSetsService) Delete(annotationSetId string) *AnnotationSetsDeleteCall {
  2652. c := &AnnotationSetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2653. c.annotationSetId = annotationSetId
  2654. return c
  2655. }
  2656. // Fields allows partial responses to be retrieved. See
  2657. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2658. // for more information.
  2659. func (c *AnnotationSetsDeleteCall) Fields(s ...googleapi.Field) *AnnotationSetsDeleteCall {
  2660. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2661. return c
  2662. }
  2663. // Context sets the context to be used in this call's Do method. Any
  2664. // pending HTTP request will be aborted if the provided context is
  2665. // canceled.
  2666. func (c *AnnotationSetsDeleteCall) Context(ctx context.Context) *AnnotationSetsDeleteCall {
  2667. c.ctx_ = ctx
  2668. return c
  2669. }
  2670. func (c *AnnotationSetsDeleteCall) doRequest(alt string) (*http.Response, error) {
  2671. var body io.Reader = nil
  2672. c.urlParams_.Set("alt", alt)
  2673. urls := googleapi.ResolveRelative(c.s.BasePath, "annotationSets/{annotationSetId}")
  2674. urls += "?" + c.urlParams_.Encode()
  2675. req, _ := http.NewRequest("DELETE", urls, body)
  2676. googleapi.Expand(req.URL, map[string]string{
  2677. "annotationSetId": c.annotationSetId,
  2678. })
  2679. req.Header.Set("User-Agent", c.s.userAgent())
  2680. if c.ctx_ != nil {
  2681. return ctxhttp.Do(c.ctx_, c.s.client, req)
  2682. }
  2683. return c.s.client.Do(req)
  2684. }
  2685. // Do executes the "genomics.annotationSets.delete" call.
  2686. func (c *AnnotationSetsDeleteCall) Do(opts ...googleapi.CallOption) error {
  2687. gensupport.SetOptions(c.urlParams_, opts...)
  2688. res, err := c.doRequest("json")
  2689. if err != nil {
  2690. return err
  2691. }
  2692. defer googleapi.CloseBody(res)
  2693. if err := googleapi.CheckResponse(res); err != nil {
  2694. return err
  2695. }
  2696. return nil
  2697. // {
  2698. // "description": "Deletes an annotation set. Caller must have WRITE permission for the associated annotation set.",
  2699. // "httpMethod": "DELETE",
  2700. // "id": "genomics.annotationSets.delete",
  2701. // "parameterOrder": [
  2702. // "annotationSetId"
  2703. // ],
  2704. // "parameters": {
  2705. // "annotationSetId": {
  2706. // "description": "The ID of the annotation set to be deleted.",
  2707. // "location": "path",
  2708. // "required": true,
  2709. // "type": "string"
  2710. // }
  2711. // },
  2712. // "path": "annotationSets/{annotationSetId}",
  2713. // "scopes": [
  2714. // "https://www.googleapis.com/auth/cloud-platform",
  2715. // "https://www.googleapis.com/auth/genomics"
  2716. // ]
  2717. // }
  2718. }
  2719. // method id "genomics.annotationSets.get":
  2720. type AnnotationSetsGetCall struct {
  2721. s *Service
  2722. annotationSetId string
  2723. urlParams_ gensupport.URLParams
  2724. ifNoneMatch_ string
  2725. ctx_ context.Context
  2726. }
  2727. // Get: Gets an annotation set. Caller must have READ permission for the
  2728. // associated dataset.
  2729. func (r *AnnotationSetsService) Get(annotationSetId string) *AnnotationSetsGetCall {
  2730. c := &AnnotationSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2731. c.annotationSetId = annotationSetId
  2732. return c
  2733. }
  2734. // Fields allows partial responses to be retrieved. See
  2735. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2736. // for more information.
  2737. func (c *AnnotationSetsGetCall) Fields(s ...googleapi.Field) *AnnotationSetsGetCall {
  2738. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2739. return c
  2740. }
  2741. // IfNoneMatch sets the optional parameter which makes the operation
  2742. // fail if the object's ETag matches the given value. This is useful for
  2743. // getting updates only after the object has changed since the last
  2744. // request. Use googleapi.IsNotModified to check whether the response
  2745. // error from Do is the result of In-None-Match.
  2746. func (c *AnnotationSetsGetCall) IfNoneMatch(entityTag string) *AnnotationSetsGetCall {
  2747. c.ifNoneMatch_ = entityTag
  2748. return c
  2749. }
  2750. // Context sets the context to be used in this call's Do method. Any
  2751. // pending HTTP request will be aborted if the provided context is
  2752. // canceled.
  2753. func (c *AnnotationSetsGetCall) Context(ctx context.Context) *AnnotationSetsGetCall {
  2754. c.ctx_ = ctx
  2755. return c
  2756. }
  2757. func (c *AnnotationSetsGetCall) doRequest(alt string) (*http.Response, error) {
  2758. var body io.Reader = nil
  2759. c.urlParams_.Set("alt", alt)
  2760. urls := googleapi.ResolveRelative(c.s.BasePath, "annotationSets/{annotationSetId}")
  2761. urls += "?" + c.urlParams_.Encode()
  2762. req, _ := http.NewRequest("GET", urls, body)
  2763. googleapi.Expand(req.URL, map[string]string{
  2764. "annotationSetId": c.annotationSetId,
  2765. })
  2766. req.Header.Set("User-Agent", c.s.userAgent())
  2767. if c.ifNoneMatch_ != "" {
  2768. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  2769. }
  2770. if c.ctx_ != nil {
  2771. return ctxhttp.Do(c.ctx_, c.s.client, req)
  2772. }
  2773. return c.s.client.Do(req)
  2774. }
  2775. // Do executes the "genomics.annotationSets.get" call.
  2776. // Exactly one of *AnnotationSet or error will be non-nil. Any non-2xx
  2777. // status code is an error. Response headers are in either
  2778. // *AnnotationSet.ServerResponse.Header or (if a response was returned
  2779. // at all) in error.(*googleapi.Error).Header. Use
  2780. // googleapi.IsNotModified to check whether the returned error was
  2781. // because http.StatusNotModified was returned.
  2782. func (c *AnnotationSetsGetCall) Do(opts ...googleapi.CallOption) (*AnnotationSet, error) {
  2783. gensupport.SetOptions(c.urlParams_, opts...)
  2784. res, err := c.doRequest("json")
  2785. if res != nil && res.StatusCode == http.StatusNotModified {
  2786. if res.Body != nil {
  2787. res.Body.Close()
  2788. }
  2789. return nil, &googleapi.Error{
  2790. Code: res.StatusCode,
  2791. Header: res.Header,
  2792. }
  2793. }
  2794. if err != nil {
  2795. return nil, err
  2796. }
  2797. defer googleapi.CloseBody(res)
  2798. if err := googleapi.CheckResponse(res); err != nil {
  2799. return nil, err
  2800. }
  2801. ret := &AnnotationSet{
  2802. ServerResponse: googleapi.ServerResponse{
  2803. Header: res.Header,
  2804. HTTPStatusCode: res.StatusCode,
  2805. },
  2806. }
  2807. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  2808. return nil, err
  2809. }
  2810. return ret, nil
  2811. // {
  2812. // "description": "Gets an annotation set. Caller must have READ permission for the associated dataset.",
  2813. // "httpMethod": "GET",
  2814. // "id": "genomics.annotationSets.get",
  2815. // "parameterOrder": [
  2816. // "annotationSetId"
  2817. // ],
  2818. // "parameters": {
  2819. // "annotationSetId": {
  2820. // "description": "The ID of the annotation set to be retrieved.",
  2821. // "location": "path",
  2822. // "required": true,
  2823. // "type": "string"
  2824. // }
  2825. // },
  2826. // "path": "annotationSets/{annotationSetId}",
  2827. // "response": {
  2828. // "$ref": "AnnotationSet"
  2829. // },
  2830. // "scopes": [
  2831. // "https://www.googleapis.com/auth/cloud-platform",
  2832. // "https://www.googleapis.com/auth/genomics",
  2833. // "https://www.googleapis.com/auth/genomics.readonly"
  2834. // ]
  2835. // }
  2836. }
  2837. // method id "genomics.annotationSets.patch":
  2838. type AnnotationSetsPatchCall struct {
  2839. s *Service
  2840. annotationSetId string
  2841. annotationset *AnnotationSet
  2842. urlParams_ gensupport.URLParams
  2843. ctx_ context.Context
  2844. }
  2845. // Patch: Updates an annotation set. The update must respect all
  2846. // mutability restrictions and other invariants described on the
  2847. // annotation set resource. Caller must have WRITE permission for the
  2848. // associated dataset. This method supports patch semantics.
  2849. func (r *AnnotationSetsService) Patch(annotationSetId string, annotationset *AnnotationSet) *AnnotationSetsPatchCall {
  2850. c := &AnnotationSetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2851. c.annotationSetId = annotationSetId
  2852. c.annotationset = annotationset
  2853. return c
  2854. }
  2855. // Fields allows partial responses to be retrieved. See
  2856. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2857. // for more information.
  2858. func (c *AnnotationSetsPatchCall) Fields(s ...googleapi.Field) *AnnotationSetsPatchCall {
  2859. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2860. return c
  2861. }
  2862. // Context sets the context to be used in this call's Do method. Any
  2863. // pending HTTP request will be aborted if the provided context is
  2864. // canceled.
  2865. func (c *AnnotationSetsPatchCall) Context(ctx context.Context) *AnnotationSetsPatchCall {
  2866. c.ctx_ = ctx
  2867. return c
  2868. }
  2869. func (c *AnnotationSetsPatchCall) doRequest(alt string) (*http.Response, error) {
  2870. var body io.Reader = nil
  2871. body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationset)
  2872. if err != nil {
  2873. return nil, err
  2874. }
  2875. ctype := "application/json"
  2876. c.urlParams_.Set("alt", alt)
  2877. urls := googleapi.ResolveRelative(c.s.BasePath, "annotationSets/{annotationSetId}")
  2878. urls += "?" + c.urlParams_.Encode()
  2879. req, _ := http.NewRequest("PATCH", urls, body)
  2880. googleapi.Expand(req.URL, map[string]string{
  2881. "annotationSetId": c.annotationSetId,
  2882. })
  2883. req.Header.Set("Content-Type", ctype)
  2884. req.Header.Set("User-Agent", c.s.userAgent())
  2885. if c.ctx_ != nil {
  2886. return ctxhttp.Do(c.ctx_, c.s.client, req)
  2887. }
  2888. return c.s.client.Do(req)
  2889. }
  2890. // Do executes the "genomics.annotationSets.patch" call.
  2891. // Exactly one of *AnnotationSet or error will be non-nil. Any non-2xx
  2892. // status code is an error. Response headers are in either
  2893. // *AnnotationSet.ServerResponse.Header or (if a response was returned
  2894. // at all) in error.(*googleapi.Error).Header. Use
  2895. // googleapi.IsNotModified to check whether the returned error was
  2896. // because http.StatusNotModified was returned.
  2897. func (c *AnnotationSetsPatchCall) Do(opts ...googleapi.CallOption) (*AnnotationSet, error) {
  2898. gensupport.SetOptions(c.urlParams_, opts...)
  2899. res, err := c.doRequest("json")
  2900. if res != nil && res.StatusCode == http.StatusNotModified {
  2901. if res.Body != nil {
  2902. res.Body.Close()
  2903. }
  2904. return nil, &googleapi.Error{
  2905. Code: res.StatusCode,
  2906. Header: res.Header,
  2907. }
  2908. }
  2909. if err != nil {
  2910. return nil, err
  2911. }
  2912. defer googleapi.CloseBody(res)
  2913. if err := googleapi.CheckResponse(res); err != nil {
  2914. return nil, err
  2915. }
  2916. ret := &AnnotationSet{
  2917. ServerResponse: googleapi.ServerResponse{
  2918. Header: res.Header,
  2919. HTTPStatusCode: res.StatusCode,
  2920. },
  2921. }
  2922. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  2923. return nil, err
  2924. }
  2925. return ret, nil
  2926. // {
  2927. // "description": "Updates an annotation set. The update must respect all mutability restrictions and other invariants described on the annotation set resource. Caller must have WRITE permission for the associated dataset. This method supports patch semantics.",
  2928. // "httpMethod": "PATCH",
  2929. // "id": "genomics.annotationSets.patch",
  2930. // "parameterOrder": [
  2931. // "annotationSetId"
  2932. // ],
  2933. // "parameters": {
  2934. // "annotationSetId": {
  2935. // "description": "The ID of the annotation set to be updated.",
  2936. // "location": "path",
  2937. // "required": true,
  2938. // "type": "string"
  2939. // }
  2940. // },
  2941. // "path": "annotationSets/{annotationSetId}",
  2942. // "request": {
  2943. // "$ref": "AnnotationSet"
  2944. // },
  2945. // "response": {
  2946. // "$ref": "AnnotationSet"
  2947. // },
  2948. // "scopes": [
  2949. // "https://www.googleapis.com/auth/cloud-platform",
  2950. // "https://www.googleapis.com/auth/genomics"
  2951. // ]
  2952. // }
  2953. }
  2954. // method id "genomics.annotationSets.search":
  2955. type AnnotationSetsSearchCall struct {
  2956. s *Service
  2957. searchannotationsetsrequest *SearchAnnotationSetsRequest
  2958. urlParams_ gensupport.URLParams
  2959. ctx_ context.Context
  2960. }
  2961. // Search: Searches for annotation sets that match the given criteria.
  2962. // Annotation sets are returned in an unspecified order. This order is
  2963. // consistent, such that two queries for the same content (regardless of
  2964. // page size) yield annotation sets in the same order across their
  2965. // respective streams of paginated responses. Caller must have READ
  2966. // permission for the queried datasets.
  2967. func (r *AnnotationSetsService) Search(searchannotationsetsrequest *SearchAnnotationSetsRequest) *AnnotationSetsSearchCall {
  2968. c := &AnnotationSetsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2969. c.searchannotationsetsrequest = searchannotationsetsrequest
  2970. return c
  2971. }
  2972. // Fields allows partial responses to be retrieved. See
  2973. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2974. // for more information.
  2975. func (c *AnnotationSetsSearchCall) Fields(s ...googleapi.Field) *AnnotationSetsSearchCall {
  2976. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2977. return c
  2978. }
  2979. // Context sets the context to be used in this call's Do method. Any
  2980. // pending HTTP request will be aborted if the provided context is
  2981. // canceled.
  2982. func (c *AnnotationSetsSearchCall) Context(ctx context.Context) *AnnotationSetsSearchCall {
  2983. c.ctx_ = ctx
  2984. return c
  2985. }
  2986. func (c *AnnotationSetsSearchCall) doRequest(alt string) (*http.Response, error) {
  2987. var body io.Reader = nil
  2988. body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchannotationsetsrequest)
  2989. if err != nil {
  2990. return nil, err
  2991. }
  2992. ctype := "application/json"
  2993. c.urlParams_.Set("alt", alt)
  2994. urls := googleapi.ResolveRelative(c.s.BasePath, "annotationSets/search")
  2995. urls += "?" + c.urlParams_.Encode()
  2996. req, _ := http.NewRequest("POST", urls, body)
  2997. googleapi.SetOpaque(req.URL)
  2998. req.Header.Set("Content-Type", ctype)
  2999. req.Header.Set("User-Agent", c.s.userAgent())
  3000. if c.ctx_ != nil {
  3001. return ctxhttp.Do(c.ctx_, c.s.client, req)
  3002. }
  3003. return c.s.client.Do(req)
  3004. }
  3005. // Do executes the "genomics.annotationSets.search" call.
  3006. // Exactly one of *SearchAnnotationSetsResponse or error will be
  3007. // non-nil. Any non-2xx status code is an error. Response headers are in
  3008. // either *SearchAnnotationSetsResponse.ServerResponse.Header or (if a
  3009. // response was returned at all) in error.(*googleapi.Error).Header. Use
  3010. // googleapi.IsNotModified to check whether the returned error was
  3011. // because http.StatusNotModified was returned.
  3012. func (c *AnnotationSetsSearchCall) Do(opts ...googleapi.CallOption) (*SearchAnnotationSetsResponse, error) {
  3013. gensupport.SetOptions(c.urlParams_, opts...)
  3014. res, err := c.doRequest("json")
  3015. if res != nil && res.StatusCode == http.StatusNotModified {
  3016. if res.Body != nil {
  3017. res.Body.Close()
  3018. }
  3019. return nil, &googleapi.Error{
  3020. Code: res.StatusCode,
  3021. Header: res.Header,
  3022. }
  3023. }
  3024. if err != nil {
  3025. return nil, err
  3026. }
  3027. defer googleapi.CloseBody(res)
  3028. if err := googleapi.CheckResponse(res); err != nil {
  3029. return nil, err
  3030. }
  3031. ret := &SearchAnnotationSetsResponse{
  3032. ServerResponse: googleapi.ServerResponse{
  3033. Header: res.Header,
  3034. HTTPStatusCode: res.StatusCode,
  3035. },
  3036. }
  3037. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  3038. return nil, err
  3039. }
  3040. return ret, nil
  3041. // {
  3042. // "description": "Searches for annotation sets that match the given criteria. Annotation sets are returned in an unspecified order. This order is consistent, such that two queries for the same content (regardless of page size) yield annotation sets in the same order across their respective streams of paginated responses. Caller must have READ permission for the queried datasets.",
  3043. // "httpMethod": "POST",
  3044. // "id": "genomics.annotationSets.search",
  3045. // "path": "annotationSets/search",
  3046. // "request": {
  3047. // "$ref": "SearchAnnotationSetsRequest"
  3048. // },
  3049. // "response": {
  3050. // "$ref": "SearchAnnotationSetsResponse"
  3051. // },
  3052. // "scopes": [
  3053. // "https://www.googleapis.com/auth/cloud-platform",
  3054. // "https://www.googleapis.com/auth/genomics",
  3055. // "https://www.googleapis.com/auth/genomics.readonly"
  3056. // ]
  3057. // }
  3058. }
  3059. // method id "genomics.annotationSets.update":
  3060. type AnnotationSetsUpdateCall struct {
  3061. s *Service
  3062. annotationSetId string
  3063. annotationset *AnnotationSet
  3064. urlParams_ gensupport.URLParams
  3065. ctx_ context.Context
  3066. }
  3067. // Update: Updates an annotation set. The update must respect all
  3068. // mutability restrictions and other invariants described on the
  3069. // annotation set resource. Caller must have WRITE permission for the
  3070. // associated dataset.
  3071. func (r *AnnotationSetsService) Update(annotationSetId string, annotationset *AnnotationSet) *AnnotationSetsUpdateCall {
  3072. c := &AnnotationSetsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3073. c.annotationSetId = annotationSetId
  3074. c.annotationset = annotationset
  3075. return c
  3076. }
  3077. // Fields allows partial responses to be retrieved. See
  3078. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3079. // for more information.
  3080. func (c *AnnotationSetsUpdateCall) Fields(s ...googleapi.Field) *AnnotationSetsUpdateCall {
  3081. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3082. return c
  3083. }
  3084. // Context sets the context to be used in this call's Do method. Any
  3085. // pending HTTP request will be aborted if the provided context is
  3086. // canceled.
  3087. func (c *AnnotationSetsUpdateCall) Context(ctx context.Context) *AnnotationSetsUpdateCall {
  3088. c.ctx_ = ctx
  3089. return c
  3090. }
  3091. func (c *AnnotationSetsUpdateCall) doRequest(alt string) (*http.Response, error) {
  3092. var body io.Reader = nil
  3093. body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationset)
  3094. if err != nil {
  3095. return nil, err
  3096. }
  3097. ctype := "application/json"
  3098. c.urlParams_.Set("alt", alt)
  3099. urls := googleapi.ResolveRelative(c.s.BasePath, "annotationSets/{annotationSetId}")
  3100. urls += "?" + c.urlParams_.Encode()
  3101. req, _ := http.NewRequest("PUT", urls, body)
  3102. googleapi.Expand(req.URL, map[string]string{
  3103. "annotationSetId": c.annotationSetId,
  3104. })
  3105. req.Header.Set("Content-Type", ctype)
  3106. req.Header.Set("User-Agent", c.s.userAgent())
  3107. if c.ctx_ != nil {
  3108. return ctxhttp.Do(c.ctx_, c.s.client, req)
  3109. }
  3110. return c.s.client.Do(req)
  3111. }
  3112. // Do executes the "genomics.annotationSets.update" call.
  3113. // Exactly one of *AnnotationSet or error will be non-nil. Any non-2xx
  3114. // status code is an error. Response headers are in either
  3115. // *AnnotationSet.ServerResponse.Header or (if a response was returned
  3116. // at all) in error.(*googleapi.Error).Header. Use
  3117. // googleapi.IsNotModified to check whether the returned error was
  3118. // because http.StatusNotModified was returned.
  3119. func (c *AnnotationSetsUpdateCall) Do(opts ...googleapi.CallOption) (*AnnotationSet, error) {
  3120. gensupport.SetOptions(c.urlParams_, opts...)
  3121. res, err := c.doRequest("json")
  3122. if res != nil && res.StatusCode == http.StatusNotModified {
  3123. if res.Body != nil {
  3124. res.Body.Close()
  3125. }
  3126. return nil, &googleapi.Error{
  3127. Code: res.StatusCode,
  3128. Header: res.Header,
  3129. }
  3130. }
  3131. if err != nil {
  3132. return nil, err
  3133. }
  3134. defer googleapi.CloseBody(res)
  3135. if err := googleapi.CheckResponse(res); err != nil {
  3136. return nil, err
  3137. }
  3138. ret := &AnnotationSet{
  3139. ServerResponse: googleapi.ServerResponse{
  3140. Header: res.Header,
  3141. HTTPStatusCode: res.StatusCode,
  3142. },
  3143. }
  3144. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  3145. return nil, err
  3146. }
  3147. return ret, nil
  3148. // {
  3149. // "description": "Updates an annotation set. The update must respect all mutability restrictions and other invariants described on the annotation set resource. Caller must have WRITE permission for the associated dataset.",
  3150. // "httpMethod": "PUT",
  3151. // "id": "genomics.annotationSets.update",
  3152. // "parameterOrder": [
  3153. // "annotationSetId"
  3154. // ],
  3155. // "parameters": {
  3156. // "annotationSetId": {
  3157. // "description": "The ID of the annotation set to be updated.",
  3158. // "location": "path",
  3159. // "required": true,
  3160. // "type": "string"
  3161. // }
  3162. // },
  3163. // "path": "annotationSets/{annotationSetId}",
  3164. // "request": {
  3165. // "$ref": "AnnotationSet"
  3166. // },
  3167. // "response": {
  3168. // "$ref": "AnnotationSet"
  3169. // },
  3170. // "scopes": [
  3171. // "https://www.googleapis.com/auth/cloud-platform",
  3172. // "https://www.googleapis.com/auth/genomics"
  3173. // ]
  3174. // }
  3175. }
  3176. // method id "genomics.annotations.batchCreate":
  3177. type AnnotationsBatchCreateCall struct {
  3178. s *Service
  3179. batchcreateannotationsrequest *BatchCreateAnnotationsRequest
  3180. urlParams_ gensupport.URLParams
  3181. ctx_ context.Context
  3182. }
  3183. // BatchCreate: Creates one or more new annotations atomically. All
  3184. // annotations must belong to the same annotation set. Caller must have
  3185. // WRITE permission for this annotation set. For optimal performance,
  3186. // batch positionally adjacent annotations together.
  3187. //
  3188. //
  3189. // If the request has a systemic issue, such as an attempt to write to
  3190. // an inaccessible annotation set, the entire RPC will fail accordingly.
  3191. // For lesser data issues, when possible an error will be isolated to
  3192. // the corresponding batch entry in the response; the remaining well
  3193. // formed annotations will be created normally.
  3194. //
  3195. //
  3196. // For details on the requirements for each individual annotation
  3197. // resource, see annotations.create.
  3198. func (r *AnnotationsService) BatchCreate(batchcreateannotationsrequest *BatchCreateAnnotationsRequest) *AnnotationsBatchCreateCall {
  3199. c := &AnnotationsBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3200. c.batchcreateannotationsrequest = batchcreateannotationsrequest
  3201. return c
  3202. }
  3203. // Fields allows partial responses to be retrieved. See
  3204. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3205. // for more information.
  3206. func (c *AnnotationsBatchCreateCall) Fields(s ...googleapi.Field) *AnnotationsBatchCreateCall {
  3207. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3208. return c
  3209. }
  3210. // Context sets the context to be used in this call's Do method. Any
  3211. // pending HTTP request will be aborted if the provided context is
  3212. // canceled.
  3213. func (c *AnnotationsBatchCreateCall) Context(ctx context.Context) *AnnotationsBatchCreateCall {
  3214. c.ctx_ = ctx
  3215. return c
  3216. }
  3217. func (c *AnnotationsBatchCreateCall) doRequest(alt string) (*http.Response, error) {
  3218. var body io.Reader = nil
  3219. body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchcreateannotationsrequest)
  3220. if err != nil {
  3221. return nil, err
  3222. }
  3223. ctype := "application/json"
  3224. c.urlParams_.Set("alt", alt)
  3225. urls := googleapi.ResolveRelative(c.s.BasePath, "annotations:batchCreate")
  3226. urls += "?" + c.urlParams_.Encode()
  3227. req, _ := http.NewRequest("POST", urls, body)
  3228. googleapi.SetOpaque(req.URL)
  3229. req.Header.Set("Content-Type", ctype)
  3230. req.Header.Set("User-Agent", c.s.userAgent())
  3231. if c.ctx_ != nil {
  3232. return ctxhttp.Do(c.ctx_, c.s.client, req)
  3233. }
  3234. return c.s.client.Do(req)
  3235. }
  3236. // Do executes the "genomics.annotations.batchCreate" call.
  3237. // Exactly one of *BatchAnnotationsResponse or error will be non-nil.
  3238. // Any non-2xx status code is an error. Response headers are in either
  3239. // *BatchAnnotationsResponse.ServerResponse.Header or (if a response was
  3240. // returned at all) in error.(*googleapi.Error).Header. Use
  3241. // googleapi.IsNotModified to check whether the returned error was
  3242. // because http.StatusNotModified was returned.
  3243. func (c *AnnotationsBatchCreateCall) Do(opts ...googleapi.CallOption) (*BatchAnnotationsResponse, error) {
  3244. gensupport.SetOptions(c.urlParams_, opts...)
  3245. res, err := c.doRequest("json")
  3246. if res != nil && res.StatusCode == http.StatusNotModified {
  3247. if res.Body != nil {
  3248. res.Body.Close()
  3249. }
  3250. return nil, &googleapi.Error{
  3251. Code: res.StatusCode,
  3252. Header: res.Header,
  3253. }
  3254. }
  3255. if err != nil {
  3256. return nil, err
  3257. }
  3258. defer googleapi.CloseBody(res)
  3259. if err := googleapi.CheckResponse(res); err != nil {
  3260. return nil, err
  3261. }
  3262. ret := &BatchAnnotationsResponse{
  3263. ServerResponse: googleapi.ServerResponse{
  3264. Header: res.Header,
  3265. HTTPStatusCode: res.StatusCode,
  3266. },
  3267. }
  3268. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  3269. return nil, err
  3270. }
  3271. return ret, nil
  3272. // {
  3273. // "description": "Creates one or more new annotations atomically. All annotations must belong to the same annotation set. Caller must have WRITE permission for this annotation set. For optimal performance, batch positionally adjacent annotations together.\n\n\nIf the request has a systemic issue, such as an attempt to write to an inaccessible annotation set, the entire RPC will fail accordingly. For lesser data issues, when possible an error will be isolated to the corresponding batch entry in the response; the remaining well formed annotations will be created normally.\n\n\nFor details on the requirements for each individual annotation resource, see annotations.create.",
  3274. // "httpMethod": "POST",
  3275. // "id": "genomics.annotations.batchCreate",
  3276. // "path": "annotations:batchCreate",
  3277. // "request": {
  3278. // "$ref": "BatchCreateAnnotationsRequest"
  3279. // },
  3280. // "response": {
  3281. // "$ref": "BatchAnnotationsResponse"
  3282. // },
  3283. // "scopes": [
  3284. // "https://www.googleapis.com/auth/cloud-platform",
  3285. // "https://www.googleapis.com/auth/genomics"
  3286. // ]
  3287. // }
  3288. }
  3289. // method id "genomics.annotations.create":
  3290. type AnnotationsCreateCall struct {
  3291. s *Service
  3292. annotation *Annotation
  3293. urlParams_ gensupport.URLParams
  3294. ctx_ context.Context
  3295. }
  3296. // Create: Creates a new annotation. Caller must have WRITE permission
  3297. // for the associated annotation set.
  3298. //
  3299. //
  3300. // The following fields must be provided when creating an annotation:
  3301. //
  3302. // - annotationSetId
  3303. // - position.referenceName or position.referenceId Transcripts
  3304. // For annotations of type TRANSCRIPT, the following fields of
  3305. // annotation.transcript must be provided:
  3306. // - exons.start
  3307. // - exons.end
  3308. // All other fields may be optionally specified, unless documented as
  3309. // being server-generated (for example, the id field). The annotated
  3310. // range must be no longer than 100Mbp (mega base pairs). See the
  3311. // annotation resource for additional restrictions on each field.
  3312. func (r *AnnotationsService) Create(annotation *Annotation) *AnnotationsCreateCall {
  3313. c := &AnnotationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3314. c.annotation = annotation
  3315. return c
  3316. }
  3317. // Fields allows partial responses to be retrieved. See
  3318. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3319. // for more information.
  3320. func (c *AnnotationsCreateCall) Fields(s ...googleapi.Field) *AnnotationsCreateCall {
  3321. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3322. return c
  3323. }
  3324. // Context sets the context to be used in this call's Do method. Any
  3325. // pending HTTP request will be aborted if the provided context is
  3326. // canceled.
  3327. func (c *AnnotationsCreateCall) Context(ctx context.Context) *AnnotationsCreateCall {
  3328. c.ctx_ = ctx
  3329. return c
  3330. }
  3331. func (c *AnnotationsCreateCall) doRequest(alt string) (*http.Response, error) {
  3332. var body io.Reader = nil
  3333. body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation)
  3334. if err != nil {
  3335. return nil, err
  3336. }
  3337. ctype := "application/json"
  3338. c.urlParams_.Set("alt", alt)
  3339. urls := googleapi.ResolveRelative(c.s.BasePath, "annotations")
  3340. urls += "?" + c.urlParams_.Encode()
  3341. req, _ := http.NewRequest("POST", urls, body)
  3342. googleapi.SetOpaque(req.URL)
  3343. req.Header.Set("Content-Type", ctype)
  3344. req.Header.Set("User-Agent", c.s.userAgent())
  3345. if c.ctx_ != nil {
  3346. return ctxhttp.Do(c.ctx_, c.s.client, req)
  3347. }
  3348. return c.s.client.Do(req)
  3349. }
  3350. // Do executes the "genomics.annotations.create" call.
  3351. // Exactly one of *Annotation or error will be non-nil. Any non-2xx
  3352. // status code is an error. Response headers are in either
  3353. // *Annotation.ServerResponse.Header or (if a response was returned at
  3354. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  3355. // to check whether the returned error was because
  3356. // http.StatusNotModified was returned.
  3357. func (c *AnnotationsCreateCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
  3358. gensupport.SetOptions(c.urlParams_, opts...)
  3359. res, err := c.doRequest("json")
  3360. if res != nil && res.StatusCode == http.StatusNotModified {
  3361. if res.Body != nil {
  3362. res.Body.Close()
  3363. }
  3364. return nil, &googleapi.Error{
  3365. Code: res.StatusCode,
  3366. Header: res.Header,
  3367. }
  3368. }
  3369. if err != nil {
  3370. return nil, err
  3371. }
  3372. defer googleapi.CloseBody(res)
  3373. if err := googleapi.CheckResponse(res); err != nil {
  3374. return nil, err
  3375. }
  3376. ret := &Annotation{
  3377. ServerResponse: googleapi.ServerResponse{
  3378. Header: res.Header,
  3379. HTTPStatusCode: res.StatusCode,
  3380. },
  3381. }
  3382. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  3383. return nil, err
  3384. }
  3385. return ret, nil
  3386. // {
  3387. // "description": "Creates a new annotation. Caller must have WRITE permission for the associated annotation set.\n\n\nThe following fields must be provided when creating an annotation: \n- annotationSetId \n- position.referenceName or position.referenceId Transcripts \nFor annotations of type TRANSCRIPT, the following fields of annotation.transcript must be provided: \n- exons.start \n- exons.end \nAll other fields may be optionally specified, unless documented as being server-generated (for example, the id field). The annotated range must be no longer than 100Mbp (mega base pairs). See the annotation resource for additional restrictions on each field.",
  3388. // "httpMethod": "POST",
  3389. // "id": "genomics.annotations.create",
  3390. // "path": "annotations",
  3391. // "request": {
  3392. // "$ref": "Annotation"
  3393. // },
  3394. // "response": {
  3395. // "$ref": "Annotation"
  3396. // },
  3397. // "scopes": [
  3398. // "https://www.googleapis.com/auth/cloud-platform",
  3399. // "https://www.googleapis.com/auth/genomics"
  3400. // ]
  3401. // }
  3402. }
  3403. // method id "genomics.annotations.delete":
  3404. type AnnotationsDeleteCall struct {
  3405. s *Service
  3406. annotationId string
  3407. urlParams_ gensupport.URLParams
  3408. ctx_ context.Context
  3409. }
  3410. // Delete: Deletes an annotation. Caller must have WRITE permission for
  3411. // the associated annotation set.
  3412. func (r *AnnotationsService) Delete(annotationId string) *AnnotationsDeleteCall {
  3413. c := &AnnotationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3414. c.annotationId = annotationId
  3415. return c
  3416. }
  3417. // Fields allows partial responses to be retrieved. See
  3418. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3419. // for more information.
  3420. func (c *AnnotationsDeleteCall) Fields(s ...googleapi.Field) *AnnotationsDeleteCall {
  3421. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3422. return c
  3423. }
  3424. // Context sets the context to be used in this call's Do method. Any
  3425. // pending HTTP request will be aborted if the provided context is
  3426. // canceled.
  3427. func (c *AnnotationsDeleteCall) Context(ctx context.Context) *AnnotationsDeleteCall {
  3428. c.ctx_ = ctx
  3429. return c
  3430. }
  3431. func (c *AnnotationsDeleteCall) doRequest(alt string) (*http.Response, error) {
  3432. var body io.Reader = nil
  3433. c.urlParams_.Set("alt", alt)
  3434. urls := googleapi.ResolveRelative(c.s.BasePath, "annotations/{annotationId}")
  3435. urls += "?" + c.urlParams_.Encode()
  3436. req, _ := http.NewRequest("DELETE", urls, body)
  3437. googleapi.Expand(req.URL, map[string]string{
  3438. "annotationId": c.annotationId,
  3439. })
  3440. req.Header.Set("User-Agent", c.s.userAgent())
  3441. if c.ctx_ != nil {
  3442. return ctxhttp.Do(c.ctx_, c.s.client, req)
  3443. }
  3444. return c.s.client.Do(req)
  3445. }
  3446. // Do executes the "genomics.annotations.delete" call.
  3447. func (c *AnnotationsDeleteCall) Do(opts ...googleapi.CallOption) error {
  3448. gensupport.SetOptions(c.urlParams_, opts...)
  3449. res, err := c.doRequest("json")
  3450. if err != nil {
  3451. return err
  3452. }
  3453. defer googleapi.CloseBody(res)
  3454. if err := googleapi.CheckResponse(res); err != nil {
  3455. return err
  3456. }
  3457. return nil
  3458. // {
  3459. // "description": "Deletes an annotation. Caller must have WRITE permission for the associated annotation set.",
  3460. // "httpMethod": "DELETE",
  3461. // "id": "genomics.annotations.delete",
  3462. // "parameterOrder": [
  3463. // "annotationId"
  3464. // ],
  3465. // "parameters": {
  3466. // "annotationId": {
  3467. // "description": "The ID of the annotation to be deleted.",
  3468. // "location": "path",
  3469. // "required": true,
  3470. // "type": "string"
  3471. // }
  3472. // },
  3473. // "path": "annotations/{annotationId}",
  3474. // "scopes": [
  3475. // "https://www.googleapis.com/auth/cloud-platform",
  3476. // "https://www.googleapis.com/auth/genomics"
  3477. // ]
  3478. // }
  3479. }
  3480. // method id "genomics.annotations.get":
  3481. type AnnotationsGetCall struct {
  3482. s *Service
  3483. annotationId string
  3484. urlParams_ gensupport.URLParams
  3485. ifNoneMatch_ string
  3486. ctx_ context.Context
  3487. }
  3488. // Get: Gets an annotation. Caller must have READ permission for the
  3489. // associated annotation set.
  3490. func (r *AnnotationsService) Get(annotationId string) *AnnotationsGetCall {
  3491. c := &AnnotationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3492. c.annotationId = annotationId
  3493. return c
  3494. }
  3495. // Fields allows partial responses to be retrieved. See
  3496. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3497. // for more information.
  3498. func (c *AnnotationsGetCall) Fields(s ...googleapi.Field) *AnnotationsGetCall {
  3499. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3500. return c
  3501. }
  3502. // IfNoneMatch sets the optional parameter which makes the operation
  3503. // fail if the object's ETag matches the given value. This is useful for
  3504. // getting updates only after the object has changed since the last
  3505. // request. Use googleapi.IsNotModified to check whether the response
  3506. // error from Do is the result of In-None-Match.
  3507. func (c *AnnotationsGetCall) IfNoneMatch(entityTag string) *AnnotationsGetCall {
  3508. c.ifNoneMatch_ = entityTag
  3509. return c
  3510. }
  3511. // Context sets the context to be used in this call's Do method. Any
  3512. // pending HTTP request will be aborted if the provided context is
  3513. // canceled.
  3514. func (c *AnnotationsGetCall) Context(ctx context.Context) *AnnotationsGetCall {
  3515. c.ctx_ = ctx
  3516. return c
  3517. }
  3518. func (c *AnnotationsGetCall) doRequest(alt string) (*http.Response, error) {
  3519. var body io.Reader = nil
  3520. c.urlParams_.Set("alt", alt)
  3521. urls := googleapi.ResolveRelative(c.s.BasePath, "annotations/{annotationId}")
  3522. urls += "?" + c.urlParams_.Encode()
  3523. req, _ := http.NewRequest("GET", urls, body)
  3524. googleapi.Expand(req.URL, map[string]string{
  3525. "annotationId": c.annotationId,
  3526. })
  3527. req.Header.Set("User-Agent", c.s.userAgent())
  3528. if c.ifNoneMatch_ != "" {
  3529. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  3530. }
  3531. if c.ctx_ != nil {
  3532. return ctxhttp.Do(c.ctx_, c.s.client, req)
  3533. }
  3534. return c.s.client.Do(req)
  3535. }
  3536. // Do executes the "genomics.annotations.get" call.
  3537. // Exactly one of *Annotation or error will be non-nil. Any non-2xx
  3538. // status code is an error. Response headers are in either
  3539. // *Annotation.ServerResponse.Header or (if a response was returned at
  3540. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  3541. // to check whether the returned error was because
  3542. // http.StatusNotModified was returned.
  3543. func (c *AnnotationsGetCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
  3544. gensupport.SetOptions(c.urlParams_, opts...)
  3545. res, err := c.doRequest("json")
  3546. if res != nil && res.StatusCode == http.StatusNotModified {
  3547. if res.Body != nil {
  3548. res.Body.Close()
  3549. }
  3550. return nil, &googleapi.Error{
  3551. Code: res.StatusCode,
  3552. Header: res.Header,
  3553. }
  3554. }
  3555. if err != nil {
  3556. return nil, err
  3557. }
  3558. defer googleapi.CloseBody(res)
  3559. if err := googleapi.CheckResponse(res); err != nil {
  3560. return nil, err
  3561. }
  3562. ret := &Annotation{
  3563. ServerResponse: googleapi.ServerResponse{
  3564. Header: res.Header,
  3565. HTTPStatusCode: res.StatusCode,
  3566. },
  3567. }
  3568. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  3569. return nil, err
  3570. }
  3571. return ret, nil
  3572. // {
  3573. // "description": "Gets an annotation. Caller must have READ permission for the associated annotation set.",
  3574. // "httpMethod": "GET",
  3575. // "id": "genomics.annotations.get",
  3576. // "parameterOrder": [
  3577. // "annotationId"
  3578. // ],
  3579. // "parameters": {
  3580. // "annotationId": {
  3581. // "description": "The ID of the annotation to be retrieved.",
  3582. // "location": "path",
  3583. // "required": true,
  3584. // "type": "string"
  3585. // }
  3586. // },
  3587. // "path": "annotations/{annotationId}",
  3588. // "response": {
  3589. // "$ref": "Annotation"
  3590. // },
  3591. // "scopes": [
  3592. // "https://www.googleapis.com/auth/cloud-platform",
  3593. // "https://www.googleapis.com/auth/genomics",
  3594. // "https://www.googleapis.com/auth/genomics.readonly"
  3595. // ]
  3596. // }
  3597. }
  3598. // method id "genomics.annotations.patch":
  3599. type AnnotationsPatchCall struct {
  3600. s *Service
  3601. annotationId string
  3602. annotation *Annotation
  3603. urlParams_ gensupport.URLParams
  3604. ctx_ context.Context
  3605. }
  3606. // Patch: Updates an annotation. The update must respect all mutability
  3607. // restrictions and other invariants described on the annotation
  3608. // resource. Caller must have WRITE permission for the associated
  3609. // dataset. This method supports patch semantics.
  3610. func (r *AnnotationsService) Patch(annotationId string, annotation *Annotation) *AnnotationsPatchCall {
  3611. c := &AnnotationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3612. c.annotationId = annotationId
  3613. c.annotation = annotation
  3614. return c
  3615. }
  3616. // Fields allows partial responses to be retrieved. See
  3617. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3618. // for more information.
  3619. func (c *AnnotationsPatchCall) Fields(s ...googleapi.Field) *AnnotationsPatchCall {
  3620. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3621. return c
  3622. }
  3623. // Context sets the context to be used in this call's Do method. Any
  3624. // pending HTTP request will be aborted if the provided context is
  3625. // canceled.
  3626. func (c *AnnotationsPatchCall) Context(ctx context.Context) *AnnotationsPatchCall {
  3627. c.ctx_ = ctx
  3628. return c
  3629. }
  3630. func (c *AnnotationsPatchCall) doRequest(alt string) (*http.Response, error) {
  3631. var body io.Reader = nil
  3632. body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation)
  3633. if err != nil {
  3634. return nil, err
  3635. }
  3636. ctype := "application/json"
  3637. c.urlParams_.Set("alt", alt)
  3638. urls := googleapi.ResolveRelative(c.s.BasePath, "annotations/{annotationId}")
  3639. urls += "?" + c.urlParams_.Encode()
  3640. req, _ := http.NewRequest("PATCH", urls, body)
  3641. googleapi.Expand(req.URL, map[string]string{
  3642. "annotationId": c.annotationId,
  3643. })
  3644. req.Header.Set("Content-Type", ctype)
  3645. req.Header.Set("User-Agent", c.s.userAgent())
  3646. if c.ctx_ != nil {
  3647. return ctxhttp.Do(c.ctx_, c.s.client, req)
  3648. }
  3649. return c.s.client.Do(req)
  3650. }
  3651. // Do executes the "genomics.annotations.patch" call.
  3652. // Exactly one of *Annotation or error will be non-nil. Any non-2xx
  3653. // status code is an error. Response headers are in either
  3654. // *Annotation.ServerResponse.Header or (if a response was returned at
  3655. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  3656. // to check whether the returned error was because
  3657. // http.StatusNotModified was returned.
  3658. func (c *AnnotationsPatchCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
  3659. gensupport.SetOptions(c.urlParams_, opts...)
  3660. res, err := c.doRequest("json")
  3661. if res != nil && res.StatusCode == http.StatusNotModified {
  3662. if res.Body != nil {
  3663. res.Body.Close()
  3664. }
  3665. return nil, &googleapi.Error{
  3666. Code: res.StatusCode,
  3667. Header: res.Header,
  3668. }
  3669. }
  3670. if err != nil {
  3671. return nil, err
  3672. }
  3673. defer googleapi.CloseBody(res)
  3674. if err := googleapi.CheckResponse(res); err != nil {
  3675. return nil, err
  3676. }
  3677. ret := &Annotation{
  3678. ServerResponse: googleapi.ServerResponse{
  3679. Header: res.Header,
  3680. HTTPStatusCode: res.StatusCode,
  3681. },
  3682. }
  3683. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  3684. return nil, err
  3685. }
  3686. return ret, nil
  3687. // {
  3688. // "description": "Updates an annotation. The update must respect all mutability restrictions and other invariants described on the annotation resource. Caller must have WRITE permission for the associated dataset. This method supports patch semantics.",
  3689. // "httpMethod": "PATCH",
  3690. // "id": "genomics.annotations.patch",
  3691. // "parameterOrder": [
  3692. // "annotationId"
  3693. // ],
  3694. // "parameters": {
  3695. // "annotationId": {
  3696. // "description": "The ID of the annotation to be updated.",
  3697. // "location": "path",
  3698. // "required": true,
  3699. // "type": "string"
  3700. // }
  3701. // },
  3702. // "path": "annotations/{annotationId}",
  3703. // "request": {
  3704. // "$ref": "Annotation"
  3705. // },
  3706. // "response": {
  3707. // "$ref": "Annotation"
  3708. // },
  3709. // "scopes": [
  3710. // "https://www.googleapis.com/auth/cloud-platform",
  3711. // "https://www.googleapis.com/auth/genomics"
  3712. // ]
  3713. // }
  3714. }
  3715. // method id "genomics.annotations.search":
  3716. type AnnotationsSearchCall struct {
  3717. s *Service
  3718. searchannotationsrequest *SearchAnnotationsRequest
  3719. urlParams_ gensupport.URLParams
  3720. ctx_ context.Context
  3721. }
  3722. // Search: Searches for annotations that match the given criteria.
  3723. // Results are ordered by genomic coordinate (by reference sequence,
  3724. // then position). Annotations with equivalent genomic coordinates are
  3725. // returned in an unspecified order. This order is consistent, such that
  3726. // two queries for the same content (regardless of page size) yield
  3727. // annotations in the same order across their respective streams of
  3728. // paginated responses. Caller must have READ permission for the queried
  3729. // annotation sets.
  3730. func (r *AnnotationsService) Search(searchannotationsrequest *SearchAnnotationsRequest) *AnnotationsSearchCall {
  3731. c := &AnnotationsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3732. c.searchannotationsrequest = searchannotationsrequest
  3733. return c
  3734. }
  3735. // Fields allows partial responses to be retrieved. See
  3736. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3737. // for more information.
  3738. func (c *AnnotationsSearchCall) Fields(s ...googleapi.Field) *AnnotationsSearchCall {
  3739. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3740. return c
  3741. }
  3742. // Context sets the context to be used in this call's Do method. Any
  3743. // pending HTTP request will be aborted if the provided context is
  3744. // canceled.
  3745. func (c *AnnotationsSearchCall) Context(ctx context.Context) *AnnotationsSearchCall {
  3746. c.ctx_ = ctx
  3747. return c
  3748. }
  3749. func (c *AnnotationsSearchCall) doRequest(alt string) (*http.Response, error) {
  3750. var body io.Reader = nil
  3751. body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchannotationsrequest)
  3752. if err != nil {
  3753. return nil, err
  3754. }
  3755. ctype := "application/json"
  3756. c.urlParams_.Set("alt", alt)
  3757. urls := googleapi.ResolveRelative(c.s.BasePath, "annotations/search")
  3758. urls += "?" + c.urlParams_.Encode()
  3759. req, _ := http.NewRequest("POST", urls, body)
  3760. googleapi.SetOpaque(req.URL)
  3761. req.Header.Set("Content-Type", ctype)
  3762. req.Header.Set("User-Agent", c.s.userAgent())
  3763. if c.ctx_ != nil {
  3764. return ctxhttp.Do(c.ctx_, c.s.client, req)
  3765. }
  3766. return c.s.client.Do(req)
  3767. }
  3768. // Do executes the "genomics.annotations.search" call.
  3769. // Exactly one of *SearchAnnotationsResponse or error will be non-nil.
  3770. // Any non-2xx status code is an error. Response headers are in either
  3771. // *SearchAnnotationsResponse.ServerResponse.Header or (if a response
  3772. // was returned at all) in error.(*googleapi.Error).Header. Use
  3773. // googleapi.IsNotModified to check whether the returned error was
  3774. // because http.StatusNotModified was returned.
  3775. func (c *AnnotationsSearchCall) Do(opts ...googleapi.CallOption) (*SearchAnnotationsResponse, error) {
  3776. gensupport.SetOptions(c.urlParams_, opts...)
  3777. res, err := c.doRequest("json")
  3778. if res != nil && res.StatusCode == http.StatusNotModified {
  3779. if res.Body != nil {
  3780. res.Body.Close()
  3781. }
  3782. return nil, &googleapi.Error{
  3783. Code: res.StatusCode,
  3784. Header: res.Header,
  3785. }
  3786. }
  3787. if err != nil {
  3788. return nil, err
  3789. }
  3790. defer googleapi.CloseBody(res)
  3791. if err := googleapi.CheckResponse(res); err != nil {
  3792. return nil, err
  3793. }
  3794. ret := &SearchAnnotationsResponse{
  3795. ServerResponse: googleapi.ServerResponse{
  3796. Header: res.Header,
  3797. HTTPStatusCode: res.StatusCode,
  3798. },
  3799. }
  3800. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  3801. return nil, err
  3802. }
  3803. return ret, nil
  3804. // {
  3805. // "description": "Searches for annotations that match the given criteria. Results are ordered by genomic coordinate (by reference sequence, then position). Annotations with equivalent genomic coordinates are returned in an unspecified order. This order is consistent, such that two queries for the same content (regardless of page size) yield annotations in the same order across their respective streams of paginated responses. Caller must have READ permission for the queried annotation sets.",
  3806. // "httpMethod": "POST",
  3807. // "id": "genomics.annotations.search",
  3808. // "path": "annotations/search",
  3809. // "request": {
  3810. // "$ref": "SearchAnnotationsRequest"
  3811. // },
  3812. // "response": {
  3813. // "$ref": "SearchAnnotationsResponse"
  3814. // },
  3815. // "scopes": [
  3816. // "https://www.googleapis.com/auth/cloud-platform",
  3817. // "https://www.googleapis.com/auth/genomics",
  3818. // "https://www.googleapis.com/auth/genomics.readonly"
  3819. // ]
  3820. // }
  3821. }
  3822. // method id "genomics.annotations.update":
  3823. type AnnotationsUpdateCall struct {
  3824. s *Service
  3825. annotationId string
  3826. annotation *Annotation
  3827. urlParams_ gensupport.URLParams
  3828. ctx_ context.Context
  3829. }
  3830. // Update: Updates an annotation. The update must respect all mutability
  3831. // restrictions and other invariants described on the annotation
  3832. // resource. Caller must have WRITE permission for the associated
  3833. // dataset.
  3834. func (r *AnnotationsService) Update(annotationId string, annotation *Annotation) *AnnotationsUpdateCall {
  3835. c := &AnnotationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3836. c.annotationId = annotationId
  3837. c.annotation = annotation
  3838. return c
  3839. }
  3840. // Fields allows partial responses to be retrieved. See
  3841. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3842. // for more information.
  3843. func (c *AnnotationsUpdateCall) Fields(s ...googleapi.Field) *AnnotationsUpdateCall {
  3844. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3845. return c
  3846. }
  3847. // Context sets the context to be used in this call's Do method. Any
  3848. // pending HTTP request will be aborted if the provided context is
  3849. // canceled.
  3850. func (c *AnnotationsUpdateCall) Context(ctx context.Context) *AnnotationsUpdateCall {
  3851. c.ctx_ = ctx
  3852. return c
  3853. }
  3854. func (c *AnnotationsUpdateCall) doRequest(alt string) (*http.Response, error) {
  3855. var body io.Reader = nil
  3856. body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation)
  3857. if err != nil {
  3858. return nil, err
  3859. }
  3860. ctype := "application/json"
  3861. c.urlParams_.Set("alt", alt)
  3862. urls := googleapi.ResolveRelative(c.s.BasePath, "annotations/{annotationId}")
  3863. urls += "?" + c.urlParams_.Encode()
  3864. req, _ := http.NewRequest("PUT", urls, body)
  3865. googleapi.Expand(req.URL, map[string]string{
  3866. "annotationId": c.annotationId,
  3867. })
  3868. req.Header.Set("Content-Type", ctype)
  3869. req.Header.Set("User-Agent", c.s.userAgent())
  3870. if c.ctx_ != nil {
  3871. return ctxhttp.Do(c.ctx_, c.s.client, req)
  3872. }
  3873. return c.s.client.Do(req)
  3874. }
  3875. // Do executes the "genomics.annotations.update" call.
  3876. // Exactly one of *Annotation or error will be non-nil. Any non-2xx
  3877. // status code is an error. Response headers are in either
  3878. // *Annotation.ServerResponse.Header or (if a response was returned at
  3879. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  3880. // to check whether the returned error was because
  3881. // http.StatusNotModified was returned.
  3882. func (c *AnnotationsUpdateCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
  3883. gensupport.SetOptions(c.urlParams_, opts...)
  3884. res, err := c.doRequest("json")
  3885. if res != nil && res.StatusCode == http.StatusNotModified {
  3886. if res.Body != nil {
  3887. res.Body.Close()
  3888. }
  3889. return nil, &googleapi.Error{
  3890. Code: res.StatusCode,
  3891. Header: res.Header,
  3892. }
  3893. }
  3894. if err != nil {
  3895. return nil, err
  3896. }
  3897. defer googleapi.CloseBody(res)
  3898. if err := googleapi.CheckResponse(res); err != nil {
  3899. return nil, err
  3900. }
  3901. ret := &Annotation{
  3902. ServerResponse: googleapi.ServerResponse{
  3903. Header: res.Header,
  3904. HTTPStatusCode: res.StatusCode,
  3905. },
  3906. }
  3907. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  3908. return nil, err
  3909. }
  3910. return ret, nil
  3911. // {
  3912. // "description": "Updates an annotation. The update must respect all mutability restrictions and other invariants described on the annotation resource. Caller must have WRITE permission for the associated dataset.",
  3913. // "httpMethod": "PUT",
  3914. // "id": "genomics.annotations.update",
  3915. // "parameterOrder": [
  3916. // "annotationId"
  3917. // ],
  3918. // "parameters": {
  3919. // "annotationId": {
  3920. // "description": "The ID of the annotation to be updated.",
  3921. // "location": "path",
  3922. // "required": true,
  3923. // "type": "string"
  3924. // }
  3925. // },
  3926. // "path": "annotations/{annotationId}",
  3927. // "request": {
  3928. // "$ref": "Annotation"
  3929. // },
  3930. // "response": {
  3931. // "$ref": "Annotation"
  3932. // },
  3933. // "scopes": [
  3934. // "https://www.googleapis.com/auth/cloud-platform",
  3935. // "https://www.googleapis.com/auth/genomics"
  3936. // ]
  3937. // }
  3938. }
  3939. // method id "genomics.callsets.create":
  3940. type CallsetsCreateCall struct {
  3941. s *Service
  3942. callset *CallSet
  3943. urlParams_ gensupport.URLParams
  3944. ctx_ context.Context
  3945. }
  3946. // Create: Creates a new call set.
  3947. func (r *CallsetsService) Create(callset *CallSet) *CallsetsCreateCall {
  3948. c := &CallsetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3949. c.callset = callset
  3950. return c
  3951. }
  3952. // Fields allows partial responses to be retrieved. See
  3953. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  3954. // for more information.
  3955. func (c *CallsetsCreateCall) Fields(s ...googleapi.Field) *CallsetsCreateCall {
  3956. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3957. return c
  3958. }
  3959. // Context sets the context to be used in this call's Do method. Any
  3960. // pending HTTP request will be aborted if the provided context is
  3961. // canceled.
  3962. func (c *CallsetsCreateCall) Context(ctx context.Context) *CallsetsCreateCall {
  3963. c.ctx_ = ctx
  3964. return c
  3965. }
  3966. func (c *CallsetsCreateCall) doRequest(alt string) (*http.Response, error) {
  3967. var body io.Reader = nil
  3968. body, err := googleapi.WithoutDataWrapper.JSONReader(c.callset)
  3969. if err != nil {
  3970. return nil, err
  3971. }
  3972. ctype := "application/json"
  3973. c.urlParams_.Set("alt", alt)
  3974. urls := googleapi.ResolveRelative(c.s.BasePath, "callsets")
  3975. urls += "?" + c.urlParams_.Encode()
  3976. req, _ := http.NewRequest("POST", urls, body)
  3977. googleapi.SetOpaque(req.URL)
  3978. req.Header.Set("Content-Type", ctype)
  3979. req.Header.Set("User-Agent", c.s.userAgent())
  3980. if c.ctx_ != nil {
  3981. return ctxhttp.Do(c.ctx_, c.s.client, req)
  3982. }
  3983. return c.s.client.Do(req)
  3984. }
  3985. // Do executes the "genomics.callsets.create" call.
  3986. // Exactly one of *CallSet or error will be non-nil. Any non-2xx status
  3987. // code is an error. Response headers are in either
  3988. // *CallSet.ServerResponse.Header or (if a response was returned at all)
  3989. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  3990. // check whether the returned error was because http.StatusNotModified
  3991. // was returned.
  3992. func (c *CallsetsCreateCall) Do(opts ...googleapi.CallOption) (*CallSet, error) {
  3993. gensupport.SetOptions(c.urlParams_, opts...)
  3994. res, err := c.doRequest("json")
  3995. if res != nil && res.StatusCode == http.StatusNotModified {
  3996. if res.Body != nil {
  3997. res.Body.Close()
  3998. }
  3999. return nil, &googleapi.Error{
  4000. Code: res.StatusCode,
  4001. Header: res.Header,
  4002. }
  4003. }
  4004. if err != nil {
  4005. return nil, err
  4006. }
  4007. defer googleapi.CloseBody(res)
  4008. if err := googleapi.CheckResponse(res); err != nil {
  4009. return nil, err
  4010. }
  4011. ret := &CallSet{
  4012. ServerResponse: googleapi.ServerResponse{
  4013. Header: res.Header,
  4014. HTTPStatusCode: res.StatusCode,
  4015. },
  4016. }
  4017. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  4018. return nil, err
  4019. }
  4020. return ret, nil
  4021. // {
  4022. // "description": "Creates a new call set.",
  4023. // "httpMethod": "POST",
  4024. // "id": "genomics.callsets.create",
  4025. // "path": "callsets",
  4026. // "request": {
  4027. // "$ref": "CallSet"
  4028. // },
  4029. // "response": {
  4030. // "$ref": "CallSet"
  4031. // },
  4032. // "scopes": [
  4033. // "https://www.googleapis.com/auth/cloud-platform",
  4034. // "https://www.googleapis.com/auth/genomics"
  4035. // ]
  4036. // }
  4037. }
  4038. // method id "genomics.callsets.delete":
  4039. type CallsetsDeleteCall struct {
  4040. s *Service
  4041. callSetId string
  4042. urlParams_ gensupport.URLParams
  4043. ctx_ context.Context
  4044. }
  4045. // Delete: Deletes a call set.
  4046. func (r *CallsetsService) Delete(callSetId string) *CallsetsDeleteCall {
  4047. c := &CallsetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4048. c.callSetId = callSetId
  4049. return c
  4050. }
  4051. // Fields allows partial responses to be retrieved. See
  4052. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4053. // for more information.
  4054. func (c *CallsetsDeleteCall) Fields(s ...googleapi.Field) *CallsetsDeleteCall {
  4055. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4056. return c
  4057. }
  4058. // Context sets the context to be used in this call's Do method. Any
  4059. // pending HTTP request will be aborted if the provided context is
  4060. // canceled.
  4061. func (c *CallsetsDeleteCall) Context(ctx context.Context) *CallsetsDeleteCall {
  4062. c.ctx_ = ctx
  4063. return c
  4064. }
  4065. func (c *CallsetsDeleteCall) doRequest(alt string) (*http.Response, error) {
  4066. var body io.Reader = nil
  4067. c.urlParams_.Set("alt", alt)
  4068. urls := googleapi.ResolveRelative(c.s.BasePath, "callsets/{callSetId}")
  4069. urls += "?" + c.urlParams_.Encode()
  4070. req, _ := http.NewRequest("DELETE", urls, body)
  4071. googleapi.Expand(req.URL, map[string]string{
  4072. "callSetId": c.callSetId,
  4073. })
  4074. req.Header.Set("User-Agent", c.s.userAgent())
  4075. if c.ctx_ != nil {
  4076. return ctxhttp.Do(c.ctx_, c.s.client, req)
  4077. }
  4078. return c.s.client.Do(req)
  4079. }
  4080. // Do executes the "genomics.callsets.delete" call.
  4081. func (c *CallsetsDeleteCall) Do(opts ...googleapi.CallOption) error {
  4082. gensupport.SetOptions(c.urlParams_, opts...)
  4083. res, err := c.doRequest("json")
  4084. if err != nil {
  4085. return err
  4086. }
  4087. defer googleapi.CloseBody(res)
  4088. if err := googleapi.CheckResponse(res); err != nil {
  4089. return err
  4090. }
  4091. return nil
  4092. // {
  4093. // "description": "Deletes a call set.",
  4094. // "httpMethod": "DELETE",
  4095. // "id": "genomics.callsets.delete",
  4096. // "parameterOrder": [
  4097. // "callSetId"
  4098. // ],
  4099. // "parameters": {
  4100. // "callSetId": {
  4101. // "description": "The ID of the call set to be deleted.",
  4102. // "location": "path",
  4103. // "required": true,
  4104. // "type": "string"
  4105. // }
  4106. // },
  4107. // "path": "callsets/{callSetId}",
  4108. // "scopes": [
  4109. // "https://www.googleapis.com/auth/cloud-platform",
  4110. // "https://www.googleapis.com/auth/genomics"
  4111. // ]
  4112. // }
  4113. }
  4114. // method id "genomics.callsets.get":
  4115. type CallsetsGetCall struct {
  4116. s *Service
  4117. callSetId string
  4118. urlParams_ gensupport.URLParams
  4119. ifNoneMatch_ string
  4120. ctx_ context.Context
  4121. }
  4122. // Get: Gets a call set by ID.
  4123. func (r *CallsetsService) Get(callSetId string) *CallsetsGetCall {
  4124. c := &CallsetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4125. c.callSetId = callSetId
  4126. return c
  4127. }
  4128. // Fields allows partial responses to be retrieved. See
  4129. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4130. // for more information.
  4131. func (c *CallsetsGetCall) Fields(s ...googleapi.Field) *CallsetsGetCall {
  4132. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4133. return c
  4134. }
  4135. // IfNoneMatch sets the optional parameter which makes the operation
  4136. // fail if the object's ETag matches the given value. This is useful for
  4137. // getting updates only after the object has changed since the last
  4138. // request. Use googleapi.IsNotModified to check whether the response
  4139. // error from Do is the result of In-None-Match.
  4140. func (c *CallsetsGetCall) IfNoneMatch(entityTag string) *CallsetsGetCall {
  4141. c.ifNoneMatch_ = entityTag
  4142. return c
  4143. }
  4144. // Context sets the context to be used in this call's Do method. Any
  4145. // pending HTTP request will be aborted if the provided context is
  4146. // canceled.
  4147. func (c *CallsetsGetCall) Context(ctx context.Context) *CallsetsGetCall {
  4148. c.ctx_ = ctx
  4149. return c
  4150. }
  4151. func (c *CallsetsGetCall) doRequest(alt string) (*http.Response, error) {
  4152. var body io.Reader = nil
  4153. c.urlParams_.Set("alt", alt)
  4154. urls := googleapi.ResolveRelative(c.s.BasePath, "callsets/{callSetId}")
  4155. urls += "?" + c.urlParams_.Encode()
  4156. req, _ := http.NewRequest("GET", urls, body)
  4157. googleapi.Expand(req.URL, map[string]string{
  4158. "callSetId": c.callSetId,
  4159. })
  4160. req.Header.Set("User-Agent", c.s.userAgent())
  4161. if c.ifNoneMatch_ != "" {
  4162. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  4163. }
  4164. if c.ctx_ != nil {
  4165. return ctxhttp.Do(c.ctx_, c.s.client, req)
  4166. }
  4167. return c.s.client.Do(req)
  4168. }
  4169. // Do executes the "genomics.callsets.get" call.
  4170. // Exactly one of *CallSet or error will be non-nil. Any non-2xx status
  4171. // code is an error. Response headers are in either
  4172. // *CallSet.ServerResponse.Header or (if a response was returned at all)
  4173. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  4174. // check whether the returned error was because http.StatusNotModified
  4175. // was returned.
  4176. func (c *CallsetsGetCall) Do(opts ...googleapi.CallOption) (*CallSet, error) {
  4177. gensupport.SetOptions(c.urlParams_, opts...)
  4178. res, err := c.doRequest("json")
  4179. if res != nil && res.StatusCode == http.StatusNotModified {
  4180. if res.Body != nil {
  4181. res.Body.Close()
  4182. }
  4183. return nil, &googleapi.Error{
  4184. Code: res.StatusCode,
  4185. Header: res.Header,
  4186. }
  4187. }
  4188. if err != nil {
  4189. return nil, err
  4190. }
  4191. defer googleapi.CloseBody(res)
  4192. if err := googleapi.CheckResponse(res); err != nil {
  4193. return nil, err
  4194. }
  4195. ret := &CallSet{
  4196. ServerResponse: googleapi.ServerResponse{
  4197. Header: res.Header,
  4198. HTTPStatusCode: res.StatusCode,
  4199. },
  4200. }
  4201. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  4202. return nil, err
  4203. }
  4204. return ret, nil
  4205. // {
  4206. // "description": "Gets a call set by ID.",
  4207. // "httpMethod": "GET",
  4208. // "id": "genomics.callsets.get",
  4209. // "parameterOrder": [
  4210. // "callSetId"
  4211. // ],
  4212. // "parameters": {
  4213. // "callSetId": {
  4214. // "description": "The ID of the call set.",
  4215. // "location": "path",
  4216. // "required": true,
  4217. // "type": "string"
  4218. // }
  4219. // },
  4220. // "path": "callsets/{callSetId}",
  4221. // "response": {
  4222. // "$ref": "CallSet"
  4223. // },
  4224. // "scopes": [
  4225. // "https://www.googleapis.com/auth/cloud-platform",
  4226. // "https://www.googleapis.com/auth/genomics",
  4227. // "https://www.googleapis.com/auth/genomics.readonly"
  4228. // ]
  4229. // }
  4230. }
  4231. // method id "genomics.callsets.patch":
  4232. type CallsetsPatchCall struct {
  4233. s *Service
  4234. callSetId string
  4235. callset *CallSet
  4236. urlParams_ gensupport.URLParams
  4237. ctx_ context.Context
  4238. }
  4239. // Patch: Updates a call set. This method supports patch semantics.
  4240. func (r *CallsetsService) Patch(callSetId string, callset *CallSet) *CallsetsPatchCall {
  4241. c := &CallsetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4242. c.callSetId = callSetId
  4243. c.callset = callset
  4244. return c
  4245. }
  4246. // Fields allows partial responses to be retrieved. See
  4247. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4248. // for more information.
  4249. func (c *CallsetsPatchCall) Fields(s ...googleapi.Field) *CallsetsPatchCall {
  4250. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4251. return c
  4252. }
  4253. // Context sets the context to be used in this call's Do method. Any
  4254. // pending HTTP request will be aborted if the provided context is
  4255. // canceled.
  4256. func (c *CallsetsPatchCall) Context(ctx context.Context) *CallsetsPatchCall {
  4257. c.ctx_ = ctx
  4258. return c
  4259. }
  4260. func (c *CallsetsPatchCall) doRequest(alt string) (*http.Response, error) {
  4261. var body io.Reader = nil
  4262. body, err := googleapi.WithoutDataWrapper.JSONReader(c.callset)
  4263. if err != nil {
  4264. return nil, err
  4265. }
  4266. ctype := "application/json"
  4267. c.urlParams_.Set("alt", alt)
  4268. urls := googleapi.ResolveRelative(c.s.BasePath, "callsets/{callSetId}")
  4269. urls += "?" + c.urlParams_.Encode()
  4270. req, _ := http.NewRequest("PATCH", urls, body)
  4271. googleapi.Expand(req.URL, map[string]string{
  4272. "callSetId": c.callSetId,
  4273. })
  4274. req.Header.Set("Content-Type", ctype)
  4275. req.Header.Set("User-Agent", c.s.userAgent())
  4276. if c.ctx_ != nil {
  4277. return ctxhttp.Do(c.ctx_, c.s.client, req)
  4278. }
  4279. return c.s.client.Do(req)
  4280. }
  4281. // Do executes the "genomics.callsets.patch" call.
  4282. // Exactly one of *CallSet or error will be non-nil. Any non-2xx status
  4283. // code is an error. Response headers are in either
  4284. // *CallSet.ServerResponse.Header or (if a response was returned at all)
  4285. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  4286. // check whether the returned error was because http.StatusNotModified
  4287. // was returned.
  4288. func (c *CallsetsPatchCall) Do(opts ...googleapi.CallOption) (*CallSet, error) {
  4289. gensupport.SetOptions(c.urlParams_, opts...)
  4290. res, err := c.doRequest("json")
  4291. if res != nil && res.StatusCode == http.StatusNotModified {
  4292. if res.Body != nil {
  4293. res.Body.Close()
  4294. }
  4295. return nil, &googleapi.Error{
  4296. Code: res.StatusCode,
  4297. Header: res.Header,
  4298. }
  4299. }
  4300. if err != nil {
  4301. return nil, err
  4302. }
  4303. defer googleapi.CloseBody(res)
  4304. if err := googleapi.CheckResponse(res); err != nil {
  4305. return nil, err
  4306. }
  4307. ret := &CallSet{
  4308. ServerResponse: googleapi.ServerResponse{
  4309. Header: res.Header,
  4310. HTTPStatusCode: res.StatusCode,
  4311. },
  4312. }
  4313. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  4314. return nil, err
  4315. }
  4316. return ret, nil
  4317. // {
  4318. // "description": "Updates a call set. This method supports patch semantics.",
  4319. // "httpMethod": "PATCH",
  4320. // "id": "genomics.callsets.patch",
  4321. // "parameterOrder": [
  4322. // "callSetId"
  4323. // ],
  4324. // "parameters": {
  4325. // "callSetId": {
  4326. // "description": "The ID of the call set to be updated.",
  4327. // "location": "path",
  4328. // "required": true,
  4329. // "type": "string"
  4330. // }
  4331. // },
  4332. // "path": "callsets/{callSetId}",
  4333. // "request": {
  4334. // "$ref": "CallSet"
  4335. // },
  4336. // "response": {
  4337. // "$ref": "CallSet"
  4338. // },
  4339. // "scopes": [
  4340. // "https://www.googleapis.com/auth/cloud-platform",
  4341. // "https://www.googleapis.com/auth/genomics"
  4342. // ]
  4343. // }
  4344. }
  4345. // method id "genomics.callsets.search":
  4346. type CallsetsSearchCall struct {
  4347. s *Service
  4348. searchcallsetsrequest *SearchCallSetsRequest
  4349. urlParams_ gensupport.URLParams
  4350. ctx_ context.Context
  4351. }
  4352. // Search: Gets a list of call sets matching the criteria.
  4353. //
  4354. // Implements GlobalAllianceApi.searchCallSets.
  4355. func (r *CallsetsService) Search(searchcallsetsrequest *SearchCallSetsRequest) *CallsetsSearchCall {
  4356. c := &CallsetsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4357. c.searchcallsetsrequest = searchcallsetsrequest
  4358. return c
  4359. }
  4360. // Fields allows partial responses to be retrieved. See
  4361. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4362. // for more information.
  4363. func (c *CallsetsSearchCall) Fields(s ...googleapi.Field) *CallsetsSearchCall {
  4364. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4365. return c
  4366. }
  4367. // Context sets the context to be used in this call's Do method. Any
  4368. // pending HTTP request will be aborted if the provided context is
  4369. // canceled.
  4370. func (c *CallsetsSearchCall) Context(ctx context.Context) *CallsetsSearchCall {
  4371. c.ctx_ = ctx
  4372. return c
  4373. }
  4374. func (c *CallsetsSearchCall) doRequest(alt string) (*http.Response, error) {
  4375. var body io.Reader = nil
  4376. body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchcallsetsrequest)
  4377. if err != nil {
  4378. return nil, err
  4379. }
  4380. ctype := "application/json"
  4381. c.urlParams_.Set("alt", alt)
  4382. urls := googleapi.ResolveRelative(c.s.BasePath, "callsets/search")
  4383. urls += "?" + c.urlParams_.Encode()
  4384. req, _ := http.NewRequest("POST", urls, body)
  4385. googleapi.SetOpaque(req.URL)
  4386. req.Header.Set("Content-Type", ctype)
  4387. req.Header.Set("User-Agent", c.s.userAgent())
  4388. if c.ctx_ != nil {
  4389. return ctxhttp.Do(c.ctx_, c.s.client, req)
  4390. }
  4391. return c.s.client.Do(req)
  4392. }
  4393. // Do executes the "genomics.callsets.search" call.
  4394. // Exactly one of *SearchCallSetsResponse or error will be non-nil. Any
  4395. // non-2xx status code is an error. Response headers are in either
  4396. // *SearchCallSetsResponse.ServerResponse.Header or (if a response was
  4397. // returned at all) in error.(*googleapi.Error).Header. Use
  4398. // googleapi.IsNotModified to check whether the returned error was
  4399. // because http.StatusNotModified was returned.
  4400. func (c *CallsetsSearchCall) Do(opts ...googleapi.CallOption) (*SearchCallSetsResponse, error) {
  4401. gensupport.SetOptions(c.urlParams_, opts...)
  4402. res, err := c.doRequest("json")
  4403. if res != nil && res.StatusCode == http.StatusNotModified {
  4404. if res.Body != nil {
  4405. res.Body.Close()
  4406. }
  4407. return nil, &googleapi.Error{
  4408. Code: res.StatusCode,
  4409. Header: res.Header,
  4410. }
  4411. }
  4412. if err != nil {
  4413. return nil, err
  4414. }
  4415. defer googleapi.CloseBody(res)
  4416. if err := googleapi.CheckResponse(res); err != nil {
  4417. return nil, err
  4418. }
  4419. ret := &SearchCallSetsResponse{
  4420. ServerResponse: googleapi.ServerResponse{
  4421. Header: res.Header,
  4422. HTTPStatusCode: res.StatusCode,
  4423. },
  4424. }
  4425. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  4426. return nil, err
  4427. }
  4428. return ret, nil
  4429. // {
  4430. // "description": "Gets a list of call sets matching the criteria.\n\nImplements GlobalAllianceApi.searchCallSets.",
  4431. // "httpMethod": "POST",
  4432. // "id": "genomics.callsets.search",
  4433. // "path": "callsets/search",
  4434. // "request": {
  4435. // "$ref": "SearchCallSetsRequest"
  4436. // },
  4437. // "response": {
  4438. // "$ref": "SearchCallSetsResponse"
  4439. // },
  4440. // "scopes": [
  4441. // "https://www.googleapis.com/auth/cloud-platform",
  4442. // "https://www.googleapis.com/auth/genomics",
  4443. // "https://www.googleapis.com/auth/genomics.readonly"
  4444. // ]
  4445. // }
  4446. }
  4447. // method id "genomics.callsets.update":
  4448. type CallsetsUpdateCall struct {
  4449. s *Service
  4450. callSetId string
  4451. callset *CallSet
  4452. urlParams_ gensupport.URLParams
  4453. ctx_ context.Context
  4454. }
  4455. // Update: Updates a call set.
  4456. func (r *CallsetsService) Update(callSetId string, callset *CallSet) *CallsetsUpdateCall {
  4457. c := &CallsetsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4458. c.callSetId = callSetId
  4459. c.callset = callset
  4460. return c
  4461. }
  4462. // Fields allows partial responses to be retrieved. See
  4463. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4464. // for more information.
  4465. func (c *CallsetsUpdateCall) Fields(s ...googleapi.Field) *CallsetsUpdateCall {
  4466. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4467. return c
  4468. }
  4469. // Context sets the context to be used in this call's Do method. Any
  4470. // pending HTTP request will be aborted if the provided context is
  4471. // canceled.
  4472. func (c *CallsetsUpdateCall) Context(ctx context.Context) *CallsetsUpdateCall {
  4473. c.ctx_ = ctx
  4474. return c
  4475. }
  4476. func (c *CallsetsUpdateCall) doRequest(alt string) (*http.Response, error) {
  4477. var body io.Reader = nil
  4478. body, err := googleapi.WithoutDataWrapper.JSONReader(c.callset)
  4479. if err != nil {
  4480. return nil, err
  4481. }
  4482. ctype := "application/json"
  4483. c.urlParams_.Set("alt", alt)
  4484. urls := googleapi.ResolveRelative(c.s.BasePath, "callsets/{callSetId}")
  4485. urls += "?" + c.urlParams_.Encode()
  4486. req, _ := http.NewRequest("PUT", urls, body)
  4487. googleapi.Expand(req.URL, map[string]string{
  4488. "callSetId": c.callSetId,
  4489. })
  4490. req.Header.Set("Content-Type", ctype)
  4491. req.Header.Set("User-Agent", c.s.userAgent())
  4492. if c.ctx_ != nil {
  4493. return ctxhttp.Do(c.ctx_, c.s.client, req)
  4494. }
  4495. return c.s.client.Do(req)
  4496. }
  4497. // Do executes the "genomics.callsets.update" call.
  4498. // Exactly one of *CallSet or error will be non-nil. Any non-2xx status
  4499. // code is an error. Response headers are in either
  4500. // *CallSet.ServerResponse.Header or (if a response was returned at all)
  4501. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  4502. // check whether the returned error was because http.StatusNotModified
  4503. // was returned.
  4504. func (c *CallsetsUpdateCall) Do(opts ...googleapi.CallOption) (*CallSet, error) {
  4505. gensupport.SetOptions(c.urlParams_, opts...)
  4506. res, err := c.doRequest("json")
  4507. if res != nil && res.StatusCode == http.StatusNotModified {
  4508. if res.Body != nil {
  4509. res.Body.Close()
  4510. }
  4511. return nil, &googleapi.Error{
  4512. Code: res.StatusCode,
  4513. Header: res.Header,
  4514. }
  4515. }
  4516. if err != nil {
  4517. return nil, err
  4518. }
  4519. defer googleapi.CloseBody(res)
  4520. if err := googleapi.CheckResponse(res); err != nil {
  4521. return nil, err
  4522. }
  4523. ret := &CallSet{
  4524. ServerResponse: googleapi.ServerResponse{
  4525. Header: res.Header,
  4526. HTTPStatusCode: res.StatusCode,
  4527. },
  4528. }
  4529. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  4530. return nil, err
  4531. }
  4532. return ret, nil
  4533. // {
  4534. // "description": "Updates a call set.",
  4535. // "httpMethod": "PUT",
  4536. // "id": "genomics.callsets.update",
  4537. // "parameterOrder": [
  4538. // "callSetId"
  4539. // ],
  4540. // "parameters": {
  4541. // "callSetId": {
  4542. // "description": "The ID of the call set to be updated.",
  4543. // "location": "path",
  4544. // "required": true,
  4545. // "type": "string"
  4546. // }
  4547. // },
  4548. // "path": "callsets/{callSetId}",
  4549. // "request": {
  4550. // "$ref": "CallSet"
  4551. // },
  4552. // "response": {
  4553. // "$ref": "CallSet"
  4554. // },
  4555. // "scopes": [
  4556. // "https://www.googleapis.com/auth/cloud-platform",
  4557. // "https://www.googleapis.com/auth/genomics"
  4558. // ]
  4559. // }
  4560. }
  4561. // method id "genomics.datasets.create":
  4562. type DatasetsCreateCall struct {
  4563. s *Service
  4564. dataset *Dataset
  4565. urlParams_ gensupport.URLParams
  4566. ctx_ context.Context
  4567. }
  4568. // Create: Creates a new dataset.
  4569. func (r *DatasetsService) Create(dataset *Dataset) *DatasetsCreateCall {
  4570. c := &DatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4571. c.dataset = dataset
  4572. return c
  4573. }
  4574. // Fields allows partial responses to be retrieved. See
  4575. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4576. // for more information.
  4577. func (c *DatasetsCreateCall) Fields(s ...googleapi.Field) *DatasetsCreateCall {
  4578. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4579. return c
  4580. }
  4581. // Context sets the context to be used in this call's Do method. Any
  4582. // pending HTTP request will be aborted if the provided context is
  4583. // canceled.
  4584. func (c *DatasetsCreateCall) Context(ctx context.Context) *DatasetsCreateCall {
  4585. c.ctx_ = ctx
  4586. return c
  4587. }
  4588. func (c *DatasetsCreateCall) doRequest(alt string) (*http.Response, error) {
  4589. var body io.Reader = nil
  4590. body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset)
  4591. if err != nil {
  4592. return nil, err
  4593. }
  4594. ctype := "application/json"
  4595. c.urlParams_.Set("alt", alt)
  4596. urls := googleapi.ResolveRelative(c.s.BasePath, "datasets")
  4597. urls += "?" + c.urlParams_.Encode()
  4598. req, _ := http.NewRequest("POST", urls, body)
  4599. googleapi.SetOpaque(req.URL)
  4600. req.Header.Set("Content-Type", ctype)
  4601. req.Header.Set("User-Agent", c.s.userAgent())
  4602. if c.ctx_ != nil {
  4603. return ctxhttp.Do(c.ctx_, c.s.client, req)
  4604. }
  4605. return c.s.client.Do(req)
  4606. }
  4607. // Do executes the "genomics.datasets.create" call.
  4608. // Exactly one of *Dataset or error will be non-nil. Any non-2xx status
  4609. // code is an error. Response headers are in either
  4610. // *Dataset.ServerResponse.Header or (if a response was returned at all)
  4611. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  4612. // check whether the returned error was because http.StatusNotModified
  4613. // was returned.
  4614. func (c *DatasetsCreateCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
  4615. gensupport.SetOptions(c.urlParams_, opts...)
  4616. res, err := c.doRequest("json")
  4617. if res != nil && res.StatusCode == http.StatusNotModified {
  4618. if res.Body != nil {
  4619. res.Body.Close()
  4620. }
  4621. return nil, &googleapi.Error{
  4622. Code: res.StatusCode,
  4623. Header: res.Header,
  4624. }
  4625. }
  4626. if err != nil {
  4627. return nil, err
  4628. }
  4629. defer googleapi.CloseBody(res)
  4630. if err := googleapi.CheckResponse(res); err != nil {
  4631. return nil, err
  4632. }
  4633. ret := &Dataset{
  4634. ServerResponse: googleapi.ServerResponse{
  4635. Header: res.Header,
  4636. HTTPStatusCode: res.StatusCode,
  4637. },
  4638. }
  4639. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  4640. return nil, err
  4641. }
  4642. return ret, nil
  4643. // {
  4644. // "description": "Creates a new dataset.",
  4645. // "httpMethod": "POST",
  4646. // "id": "genomics.datasets.create",
  4647. // "path": "datasets",
  4648. // "request": {
  4649. // "$ref": "Dataset"
  4650. // },
  4651. // "response": {
  4652. // "$ref": "Dataset"
  4653. // },
  4654. // "scopes": [
  4655. // "https://www.googleapis.com/auth/cloud-platform",
  4656. // "https://www.googleapis.com/auth/genomics"
  4657. // ]
  4658. // }
  4659. }
  4660. // method id "genomics.datasets.delete":
  4661. type DatasetsDeleteCall struct {
  4662. s *Service
  4663. datasetId string
  4664. urlParams_ gensupport.URLParams
  4665. ctx_ context.Context
  4666. }
  4667. // Delete: Deletes a dataset.
  4668. func (r *DatasetsService) Delete(datasetId string) *DatasetsDeleteCall {
  4669. c := &DatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4670. c.datasetId = datasetId
  4671. return c
  4672. }
  4673. // Fields allows partial responses to be retrieved. See
  4674. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4675. // for more information.
  4676. func (c *DatasetsDeleteCall) Fields(s ...googleapi.Field) *DatasetsDeleteCall {
  4677. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4678. return c
  4679. }
  4680. // Context sets the context to be used in this call's Do method. Any
  4681. // pending HTTP request will be aborted if the provided context is
  4682. // canceled.
  4683. func (c *DatasetsDeleteCall) Context(ctx context.Context) *DatasetsDeleteCall {
  4684. c.ctx_ = ctx
  4685. return c
  4686. }
  4687. func (c *DatasetsDeleteCall) doRequest(alt string) (*http.Response, error) {
  4688. var body io.Reader = nil
  4689. c.urlParams_.Set("alt", alt)
  4690. urls := googleapi.ResolveRelative(c.s.BasePath, "datasets/{datasetId}")
  4691. urls += "?" + c.urlParams_.Encode()
  4692. req, _ := http.NewRequest("DELETE", urls, body)
  4693. googleapi.Expand(req.URL, map[string]string{
  4694. "datasetId": c.datasetId,
  4695. })
  4696. req.Header.Set("User-Agent", c.s.userAgent())
  4697. if c.ctx_ != nil {
  4698. return ctxhttp.Do(c.ctx_, c.s.client, req)
  4699. }
  4700. return c.s.client.Do(req)
  4701. }
  4702. // Do executes the "genomics.datasets.delete" call.
  4703. func (c *DatasetsDeleteCall) Do(opts ...googleapi.CallOption) error {
  4704. gensupport.SetOptions(c.urlParams_, opts...)
  4705. res, err := c.doRequest("json")
  4706. if err != nil {
  4707. return err
  4708. }
  4709. defer googleapi.CloseBody(res)
  4710. if err := googleapi.CheckResponse(res); err != nil {
  4711. return err
  4712. }
  4713. return nil
  4714. // {
  4715. // "description": "Deletes a dataset.",
  4716. // "httpMethod": "DELETE",
  4717. // "id": "genomics.datasets.delete",
  4718. // "parameterOrder": [
  4719. // "datasetId"
  4720. // ],
  4721. // "parameters": {
  4722. // "datasetId": {
  4723. // "description": "The ID of the dataset to be deleted.",
  4724. // "location": "path",
  4725. // "required": true,
  4726. // "type": "string"
  4727. // }
  4728. // },
  4729. // "path": "datasets/{datasetId}",
  4730. // "scopes": [
  4731. // "https://www.googleapis.com/auth/cloud-platform",
  4732. // "https://www.googleapis.com/auth/genomics"
  4733. // ]
  4734. // }
  4735. }
  4736. // method id "genomics.datasets.get":
  4737. type DatasetsGetCall struct {
  4738. s *Service
  4739. datasetId string
  4740. urlParams_ gensupport.URLParams
  4741. ifNoneMatch_ string
  4742. ctx_ context.Context
  4743. }
  4744. // Get: Gets a dataset by ID.
  4745. func (r *DatasetsService) Get(datasetId string) *DatasetsGetCall {
  4746. c := &DatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4747. c.datasetId = datasetId
  4748. return c
  4749. }
  4750. // Fields allows partial responses to be retrieved. See
  4751. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4752. // for more information.
  4753. func (c *DatasetsGetCall) Fields(s ...googleapi.Field) *DatasetsGetCall {
  4754. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4755. return c
  4756. }
  4757. // IfNoneMatch sets the optional parameter which makes the operation
  4758. // fail if the object's ETag matches the given value. This is useful for
  4759. // getting updates only after the object has changed since the last
  4760. // request. Use googleapi.IsNotModified to check whether the response
  4761. // error from Do is the result of In-None-Match.
  4762. func (c *DatasetsGetCall) IfNoneMatch(entityTag string) *DatasetsGetCall {
  4763. c.ifNoneMatch_ = entityTag
  4764. return c
  4765. }
  4766. // Context sets the context to be used in this call's Do method. Any
  4767. // pending HTTP request will be aborted if the provided context is
  4768. // canceled.
  4769. func (c *DatasetsGetCall) Context(ctx context.Context) *DatasetsGetCall {
  4770. c.ctx_ = ctx
  4771. return c
  4772. }
  4773. func (c *DatasetsGetCall) doRequest(alt string) (*http.Response, error) {
  4774. var body io.Reader = nil
  4775. c.urlParams_.Set("alt", alt)
  4776. urls := googleapi.ResolveRelative(c.s.BasePath, "datasets/{datasetId}")
  4777. urls += "?" + c.urlParams_.Encode()
  4778. req, _ := http.NewRequest("GET", urls, body)
  4779. googleapi.Expand(req.URL, map[string]string{
  4780. "datasetId": c.datasetId,
  4781. })
  4782. req.Header.Set("User-Agent", c.s.userAgent())
  4783. if c.ifNoneMatch_ != "" {
  4784. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  4785. }
  4786. if c.ctx_ != nil {
  4787. return ctxhttp.Do(c.ctx_, c.s.client, req)
  4788. }
  4789. return c.s.client.Do(req)
  4790. }
  4791. // Do executes the "genomics.datasets.get" call.
  4792. // Exactly one of *Dataset or error will be non-nil. Any non-2xx status
  4793. // code is an error. Response headers are in either
  4794. // *Dataset.ServerResponse.Header or (if a response was returned at all)
  4795. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  4796. // check whether the returned error was because http.StatusNotModified
  4797. // was returned.
  4798. func (c *DatasetsGetCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
  4799. gensupport.SetOptions(c.urlParams_, opts...)
  4800. res, err := c.doRequest("json")
  4801. if res != nil && res.StatusCode == http.StatusNotModified {
  4802. if res.Body != nil {
  4803. res.Body.Close()
  4804. }
  4805. return nil, &googleapi.Error{
  4806. Code: res.StatusCode,
  4807. Header: res.Header,
  4808. }
  4809. }
  4810. if err != nil {
  4811. return nil, err
  4812. }
  4813. defer googleapi.CloseBody(res)
  4814. if err := googleapi.CheckResponse(res); err != nil {
  4815. return nil, err
  4816. }
  4817. ret := &Dataset{
  4818. ServerResponse: googleapi.ServerResponse{
  4819. Header: res.Header,
  4820. HTTPStatusCode: res.StatusCode,
  4821. },
  4822. }
  4823. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  4824. return nil, err
  4825. }
  4826. return ret, nil
  4827. // {
  4828. // "description": "Gets a dataset by ID.",
  4829. // "httpMethod": "GET",
  4830. // "id": "genomics.datasets.get",
  4831. // "parameterOrder": [
  4832. // "datasetId"
  4833. // ],
  4834. // "parameters": {
  4835. // "datasetId": {
  4836. // "description": "The ID of the dataset.",
  4837. // "location": "path",
  4838. // "required": true,
  4839. // "type": "string"
  4840. // }
  4841. // },
  4842. // "path": "datasets/{datasetId}",
  4843. // "response": {
  4844. // "$ref": "Dataset"
  4845. // },
  4846. // "scopes": [
  4847. // "https://www.googleapis.com/auth/cloud-platform",
  4848. // "https://www.googleapis.com/auth/genomics",
  4849. // "https://www.googleapis.com/auth/genomics.readonly"
  4850. // ]
  4851. // }
  4852. }
  4853. // method id "genomics.datasets.list":
  4854. type DatasetsListCall struct {
  4855. s *Service
  4856. urlParams_ gensupport.URLParams
  4857. ifNoneMatch_ string
  4858. ctx_ context.Context
  4859. }
  4860. // List: Lists datasets within a project.
  4861. func (r *DatasetsService) List() *DatasetsListCall {
  4862. c := &DatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4863. return c
  4864. }
  4865. // PageSize sets the optional parameter "pageSize": The maximum number
  4866. // of results to return in a single page. If unspecified, defaults to
  4867. // 50. The maximum value is 1024.
  4868. func (c *DatasetsListCall) PageSize(pageSize int64) *DatasetsListCall {
  4869. c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  4870. return c
  4871. }
  4872. // PageToken sets the optional parameter "pageToken": The continuation
  4873. // token, which is used to page through large result sets. To get the
  4874. // next page of results, set this parameter to the value of
  4875. // nextPageToken from the previous response.
  4876. func (c *DatasetsListCall) PageToken(pageToken string) *DatasetsListCall {
  4877. c.urlParams_.Set("pageToken", pageToken)
  4878. return c
  4879. }
  4880. // ProjectNumber sets the optional parameter "projectNumber": Required.
  4881. // The project to list datasets for.
  4882. func (c *DatasetsListCall) ProjectNumber(projectNumber int64) *DatasetsListCall {
  4883. c.urlParams_.Set("projectNumber", fmt.Sprint(projectNumber))
  4884. return c
  4885. }
  4886. // Fields allows partial responses to be retrieved. See
  4887. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4888. // for more information.
  4889. func (c *DatasetsListCall) Fields(s ...googleapi.Field) *DatasetsListCall {
  4890. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4891. return c
  4892. }
  4893. // IfNoneMatch sets the optional parameter which makes the operation
  4894. // fail if the object's ETag matches the given value. This is useful for
  4895. // getting updates only after the object has changed since the last
  4896. // request. Use googleapi.IsNotModified to check whether the response
  4897. // error from Do is the result of In-None-Match.
  4898. func (c *DatasetsListCall) IfNoneMatch(entityTag string) *DatasetsListCall {
  4899. c.ifNoneMatch_ = entityTag
  4900. return c
  4901. }
  4902. // Context sets the context to be used in this call's Do method. Any
  4903. // pending HTTP request will be aborted if the provided context is
  4904. // canceled.
  4905. func (c *DatasetsListCall) Context(ctx context.Context) *DatasetsListCall {
  4906. c.ctx_ = ctx
  4907. return c
  4908. }
  4909. func (c *DatasetsListCall) doRequest(alt string) (*http.Response, error) {
  4910. var body io.Reader = nil
  4911. c.urlParams_.Set("alt", alt)
  4912. urls := googleapi.ResolveRelative(c.s.BasePath, "datasets")
  4913. urls += "?" + c.urlParams_.Encode()
  4914. req, _ := http.NewRequest("GET", urls, body)
  4915. googleapi.SetOpaque(req.URL)
  4916. req.Header.Set("User-Agent", c.s.userAgent())
  4917. if c.ifNoneMatch_ != "" {
  4918. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  4919. }
  4920. if c.ctx_ != nil {
  4921. return ctxhttp.Do(c.ctx_, c.s.client, req)
  4922. }
  4923. return c.s.client.Do(req)
  4924. }
  4925. // Do executes the "genomics.datasets.list" call.
  4926. // Exactly one of *ListDatasetsResponse or error will be non-nil. Any
  4927. // non-2xx status code is an error. Response headers are in either
  4928. // *ListDatasetsResponse.ServerResponse.Header or (if a response was
  4929. // returned at all) in error.(*googleapi.Error).Header. Use
  4930. // googleapi.IsNotModified to check whether the returned error was
  4931. // because http.StatusNotModified was returned.
  4932. func (c *DatasetsListCall) Do(opts ...googleapi.CallOption) (*ListDatasetsResponse, error) {
  4933. gensupport.SetOptions(c.urlParams_, opts...)
  4934. res, err := c.doRequest("json")
  4935. if res != nil && res.StatusCode == http.StatusNotModified {
  4936. if res.Body != nil {
  4937. res.Body.Close()
  4938. }
  4939. return nil, &googleapi.Error{
  4940. Code: res.StatusCode,
  4941. Header: res.Header,
  4942. }
  4943. }
  4944. if err != nil {
  4945. return nil, err
  4946. }
  4947. defer googleapi.CloseBody(res)
  4948. if err := googleapi.CheckResponse(res); err != nil {
  4949. return nil, err
  4950. }
  4951. ret := &ListDatasetsResponse{
  4952. ServerResponse: googleapi.ServerResponse{
  4953. Header: res.Header,
  4954. HTTPStatusCode: res.StatusCode,
  4955. },
  4956. }
  4957. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  4958. return nil, err
  4959. }
  4960. return ret, nil
  4961. // {
  4962. // "description": "Lists datasets within a project.",
  4963. // "httpMethod": "GET",
  4964. // "id": "genomics.datasets.list",
  4965. // "parameters": {
  4966. // "pageSize": {
  4967. // "description": "The maximum number of results to return in a single page. If unspecified, defaults to 50. The maximum value is 1024.",
  4968. // "format": "int32",
  4969. // "location": "query",
  4970. // "type": "integer"
  4971. // },
  4972. // "pageToken": {
  4973. // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.",
  4974. // "location": "query",
  4975. // "type": "string"
  4976. // },
  4977. // "projectNumber": {
  4978. // "description": "Required. The project to list datasets for.",
  4979. // "format": "int64",
  4980. // "location": "query",
  4981. // "type": "string"
  4982. // }
  4983. // },
  4984. // "path": "datasets",
  4985. // "response": {
  4986. // "$ref": "ListDatasetsResponse"
  4987. // },
  4988. // "scopes": [
  4989. // "https://www.googleapis.com/auth/cloud-platform",
  4990. // "https://www.googleapis.com/auth/genomics",
  4991. // "https://www.googleapis.com/auth/genomics.readonly"
  4992. // ]
  4993. // }
  4994. }
  4995. // Pages invokes f for each page of results.
  4996. // A non-nil error returned from f will halt the iteration.
  4997. // The provided context supersedes any context provided to the Context method.
  4998. func (c *DatasetsListCall) Pages(ctx context.Context, f func(*ListDatasetsResponse) error) error {
  4999. c.ctx_ = ctx
  5000. defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  5001. for {
  5002. x, err := c.Do()
  5003. if err != nil {
  5004. return err
  5005. }
  5006. if err := f(x); err != nil {
  5007. return err
  5008. }
  5009. if x.NextPageToken == "" {
  5010. return nil
  5011. }
  5012. c.PageToken(x.NextPageToken)
  5013. }
  5014. }
  5015. // method id "genomics.datasets.patch":
  5016. type DatasetsPatchCall struct {
  5017. s *Service
  5018. datasetId string
  5019. dataset *Dataset
  5020. urlParams_ gensupport.URLParams
  5021. ctx_ context.Context
  5022. }
  5023. // Patch: Updates a dataset. This method supports patch semantics.
  5024. func (r *DatasetsService) Patch(datasetId string, dataset *Dataset) *DatasetsPatchCall {
  5025. c := &DatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5026. c.datasetId = datasetId
  5027. c.dataset = dataset
  5028. return c
  5029. }
  5030. // Fields allows partial responses to be retrieved. See
  5031. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5032. // for more information.
  5033. func (c *DatasetsPatchCall) Fields(s ...googleapi.Field) *DatasetsPatchCall {
  5034. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5035. return c
  5036. }
  5037. // Context sets the context to be used in this call's Do method. Any
  5038. // pending HTTP request will be aborted if the provided context is
  5039. // canceled.
  5040. func (c *DatasetsPatchCall) Context(ctx context.Context) *DatasetsPatchCall {
  5041. c.ctx_ = ctx
  5042. return c
  5043. }
  5044. func (c *DatasetsPatchCall) doRequest(alt string) (*http.Response, error) {
  5045. var body io.Reader = nil
  5046. body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset)
  5047. if err != nil {
  5048. return nil, err
  5049. }
  5050. ctype := "application/json"
  5051. c.urlParams_.Set("alt", alt)
  5052. urls := googleapi.ResolveRelative(c.s.BasePath, "datasets/{datasetId}")
  5053. urls += "?" + c.urlParams_.Encode()
  5054. req, _ := http.NewRequest("PATCH", urls, body)
  5055. googleapi.Expand(req.URL, map[string]string{
  5056. "datasetId": c.datasetId,
  5057. })
  5058. req.Header.Set("Content-Type", ctype)
  5059. req.Header.Set("User-Agent", c.s.userAgent())
  5060. if c.ctx_ != nil {
  5061. return ctxhttp.Do(c.ctx_, c.s.client, req)
  5062. }
  5063. return c.s.client.Do(req)
  5064. }
  5065. // Do executes the "genomics.datasets.patch" call.
  5066. // Exactly one of *Dataset or error will be non-nil. Any non-2xx status
  5067. // code is an error. Response headers are in either
  5068. // *Dataset.ServerResponse.Header or (if a response was returned at all)
  5069. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5070. // check whether the returned error was because http.StatusNotModified
  5071. // was returned.
  5072. func (c *DatasetsPatchCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
  5073. gensupport.SetOptions(c.urlParams_, opts...)
  5074. res, err := c.doRequest("json")
  5075. if res != nil && res.StatusCode == http.StatusNotModified {
  5076. if res.Body != nil {
  5077. res.Body.Close()
  5078. }
  5079. return nil, &googleapi.Error{
  5080. Code: res.StatusCode,
  5081. Header: res.Header,
  5082. }
  5083. }
  5084. if err != nil {
  5085. return nil, err
  5086. }
  5087. defer googleapi.CloseBody(res)
  5088. if err := googleapi.CheckResponse(res); err != nil {
  5089. return nil, err
  5090. }
  5091. ret := &Dataset{
  5092. ServerResponse: googleapi.ServerResponse{
  5093. Header: res.Header,
  5094. HTTPStatusCode: res.StatusCode,
  5095. },
  5096. }
  5097. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  5098. return nil, err
  5099. }
  5100. return ret, nil
  5101. // {
  5102. // "description": "Updates a dataset. This method supports patch semantics.",
  5103. // "httpMethod": "PATCH",
  5104. // "id": "genomics.datasets.patch",
  5105. // "parameterOrder": [
  5106. // "datasetId"
  5107. // ],
  5108. // "parameters": {
  5109. // "datasetId": {
  5110. // "description": "The ID of the dataset to be updated.",
  5111. // "location": "path",
  5112. // "required": true,
  5113. // "type": "string"
  5114. // }
  5115. // },
  5116. // "path": "datasets/{datasetId}",
  5117. // "request": {
  5118. // "$ref": "Dataset"
  5119. // },
  5120. // "response": {
  5121. // "$ref": "Dataset"
  5122. // },
  5123. // "scopes": [
  5124. // "https://www.googleapis.com/auth/cloud-platform",
  5125. // "https://www.googleapis.com/auth/genomics"
  5126. // ]
  5127. // }
  5128. }
  5129. // method id "genomics.datasets.undelete":
  5130. type DatasetsUndeleteCall struct {
  5131. s *Service
  5132. datasetId string
  5133. urlParams_ gensupport.URLParams
  5134. ctx_ context.Context
  5135. }
  5136. // Undelete: Undeletes a dataset by restoring a dataset which was
  5137. // deleted via this API. This operation is only possible for a week
  5138. // after the deletion occurred.
  5139. func (r *DatasetsService) Undelete(datasetId string) *DatasetsUndeleteCall {
  5140. c := &DatasetsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5141. c.datasetId = datasetId
  5142. return c
  5143. }
  5144. // Fields allows partial responses to be retrieved. See
  5145. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5146. // for more information.
  5147. func (c *DatasetsUndeleteCall) Fields(s ...googleapi.Field) *DatasetsUndeleteCall {
  5148. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5149. return c
  5150. }
  5151. // Context sets the context to be used in this call's Do method. Any
  5152. // pending HTTP request will be aborted if the provided context is
  5153. // canceled.
  5154. func (c *DatasetsUndeleteCall) Context(ctx context.Context) *DatasetsUndeleteCall {
  5155. c.ctx_ = ctx
  5156. return c
  5157. }
  5158. func (c *DatasetsUndeleteCall) doRequest(alt string) (*http.Response, error) {
  5159. var body io.Reader = nil
  5160. c.urlParams_.Set("alt", alt)
  5161. urls := googleapi.ResolveRelative(c.s.BasePath, "datasets/{datasetId}/undelete")
  5162. urls += "?" + c.urlParams_.Encode()
  5163. req, _ := http.NewRequest("POST", urls, body)
  5164. googleapi.Expand(req.URL, map[string]string{
  5165. "datasetId": c.datasetId,
  5166. })
  5167. req.Header.Set("User-Agent", c.s.userAgent())
  5168. if c.ctx_ != nil {
  5169. return ctxhttp.Do(c.ctx_, c.s.client, req)
  5170. }
  5171. return c.s.client.Do(req)
  5172. }
  5173. // Do executes the "genomics.datasets.undelete" call.
  5174. // Exactly one of *Dataset or error will be non-nil. Any non-2xx status
  5175. // code is an error. Response headers are in either
  5176. // *Dataset.ServerResponse.Header or (if a response was returned at all)
  5177. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5178. // check whether the returned error was because http.StatusNotModified
  5179. // was returned.
  5180. func (c *DatasetsUndeleteCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
  5181. gensupport.SetOptions(c.urlParams_, opts...)
  5182. res, err := c.doRequest("json")
  5183. if res != nil && res.StatusCode == http.StatusNotModified {
  5184. if res.Body != nil {
  5185. res.Body.Close()
  5186. }
  5187. return nil, &googleapi.Error{
  5188. Code: res.StatusCode,
  5189. Header: res.Header,
  5190. }
  5191. }
  5192. if err != nil {
  5193. return nil, err
  5194. }
  5195. defer googleapi.CloseBody(res)
  5196. if err := googleapi.CheckResponse(res); err != nil {
  5197. return nil, err
  5198. }
  5199. ret := &Dataset{
  5200. ServerResponse: googleapi.ServerResponse{
  5201. Header: res.Header,
  5202. HTTPStatusCode: res.StatusCode,
  5203. },
  5204. }
  5205. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  5206. return nil, err
  5207. }
  5208. return ret, nil
  5209. // {
  5210. // "description": "Undeletes a dataset by restoring a dataset which was deleted via this API. This operation is only possible for a week after the deletion occurred.",
  5211. // "httpMethod": "POST",
  5212. // "id": "genomics.datasets.undelete",
  5213. // "parameterOrder": [
  5214. // "datasetId"
  5215. // ],
  5216. // "parameters": {
  5217. // "datasetId": {
  5218. // "description": "The ID of the dataset to be undeleted.",
  5219. // "location": "path",
  5220. // "required": true,
  5221. // "type": "string"
  5222. // }
  5223. // },
  5224. // "path": "datasets/{datasetId}/undelete",
  5225. // "response": {
  5226. // "$ref": "Dataset"
  5227. // },
  5228. // "scopes": [
  5229. // "https://www.googleapis.com/auth/cloud-platform",
  5230. // "https://www.googleapis.com/auth/genomics"
  5231. // ]
  5232. // }
  5233. }
  5234. // method id "genomics.datasets.update":
  5235. type DatasetsUpdateCall struct {
  5236. s *Service
  5237. datasetId string
  5238. dataset *Dataset
  5239. urlParams_ gensupport.URLParams
  5240. ctx_ context.Context
  5241. }
  5242. // Update: Updates a dataset.
  5243. func (r *DatasetsService) Update(datasetId string, dataset *Dataset) *DatasetsUpdateCall {
  5244. c := &DatasetsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5245. c.datasetId = datasetId
  5246. c.dataset = dataset
  5247. return c
  5248. }
  5249. // Fields allows partial responses to be retrieved. See
  5250. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5251. // for more information.
  5252. func (c *DatasetsUpdateCall) Fields(s ...googleapi.Field) *DatasetsUpdateCall {
  5253. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5254. return c
  5255. }
  5256. // Context sets the context to be used in this call's Do method. Any
  5257. // pending HTTP request will be aborted if the provided context is
  5258. // canceled.
  5259. func (c *DatasetsUpdateCall) Context(ctx context.Context) *DatasetsUpdateCall {
  5260. c.ctx_ = ctx
  5261. return c
  5262. }
  5263. func (c *DatasetsUpdateCall) doRequest(alt string) (*http.Response, error) {
  5264. var body io.Reader = nil
  5265. body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset)
  5266. if err != nil {
  5267. return nil, err
  5268. }
  5269. ctype := "application/json"
  5270. c.urlParams_.Set("alt", alt)
  5271. urls := googleapi.ResolveRelative(c.s.BasePath, "datasets/{datasetId}")
  5272. urls += "?" + c.urlParams_.Encode()
  5273. req, _ := http.NewRequest("PUT", urls, body)
  5274. googleapi.Expand(req.URL, map[string]string{
  5275. "datasetId": c.datasetId,
  5276. })
  5277. req.Header.Set("Content-Type", ctype)
  5278. req.Header.Set("User-Agent", c.s.userAgent())
  5279. if c.ctx_ != nil {
  5280. return ctxhttp.Do(c.ctx_, c.s.client, req)
  5281. }
  5282. return c.s.client.Do(req)
  5283. }
  5284. // Do executes the "genomics.datasets.update" call.
  5285. // Exactly one of *Dataset or error will be non-nil. Any non-2xx status
  5286. // code is an error. Response headers are in either
  5287. // *Dataset.ServerResponse.Header or (if a response was returned at all)
  5288. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5289. // check whether the returned error was because http.StatusNotModified
  5290. // was returned.
  5291. func (c *DatasetsUpdateCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
  5292. gensupport.SetOptions(c.urlParams_, opts...)
  5293. res, err := c.doRequest("json")
  5294. if res != nil && res.StatusCode == http.StatusNotModified {
  5295. if res.Body != nil {
  5296. res.Body.Close()
  5297. }
  5298. return nil, &googleapi.Error{
  5299. Code: res.StatusCode,
  5300. Header: res.Header,
  5301. }
  5302. }
  5303. if err != nil {
  5304. return nil, err
  5305. }
  5306. defer googleapi.CloseBody(res)
  5307. if err := googleapi.CheckResponse(res); err != nil {
  5308. return nil, err
  5309. }
  5310. ret := &Dataset{
  5311. ServerResponse: googleapi.ServerResponse{
  5312. Header: res.Header,
  5313. HTTPStatusCode: res.StatusCode,
  5314. },
  5315. }
  5316. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  5317. return nil, err
  5318. }
  5319. return ret, nil
  5320. // {
  5321. // "description": "Updates a dataset.",
  5322. // "httpMethod": "PUT",
  5323. // "id": "genomics.datasets.update",
  5324. // "parameterOrder": [
  5325. // "datasetId"
  5326. // ],
  5327. // "parameters": {
  5328. // "datasetId": {
  5329. // "description": "The ID of the dataset to be updated.",
  5330. // "location": "path",
  5331. // "required": true,
  5332. // "type": "string"
  5333. // }
  5334. // },
  5335. // "path": "datasets/{datasetId}",
  5336. // "request": {
  5337. // "$ref": "Dataset"
  5338. // },
  5339. // "response": {
  5340. // "$ref": "Dataset"
  5341. // },
  5342. // "scopes": [
  5343. // "https://www.googleapis.com/auth/cloud-platform",
  5344. // "https://www.googleapis.com/auth/genomics"
  5345. // ]
  5346. // }
  5347. }
  5348. // method id "genomics.experimental.jobs.create":
  5349. type ExperimentalJobsCreateCall struct {
  5350. s *Service
  5351. experimentalcreatejobrequest *ExperimentalCreateJobRequest
  5352. urlParams_ gensupport.URLParams
  5353. ctx_ context.Context
  5354. }
  5355. // Create: Creates and asynchronously runs an ad-hoc job. This is an
  5356. // experimental call and may be removed or changed at any time.
  5357. func (r *ExperimentalJobsService) Create(experimentalcreatejobrequest *ExperimentalCreateJobRequest) *ExperimentalJobsCreateCall {
  5358. c := &ExperimentalJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5359. c.experimentalcreatejobrequest = experimentalcreatejobrequest
  5360. return c
  5361. }
  5362. // Fields allows partial responses to be retrieved. See
  5363. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5364. // for more information.
  5365. func (c *ExperimentalJobsCreateCall) Fields(s ...googleapi.Field) *ExperimentalJobsCreateCall {
  5366. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5367. return c
  5368. }
  5369. // Context sets the context to be used in this call's Do method. Any
  5370. // pending HTTP request will be aborted if the provided context is
  5371. // canceled.
  5372. func (c *ExperimentalJobsCreateCall) Context(ctx context.Context) *ExperimentalJobsCreateCall {
  5373. c.ctx_ = ctx
  5374. return c
  5375. }
  5376. func (c *ExperimentalJobsCreateCall) doRequest(alt string) (*http.Response, error) {
  5377. var body io.Reader = nil
  5378. body, err := googleapi.WithoutDataWrapper.JSONReader(c.experimentalcreatejobrequest)
  5379. if err != nil {
  5380. return nil, err
  5381. }
  5382. ctype := "application/json"
  5383. c.urlParams_.Set("alt", alt)
  5384. urls := googleapi.ResolveRelative(c.s.BasePath, "experimental/jobs/create")
  5385. urls += "?" + c.urlParams_.Encode()
  5386. req, _ := http.NewRequest("POST", urls, body)
  5387. googleapi.SetOpaque(req.URL)
  5388. req.Header.Set("Content-Type", ctype)
  5389. req.Header.Set("User-Agent", c.s.userAgent())
  5390. if c.ctx_ != nil {
  5391. return ctxhttp.Do(c.ctx_, c.s.client, req)
  5392. }
  5393. return c.s.client.Do(req)
  5394. }
  5395. // Do executes the "genomics.experimental.jobs.create" call.
  5396. // Exactly one of *ExperimentalCreateJobResponse or error will be
  5397. // non-nil. Any non-2xx status code is an error. Response headers are in
  5398. // either *ExperimentalCreateJobResponse.ServerResponse.Header or (if a
  5399. // response was returned at all) in error.(*googleapi.Error).Header. Use
  5400. // googleapi.IsNotModified to check whether the returned error was
  5401. // because http.StatusNotModified was returned.
  5402. func (c *ExperimentalJobsCreateCall) Do(opts ...googleapi.CallOption) (*ExperimentalCreateJobResponse, error) {
  5403. gensupport.SetOptions(c.urlParams_, opts...)
  5404. res, err := c.doRequest("json")
  5405. if res != nil && res.StatusCode == http.StatusNotModified {
  5406. if res.Body != nil {
  5407. res.Body.Close()
  5408. }
  5409. return nil, &googleapi.Error{
  5410. Code: res.StatusCode,
  5411. Header: res.Header,
  5412. }
  5413. }
  5414. if err != nil {
  5415. return nil, err
  5416. }
  5417. defer googleapi.CloseBody(res)
  5418. if err := googleapi.CheckResponse(res); err != nil {
  5419. return nil, err
  5420. }
  5421. ret := &ExperimentalCreateJobResponse{
  5422. ServerResponse: googleapi.ServerResponse{
  5423. Header: res.Header,
  5424. HTTPStatusCode: res.StatusCode,
  5425. },
  5426. }
  5427. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  5428. return nil, err
  5429. }
  5430. return ret, nil
  5431. // {
  5432. // "description": "Creates and asynchronously runs an ad-hoc job. This is an experimental call and may be removed or changed at any time.",
  5433. // "httpMethod": "POST",
  5434. // "id": "genomics.experimental.jobs.create",
  5435. // "path": "experimental/jobs/create",
  5436. // "request": {
  5437. // "$ref": "ExperimentalCreateJobRequest"
  5438. // },
  5439. // "response": {
  5440. // "$ref": "ExperimentalCreateJobResponse"
  5441. // },
  5442. // "scopes": [
  5443. // "https://www.googleapis.com/auth/cloud-platform",
  5444. // "https://www.googleapis.com/auth/devstorage.read_write",
  5445. // "https://www.googleapis.com/auth/genomics"
  5446. // ]
  5447. // }
  5448. }
  5449. // method id "genomics.jobs.cancel":
  5450. type JobsCancelCall struct {
  5451. s *Service
  5452. jobId string
  5453. urlParams_ gensupport.URLParams
  5454. ctx_ context.Context
  5455. }
  5456. // Cancel: Cancels a job by ID. Note that it is possible for partial
  5457. // results to be generated and stored for cancelled jobs.
  5458. func (r *JobsService) Cancel(jobId string) *JobsCancelCall {
  5459. c := &JobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5460. c.jobId = jobId
  5461. return c
  5462. }
  5463. // Fields allows partial responses to be retrieved. See
  5464. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5465. // for more information.
  5466. func (c *JobsCancelCall) Fields(s ...googleapi.Field) *JobsCancelCall {
  5467. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5468. return c
  5469. }
  5470. // Context sets the context to be used in this call's Do method. Any
  5471. // pending HTTP request will be aborted if the provided context is
  5472. // canceled.
  5473. func (c *JobsCancelCall) Context(ctx context.Context) *JobsCancelCall {
  5474. c.ctx_ = ctx
  5475. return c
  5476. }
  5477. func (c *JobsCancelCall) doRequest(alt string) (*http.Response, error) {
  5478. var body io.Reader = nil
  5479. c.urlParams_.Set("alt", alt)
  5480. urls := googleapi.ResolveRelative(c.s.BasePath, "jobs/{jobId}/cancel")
  5481. urls += "?" + c.urlParams_.Encode()
  5482. req, _ := http.NewRequest("POST", urls, body)
  5483. googleapi.Expand(req.URL, map[string]string{
  5484. "jobId": c.jobId,
  5485. })
  5486. req.Header.Set("User-Agent", c.s.userAgent())
  5487. if c.ctx_ != nil {
  5488. return ctxhttp.Do(c.ctx_, c.s.client, req)
  5489. }
  5490. return c.s.client.Do(req)
  5491. }
  5492. // Do executes the "genomics.jobs.cancel" call.
  5493. func (c *JobsCancelCall) Do(opts ...googleapi.CallOption) error {
  5494. gensupport.SetOptions(c.urlParams_, opts...)
  5495. res, err := c.doRequest("json")
  5496. if err != nil {
  5497. return err
  5498. }
  5499. defer googleapi.CloseBody(res)
  5500. if err := googleapi.CheckResponse(res); err != nil {
  5501. return err
  5502. }
  5503. return nil
  5504. // {
  5505. // "description": "Cancels a job by ID. Note that it is possible for partial results to be generated and stored for cancelled jobs.",
  5506. // "httpMethod": "POST",
  5507. // "id": "genomics.jobs.cancel",
  5508. // "parameterOrder": [
  5509. // "jobId"
  5510. // ],
  5511. // "parameters": {
  5512. // "jobId": {
  5513. // "description": "Required. The ID of the job.",
  5514. // "location": "path",
  5515. // "required": true,
  5516. // "type": "string"
  5517. // }
  5518. // },
  5519. // "path": "jobs/{jobId}/cancel",
  5520. // "scopes": [
  5521. // "https://www.googleapis.com/auth/cloud-platform",
  5522. // "https://www.googleapis.com/auth/genomics"
  5523. // ]
  5524. // }
  5525. }
  5526. // method id "genomics.jobs.get":
  5527. type JobsGetCall struct {
  5528. s *Service
  5529. jobId string
  5530. urlParams_ gensupport.URLParams
  5531. ifNoneMatch_ string
  5532. ctx_ context.Context
  5533. }
  5534. // Get: Gets a job by ID.
  5535. func (r *JobsService) Get(jobId string) *JobsGetCall {
  5536. c := &JobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5537. c.jobId = jobId
  5538. return c
  5539. }
  5540. // Fields allows partial responses to be retrieved. See
  5541. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5542. // for more information.
  5543. func (c *JobsGetCall) Fields(s ...googleapi.Field) *JobsGetCall {
  5544. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5545. return c
  5546. }
  5547. // IfNoneMatch sets the optional parameter which makes the operation
  5548. // fail if the object's ETag matches the given value. This is useful for
  5549. // getting updates only after the object has changed since the last
  5550. // request. Use googleapi.IsNotModified to check whether the response
  5551. // error from Do is the result of In-None-Match.
  5552. func (c *JobsGetCall) IfNoneMatch(entityTag string) *JobsGetCall {
  5553. c.ifNoneMatch_ = entityTag
  5554. return c
  5555. }
  5556. // Context sets the context to be used in this call's Do method. Any
  5557. // pending HTTP request will be aborted if the provided context is
  5558. // canceled.
  5559. func (c *JobsGetCall) Context(ctx context.Context) *JobsGetCall {
  5560. c.ctx_ = ctx
  5561. return c
  5562. }
  5563. func (c *JobsGetCall) doRequest(alt string) (*http.Response, error) {
  5564. var body io.Reader = nil
  5565. c.urlParams_.Set("alt", alt)
  5566. urls := googleapi.ResolveRelative(c.s.BasePath, "jobs/{jobId}")
  5567. urls += "?" + c.urlParams_.Encode()
  5568. req, _ := http.NewRequest("GET", urls, body)
  5569. googleapi.Expand(req.URL, map[string]string{
  5570. "jobId": c.jobId,
  5571. })
  5572. req.Header.Set("User-Agent", c.s.userAgent())
  5573. if c.ifNoneMatch_ != "" {
  5574. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  5575. }
  5576. if c.ctx_ != nil {
  5577. return ctxhttp.Do(c.ctx_, c.s.client, req)
  5578. }
  5579. return c.s.client.Do(req)
  5580. }
  5581. // Do executes the "genomics.jobs.get" call.
  5582. // Exactly one of *Job or error will be non-nil. Any non-2xx status code
  5583. // is an error. Response headers are in either
  5584. // *Job.ServerResponse.Header or (if a response was returned at all) in
  5585. // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5586. // whether the returned error was because http.StatusNotModified was
  5587. // returned.
  5588. func (c *JobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) {
  5589. gensupport.SetOptions(c.urlParams_, opts...)
  5590. res, err := c.doRequest("json")
  5591. if res != nil && res.StatusCode == http.StatusNotModified {
  5592. if res.Body != nil {
  5593. res.Body.Close()
  5594. }
  5595. return nil, &googleapi.Error{
  5596. Code: res.StatusCode,
  5597. Header: res.Header,
  5598. }
  5599. }
  5600. if err != nil {
  5601. return nil, err
  5602. }
  5603. defer googleapi.CloseBody(res)
  5604. if err := googleapi.CheckResponse(res); err != nil {
  5605. return nil, err
  5606. }
  5607. ret := &Job{
  5608. ServerResponse: googleapi.ServerResponse{
  5609. Header: res.Header,
  5610. HTTPStatusCode: res.StatusCode,
  5611. },
  5612. }
  5613. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  5614. return nil, err
  5615. }
  5616. return ret, nil
  5617. // {
  5618. // "description": "Gets a job by ID.",
  5619. // "httpMethod": "GET",
  5620. // "id": "genomics.jobs.get",
  5621. // "parameterOrder": [
  5622. // "jobId"
  5623. // ],
  5624. // "parameters": {
  5625. // "jobId": {
  5626. // "description": "Required. The ID of the job.",
  5627. // "location": "path",
  5628. // "required": true,
  5629. // "type": "string"
  5630. // }
  5631. // },
  5632. // "path": "jobs/{jobId}",
  5633. // "response": {
  5634. // "$ref": "Job"
  5635. // },
  5636. // "scopes": [
  5637. // "https://www.googleapis.com/auth/cloud-platform",
  5638. // "https://www.googleapis.com/auth/genomics",
  5639. // "https://www.googleapis.com/auth/genomics.readonly"
  5640. // ]
  5641. // }
  5642. }
  5643. // method id "genomics.jobs.search":
  5644. type JobsSearchCall struct {
  5645. s *Service
  5646. searchjobsrequest *SearchJobsRequest
  5647. urlParams_ gensupport.URLParams
  5648. ctx_ context.Context
  5649. }
  5650. // Search: Gets a list of jobs matching the criteria.
  5651. func (r *JobsService) Search(searchjobsrequest *SearchJobsRequest) *JobsSearchCall {
  5652. c := &JobsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5653. c.searchjobsrequest = searchjobsrequest
  5654. return c
  5655. }
  5656. // Fields allows partial responses to be retrieved. See
  5657. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5658. // for more information.
  5659. func (c *JobsSearchCall) Fields(s ...googleapi.Field) *JobsSearchCall {
  5660. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5661. return c
  5662. }
  5663. // Context sets the context to be used in this call's Do method. Any
  5664. // pending HTTP request will be aborted if the provided context is
  5665. // canceled.
  5666. func (c *JobsSearchCall) Context(ctx context.Context) *JobsSearchCall {
  5667. c.ctx_ = ctx
  5668. return c
  5669. }
  5670. func (c *JobsSearchCall) doRequest(alt string) (*http.Response, error) {
  5671. var body io.Reader = nil
  5672. body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchjobsrequest)
  5673. if err != nil {
  5674. return nil, err
  5675. }
  5676. ctype := "application/json"
  5677. c.urlParams_.Set("alt", alt)
  5678. urls := googleapi.ResolveRelative(c.s.BasePath, "jobs/search")
  5679. urls += "?" + c.urlParams_.Encode()
  5680. req, _ := http.NewRequest("POST", urls, body)
  5681. googleapi.SetOpaque(req.URL)
  5682. req.Header.Set("Content-Type", ctype)
  5683. req.Header.Set("User-Agent", c.s.userAgent())
  5684. if c.ctx_ != nil {
  5685. return ctxhttp.Do(c.ctx_, c.s.client, req)
  5686. }
  5687. return c.s.client.Do(req)
  5688. }
  5689. // Do executes the "genomics.jobs.search" call.
  5690. // Exactly one of *SearchJobsResponse or error will be non-nil. Any
  5691. // non-2xx status code is an error. Response headers are in either
  5692. // *SearchJobsResponse.ServerResponse.Header or (if a response was
  5693. // returned at all) in error.(*googleapi.Error).Header. Use
  5694. // googleapi.IsNotModified to check whether the returned error was
  5695. // because http.StatusNotModified was returned.
  5696. func (c *JobsSearchCall) Do(opts ...googleapi.CallOption) (*SearchJobsResponse, error) {
  5697. gensupport.SetOptions(c.urlParams_, opts...)
  5698. res, err := c.doRequest("json")
  5699. if res != nil && res.StatusCode == http.StatusNotModified {
  5700. if res.Body != nil {
  5701. res.Body.Close()
  5702. }
  5703. return nil, &googleapi.Error{
  5704. Code: res.StatusCode,
  5705. Header: res.Header,
  5706. }
  5707. }
  5708. if err != nil {
  5709. return nil, err
  5710. }
  5711. defer googleapi.CloseBody(res)
  5712. if err := googleapi.CheckResponse(res); err != nil {
  5713. return nil, err
  5714. }
  5715. ret := &SearchJobsResponse{
  5716. ServerResponse: googleapi.ServerResponse{
  5717. Header: res.Header,
  5718. HTTPStatusCode: res.StatusCode,
  5719. },
  5720. }
  5721. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  5722. return nil, err
  5723. }
  5724. return ret, nil
  5725. // {
  5726. // "description": "Gets a list of jobs matching the criteria.",
  5727. // "httpMethod": "POST",
  5728. // "id": "genomics.jobs.search",
  5729. // "path": "jobs/search",
  5730. // "request": {
  5731. // "$ref": "SearchJobsRequest"
  5732. // },
  5733. // "response": {
  5734. // "$ref": "SearchJobsResponse"
  5735. // },
  5736. // "scopes": [
  5737. // "https://www.googleapis.com/auth/cloud-platform",
  5738. // "https://www.googleapis.com/auth/genomics",
  5739. // "https://www.googleapis.com/auth/genomics.readonly"
  5740. // ]
  5741. // }
  5742. }
  5743. // method id "genomics.readgroupsets.delete":
  5744. type ReadgroupsetsDeleteCall struct {
  5745. s *Service
  5746. readGroupSetId string
  5747. urlParams_ gensupport.URLParams
  5748. ctx_ context.Context
  5749. }
  5750. // Delete: Deletes a read group set.
  5751. func (r *ReadgroupsetsService) Delete(readGroupSetId string) *ReadgroupsetsDeleteCall {
  5752. c := &ReadgroupsetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5753. c.readGroupSetId = readGroupSetId
  5754. return c
  5755. }
  5756. // Fields allows partial responses to be retrieved. See
  5757. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5758. // for more information.
  5759. func (c *ReadgroupsetsDeleteCall) Fields(s ...googleapi.Field) *ReadgroupsetsDeleteCall {
  5760. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5761. return c
  5762. }
  5763. // Context sets the context to be used in this call's Do method. Any
  5764. // pending HTTP request will be aborted if the provided context is
  5765. // canceled.
  5766. func (c *ReadgroupsetsDeleteCall) Context(ctx context.Context) *ReadgroupsetsDeleteCall {
  5767. c.ctx_ = ctx
  5768. return c
  5769. }
  5770. func (c *ReadgroupsetsDeleteCall) doRequest(alt string) (*http.Response, error) {
  5771. var body io.Reader = nil
  5772. c.urlParams_.Set("alt", alt)
  5773. urls := googleapi.ResolveRelative(c.s.BasePath, "readgroupsets/{readGroupSetId}")
  5774. urls += "?" + c.urlParams_.Encode()
  5775. req, _ := http.NewRequest("DELETE", urls, body)
  5776. googleapi.Expand(req.URL, map[string]string{
  5777. "readGroupSetId": c.readGroupSetId,
  5778. })
  5779. req.Header.Set("User-Agent", c.s.userAgent())
  5780. if c.ctx_ != nil {
  5781. return ctxhttp.Do(c.ctx_, c.s.client, req)
  5782. }
  5783. return c.s.client.Do(req)
  5784. }
  5785. // Do executes the "genomics.readgroupsets.delete" call.
  5786. func (c *ReadgroupsetsDeleteCall) Do(opts ...googleapi.CallOption) error {
  5787. gensupport.SetOptions(c.urlParams_, opts...)
  5788. res, err := c.doRequest("json")
  5789. if err != nil {
  5790. return err
  5791. }
  5792. defer googleapi.CloseBody(res)
  5793. if err := googleapi.CheckResponse(res); err != nil {
  5794. return err
  5795. }
  5796. return nil
  5797. // {
  5798. // "description": "Deletes a read group set.",
  5799. // "httpMethod": "DELETE",
  5800. // "id": "genomics.readgroupsets.delete",
  5801. // "parameterOrder": [
  5802. // "readGroupSetId"
  5803. // ],
  5804. // "parameters": {
  5805. // "readGroupSetId": {
  5806. // "description": "The ID of the read group set to be deleted. The caller must have WRITE permissions to the dataset associated with this read group set.",
  5807. // "location": "path",
  5808. // "required": true,
  5809. // "type": "string"
  5810. // }
  5811. // },
  5812. // "path": "readgroupsets/{readGroupSetId}",
  5813. // "scopes": [
  5814. // "https://www.googleapis.com/auth/cloud-platform",
  5815. // "https://www.googleapis.com/auth/genomics"
  5816. // ]
  5817. // }
  5818. }
  5819. // method id "genomics.readgroupsets.export":
  5820. type ReadgroupsetsExportCall struct {
  5821. s *Service
  5822. exportreadgroupsetsrequest *ExportReadGroupSetsRequest
  5823. urlParams_ gensupport.URLParams
  5824. ctx_ context.Context
  5825. }
  5826. // Export: Exports read group sets to a BAM file in Google Cloud
  5827. // Storage.
  5828. //
  5829. // Note that currently there may be some differences between exported
  5830. // BAM files and the original BAM file at the time of import. See
  5831. // ImportReadGroupSets for details.
  5832. func (r *ReadgroupsetsService) Export(exportreadgroupsetsrequest *ExportReadGroupSetsRequest) *ReadgroupsetsExportCall {
  5833. c := &ReadgroupsetsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5834. c.exportreadgroupsetsrequest = exportreadgroupsetsrequest
  5835. return c
  5836. }
  5837. // Fields allows partial responses to be retrieved. See
  5838. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5839. // for more information.
  5840. func (c *ReadgroupsetsExportCall) Fields(s ...googleapi.Field) *ReadgroupsetsExportCall {
  5841. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5842. return c
  5843. }
  5844. // Context sets the context to be used in this call's Do method. Any
  5845. // pending HTTP request will be aborted if the provided context is
  5846. // canceled.
  5847. func (c *ReadgroupsetsExportCall) Context(ctx context.Context) *ReadgroupsetsExportCall {
  5848. c.ctx_ = ctx
  5849. return c
  5850. }
  5851. func (c *ReadgroupsetsExportCall) doRequest(alt string) (*http.Response, error) {
  5852. var body io.Reader = nil
  5853. body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportreadgroupsetsrequest)
  5854. if err != nil {
  5855. return nil, err
  5856. }
  5857. ctype := "application/json"
  5858. c.urlParams_.Set("alt", alt)
  5859. urls := googleapi.ResolveRelative(c.s.BasePath, "readgroupsets/export")
  5860. urls += "?" + c.urlParams_.Encode()
  5861. req, _ := http.NewRequest("POST", urls, body)
  5862. googleapi.SetOpaque(req.URL)
  5863. req.Header.Set("Content-Type", ctype)
  5864. req.Header.Set("User-Agent", c.s.userAgent())
  5865. if c.ctx_ != nil {
  5866. return ctxhttp.Do(c.ctx_, c.s.client, req)
  5867. }
  5868. return c.s.client.Do(req)
  5869. }
  5870. // Do executes the "genomics.readgroupsets.export" call.
  5871. // Exactly one of *ExportReadGroupSetsResponse or error will be non-nil.
  5872. // Any non-2xx status code is an error. Response headers are in either
  5873. // *ExportReadGroupSetsResponse.ServerResponse.Header or (if a response
  5874. // was returned at all) in error.(*googleapi.Error).Header. Use
  5875. // googleapi.IsNotModified to check whether the returned error was
  5876. // because http.StatusNotModified was returned.
  5877. func (c *ReadgroupsetsExportCall) Do(opts ...googleapi.CallOption) (*ExportReadGroupSetsResponse, error) {
  5878. gensupport.SetOptions(c.urlParams_, opts...)
  5879. res, err := c.doRequest("json")
  5880. if res != nil && res.StatusCode == http.StatusNotModified {
  5881. if res.Body != nil {
  5882. res.Body.Close()
  5883. }
  5884. return nil, &googleapi.Error{
  5885. Code: res.StatusCode,
  5886. Header: res.Header,
  5887. }
  5888. }
  5889. if err != nil {
  5890. return nil, err
  5891. }
  5892. defer googleapi.CloseBody(res)
  5893. if err := googleapi.CheckResponse(res); err != nil {
  5894. return nil, err
  5895. }
  5896. ret := &ExportReadGroupSetsResponse{
  5897. ServerResponse: googleapi.ServerResponse{
  5898. Header: res.Header,
  5899. HTTPStatusCode: res.StatusCode,
  5900. },
  5901. }
  5902. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  5903. return nil, err
  5904. }
  5905. return ret, nil
  5906. // {
  5907. // "description": "Exports read group sets to a BAM file in Google Cloud Storage.\n\nNote that currently there may be some differences between exported BAM files and the original BAM file at the time of import. See ImportReadGroupSets for details.",
  5908. // "httpMethod": "POST",
  5909. // "id": "genomics.readgroupsets.export",
  5910. // "path": "readgroupsets/export",
  5911. // "request": {
  5912. // "$ref": "ExportReadGroupSetsRequest"
  5913. // },
  5914. // "response": {
  5915. // "$ref": "ExportReadGroupSetsResponse"
  5916. // },
  5917. // "scopes": [
  5918. // "https://www.googleapis.com/auth/cloud-platform",
  5919. // "https://www.googleapis.com/auth/devstorage.read_write",
  5920. // "https://www.googleapis.com/auth/genomics"
  5921. // ]
  5922. // }
  5923. }
  5924. // method id "genomics.readgroupsets.get":
  5925. type ReadgroupsetsGetCall struct {
  5926. s *Service
  5927. readGroupSetId string
  5928. urlParams_ gensupport.URLParams
  5929. ifNoneMatch_ string
  5930. ctx_ context.Context
  5931. }
  5932. // Get: Gets a read group set by ID.
  5933. func (r *ReadgroupsetsService) Get(readGroupSetId string) *ReadgroupsetsGetCall {
  5934. c := &ReadgroupsetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5935. c.readGroupSetId = readGroupSetId
  5936. return c
  5937. }
  5938. // Fields allows partial responses to be retrieved. See
  5939. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5940. // for more information.
  5941. func (c *ReadgroupsetsGetCall) Fields(s ...googleapi.Field) *ReadgroupsetsGetCall {
  5942. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5943. return c
  5944. }
  5945. // IfNoneMatch sets the optional parameter which makes the operation
  5946. // fail if the object's ETag matches the given value. This is useful for
  5947. // getting updates only after the object has changed since the last
  5948. // request. Use googleapi.IsNotModified to check whether the response
  5949. // error from Do is the result of In-None-Match.
  5950. func (c *ReadgroupsetsGetCall) IfNoneMatch(entityTag string) *ReadgroupsetsGetCall {
  5951. c.ifNoneMatch_ = entityTag
  5952. return c
  5953. }
  5954. // Context sets the context to be used in this call's Do method. Any
  5955. // pending HTTP request will be aborted if the provided context is
  5956. // canceled.
  5957. func (c *ReadgroupsetsGetCall) Context(ctx context.Context) *ReadgroupsetsGetCall {
  5958. c.ctx_ = ctx
  5959. return c
  5960. }
  5961. func (c *ReadgroupsetsGetCall) doRequest(alt string) (*http.Response, error) {
  5962. var body io.Reader = nil
  5963. c.urlParams_.Set("alt", alt)
  5964. urls := googleapi.ResolveRelative(c.s.BasePath, "readgroupsets/{readGroupSetId}")
  5965. urls += "?" + c.urlParams_.Encode()
  5966. req, _ := http.NewRequest("GET", urls, body)
  5967. googleapi.Expand(req.URL, map[string]string{
  5968. "readGroupSetId": c.readGroupSetId,
  5969. })
  5970. req.Header.Set("User-Agent", c.s.userAgent())
  5971. if c.ifNoneMatch_ != "" {
  5972. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  5973. }
  5974. if c.ctx_ != nil {
  5975. return ctxhttp.Do(c.ctx_, c.s.client, req)
  5976. }
  5977. return c.s.client.Do(req)
  5978. }
  5979. // Do executes the "genomics.readgroupsets.get" call.
  5980. // Exactly one of *ReadGroupSet or error will be non-nil. Any non-2xx
  5981. // status code is an error. Response headers are in either
  5982. // *ReadGroupSet.ServerResponse.Header or (if a response was returned at
  5983. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  5984. // to check whether the returned error was because
  5985. // http.StatusNotModified was returned.
  5986. func (c *ReadgroupsetsGetCall) Do(opts ...googleapi.CallOption) (*ReadGroupSet, error) {
  5987. gensupport.SetOptions(c.urlParams_, opts...)
  5988. res, err := c.doRequest("json")
  5989. if res != nil && res.StatusCode == http.StatusNotModified {
  5990. if res.Body != nil {
  5991. res.Body.Close()
  5992. }
  5993. return nil, &googleapi.Error{
  5994. Code: res.StatusCode,
  5995. Header: res.Header,
  5996. }
  5997. }
  5998. if err != nil {
  5999. return nil, err
  6000. }
  6001. defer googleapi.CloseBody(res)
  6002. if err := googleapi.CheckResponse(res); err != nil {
  6003. return nil, err
  6004. }
  6005. ret := &ReadGroupSet{
  6006. ServerResponse: googleapi.ServerResponse{
  6007. Header: res.Header,
  6008. HTTPStatusCode: res.StatusCode,
  6009. },
  6010. }
  6011. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  6012. return nil, err
  6013. }
  6014. return ret, nil
  6015. // {
  6016. // "description": "Gets a read group set by ID.",
  6017. // "httpMethod": "GET",
  6018. // "id": "genomics.readgroupsets.get",
  6019. // "parameterOrder": [
  6020. // "readGroupSetId"
  6021. // ],
  6022. // "parameters": {
  6023. // "readGroupSetId": {
  6024. // "description": "The ID of the read group set.",
  6025. // "location": "path",
  6026. // "required": true,
  6027. // "type": "string"
  6028. // }
  6029. // },
  6030. // "path": "readgroupsets/{readGroupSetId}",
  6031. // "response": {
  6032. // "$ref": "ReadGroupSet"
  6033. // },
  6034. // "scopes": [
  6035. // "https://www.googleapis.com/auth/cloud-platform",
  6036. // "https://www.googleapis.com/auth/genomics",
  6037. // "https://www.googleapis.com/auth/genomics.readonly"
  6038. // ]
  6039. // }
  6040. }
  6041. // method id "genomics.readgroupsets.import":
  6042. type ReadgroupsetsImportCall struct {
  6043. s *Service
  6044. importreadgroupsetsrequest *ImportReadGroupSetsRequest
  6045. urlParams_ gensupport.URLParams
  6046. ctx_ context.Context
  6047. }
  6048. // Import: Creates read group sets by asynchronously importing the
  6049. // provided information. The caller must have WRITE permissions to the
  6050. // dataset.
  6051. //
  6052. // Notes on BAM import:
  6053. // - Tags will be converted to strings - tag types are not preserved
  6054. // - Comments (@CO) in the input file header are not imported
  6055. // - Original order of reference headers is not preserved
  6056. // - Any reverse stranded unmapped reads will be reverse complemented,
  6057. // and their qualities (also the "BQ" and "OQ" tags, if any) will be
  6058. // reversed
  6059. // - Unmapped reads will be stripped of positional information
  6060. // (referenceName and position)
  6061. func (r *ReadgroupsetsService) Import(importreadgroupsetsrequest *ImportReadGroupSetsRequest) *ReadgroupsetsImportCall {
  6062. c := &ReadgroupsetsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6063. c.importreadgroupsetsrequest = importreadgroupsetsrequest
  6064. return c
  6065. }
  6066. // Fields allows partial responses to be retrieved. See
  6067. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6068. // for more information.
  6069. func (c *ReadgroupsetsImportCall) Fields(s ...googleapi.Field) *ReadgroupsetsImportCall {
  6070. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6071. return c
  6072. }
  6073. // Context sets the context to be used in this call's Do method. Any
  6074. // pending HTTP request will be aborted if the provided context is
  6075. // canceled.
  6076. func (c *ReadgroupsetsImportCall) Context(ctx context.Context) *ReadgroupsetsImportCall {
  6077. c.ctx_ = ctx
  6078. return c
  6079. }
  6080. func (c *ReadgroupsetsImportCall) doRequest(alt string) (*http.Response, error) {
  6081. var body io.Reader = nil
  6082. body, err := googleapi.WithoutDataWrapper.JSONReader(c.importreadgroupsetsrequest)
  6083. if err != nil {
  6084. return nil, err
  6085. }
  6086. ctype := "application/json"
  6087. c.urlParams_.Set("alt", alt)
  6088. urls := googleapi.ResolveRelative(c.s.BasePath, "readgroupsets/import")
  6089. urls += "?" + c.urlParams_.Encode()
  6090. req, _ := http.NewRequest("POST", urls, body)
  6091. googleapi.SetOpaque(req.URL)
  6092. req.Header.Set("Content-Type", ctype)
  6093. req.Header.Set("User-Agent", c.s.userAgent())
  6094. if c.ctx_ != nil {
  6095. return ctxhttp.Do(c.ctx_, c.s.client, req)
  6096. }
  6097. return c.s.client.Do(req)
  6098. }
  6099. // Do executes the "genomics.readgroupsets.import" call.
  6100. // Exactly one of *ImportReadGroupSetsResponse or error will be non-nil.
  6101. // Any non-2xx status code is an error. Response headers are in either
  6102. // *ImportReadGroupSetsResponse.ServerResponse.Header or (if a response
  6103. // was returned at all) in error.(*googleapi.Error).Header. Use
  6104. // googleapi.IsNotModified to check whether the returned error was
  6105. // because http.StatusNotModified was returned.
  6106. func (c *ReadgroupsetsImportCall) Do(opts ...googleapi.CallOption) (*ImportReadGroupSetsResponse, error) {
  6107. gensupport.SetOptions(c.urlParams_, opts...)
  6108. res, err := c.doRequest("json")
  6109. if res != nil && res.StatusCode == http.StatusNotModified {
  6110. if res.Body != nil {
  6111. res.Body.Close()
  6112. }
  6113. return nil, &googleapi.Error{
  6114. Code: res.StatusCode,
  6115. Header: res.Header,
  6116. }
  6117. }
  6118. if err != nil {
  6119. return nil, err
  6120. }
  6121. defer googleapi.CloseBody(res)
  6122. if err := googleapi.CheckResponse(res); err != nil {
  6123. return nil, err
  6124. }
  6125. ret := &ImportReadGroupSetsResponse{
  6126. ServerResponse: googleapi.ServerResponse{
  6127. Header: res.Header,
  6128. HTTPStatusCode: res.StatusCode,
  6129. },
  6130. }
  6131. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  6132. return nil, err
  6133. }
  6134. return ret, nil
  6135. // {
  6136. // "description": "Creates read group sets by asynchronously importing the provided information. The caller must have WRITE permissions to the dataset.\n\nNotes on BAM import: \n- Tags will be converted to strings - tag types are not preserved\n- Comments (@CO) in the input file header are not imported\n- Original order of reference headers is not preserved\n- Any reverse stranded unmapped reads will be reverse complemented, and their qualities (also the \"BQ\" and \"OQ\" tags, if any) will be reversed\n- Unmapped reads will be stripped of positional information (referenceName and position)",
  6137. // "httpMethod": "POST",
  6138. // "id": "genomics.readgroupsets.import",
  6139. // "path": "readgroupsets/import",
  6140. // "request": {
  6141. // "$ref": "ImportReadGroupSetsRequest"
  6142. // },
  6143. // "response": {
  6144. // "$ref": "ImportReadGroupSetsResponse"
  6145. // },
  6146. // "scopes": [
  6147. // "https://www.googleapis.com/auth/cloud-platform",
  6148. // "https://www.googleapis.com/auth/devstorage.read_write",
  6149. // "https://www.googleapis.com/auth/genomics"
  6150. // ]
  6151. // }
  6152. }
  6153. // method id "genomics.readgroupsets.patch":
  6154. type ReadgroupsetsPatchCall struct {
  6155. s *Service
  6156. readGroupSetId string
  6157. readgroupset *ReadGroupSet
  6158. urlParams_ gensupport.URLParams
  6159. ctx_ context.Context
  6160. }
  6161. // Patch: Updates a read group set. This method supports patch
  6162. // semantics.
  6163. func (r *ReadgroupsetsService) Patch(readGroupSetId string, readgroupset *ReadGroupSet) *ReadgroupsetsPatchCall {
  6164. c := &ReadgroupsetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6165. c.readGroupSetId = readGroupSetId
  6166. c.readgroupset = readgroupset
  6167. return c
  6168. }
  6169. // Fields allows partial responses to be retrieved. See
  6170. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6171. // for more information.
  6172. func (c *ReadgroupsetsPatchCall) Fields(s ...googleapi.Field) *ReadgroupsetsPatchCall {
  6173. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6174. return c
  6175. }
  6176. // Context sets the context to be used in this call's Do method. Any
  6177. // pending HTTP request will be aborted if the provided context is
  6178. // canceled.
  6179. func (c *ReadgroupsetsPatchCall) Context(ctx context.Context) *ReadgroupsetsPatchCall {
  6180. c.ctx_ = ctx
  6181. return c
  6182. }
  6183. func (c *ReadgroupsetsPatchCall) doRequest(alt string) (*http.Response, error) {
  6184. var body io.Reader = nil
  6185. body, err := googleapi.WithoutDataWrapper.JSONReader(c.readgroupset)
  6186. if err != nil {
  6187. return nil, err
  6188. }
  6189. ctype := "application/json"
  6190. c.urlParams_.Set("alt", alt)
  6191. urls := googleapi.ResolveRelative(c.s.BasePath, "readgroupsets/{readGroupSetId}")
  6192. urls += "?" + c.urlParams_.Encode()
  6193. req, _ := http.NewRequest("PATCH", urls, body)
  6194. googleapi.Expand(req.URL, map[string]string{
  6195. "readGroupSetId": c.readGroupSetId,
  6196. })
  6197. req.Header.Set("Content-Type", ctype)
  6198. req.Header.Set("User-Agent", c.s.userAgent())
  6199. if c.ctx_ != nil {
  6200. return ctxhttp.Do(c.ctx_, c.s.client, req)
  6201. }
  6202. return c.s.client.Do(req)
  6203. }
  6204. // Do executes the "genomics.readgroupsets.patch" call.
  6205. // Exactly one of *ReadGroupSet or error will be non-nil. Any non-2xx
  6206. // status code is an error. Response headers are in either
  6207. // *ReadGroupSet.ServerResponse.Header or (if a response was returned at
  6208. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  6209. // to check whether the returned error was because
  6210. // http.StatusNotModified was returned.
  6211. func (c *ReadgroupsetsPatchCall) Do(opts ...googleapi.CallOption) (*ReadGroupSet, error) {
  6212. gensupport.SetOptions(c.urlParams_, opts...)
  6213. res, err := c.doRequest("json")
  6214. if res != nil && res.StatusCode == http.StatusNotModified {
  6215. if res.Body != nil {
  6216. res.Body.Close()
  6217. }
  6218. return nil, &googleapi.Error{
  6219. Code: res.StatusCode,
  6220. Header: res.Header,
  6221. }
  6222. }
  6223. if err != nil {
  6224. return nil, err
  6225. }
  6226. defer googleapi.CloseBody(res)
  6227. if err := googleapi.CheckResponse(res); err != nil {
  6228. return nil, err
  6229. }
  6230. ret := &ReadGroupSet{
  6231. ServerResponse: googleapi.ServerResponse{
  6232. Header: res.Header,
  6233. HTTPStatusCode: res.StatusCode,
  6234. },
  6235. }
  6236. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  6237. return nil, err
  6238. }
  6239. return ret, nil
  6240. // {
  6241. // "description": "Updates a read group set. This method supports patch semantics.",
  6242. // "httpMethod": "PATCH",
  6243. // "id": "genomics.readgroupsets.patch",
  6244. // "parameterOrder": [
  6245. // "readGroupSetId"
  6246. // ],
  6247. // "parameters": {
  6248. // "readGroupSetId": {
  6249. // "description": "The ID of the read group set to be updated. The caller must have WRITE permissions to the dataset associated with this read group set.",
  6250. // "location": "path",
  6251. // "required": true,
  6252. // "type": "string"
  6253. // }
  6254. // },
  6255. // "path": "readgroupsets/{readGroupSetId}",
  6256. // "request": {
  6257. // "$ref": "ReadGroupSet"
  6258. // },
  6259. // "response": {
  6260. // "$ref": "ReadGroupSet"
  6261. // },
  6262. // "scopes": [
  6263. // "https://www.googleapis.com/auth/cloud-platform",
  6264. // "https://www.googleapis.com/auth/genomics"
  6265. // ]
  6266. // }
  6267. }
  6268. // method id "genomics.readgroupsets.search":
  6269. type ReadgroupsetsSearchCall struct {
  6270. s *Service
  6271. searchreadgroupsetsrequest *SearchReadGroupSetsRequest
  6272. urlParams_ gensupport.URLParams
  6273. ctx_ context.Context
  6274. }
  6275. // Search: Searches for read group sets matching the
  6276. // criteria.
  6277. //
  6278. // Implements GlobalAllianceApi.searchReadGroupSets.
  6279. func (r *ReadgroupsetsService) Search(searchreadgroupsetsrequest *SearchReadGroupSetsRequest) *ReadgroupsetsSearchCall {
  6280. c := &ReadgroupsetsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6281. c.searchreadgroupsetsrequest = searchreadgroupsetsrequest
  6282. return c
  6283. }
  6284. // Fields allows partial responses to be retrieved. See
  6285. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6286. // for more information.
  6287. func (c *ReadgroupsetsSearchCall) Fields(s ...googleapi.Field) *ReadgroupsetsSearchCall {
  6288. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6289. return c
  6290. }
  6291. // Context sets the context to be used in this call's Do method. Any
  6292. // pending HTTP request will be aborted if the provided context is
  6293. // canceled.
  6294. func (c *ReadgroupsetsSearchCall) Context(ctx context.Context) *ReadgroupsetsSearchCall {
  6295. c.ctx_ = ctx
  6296. return c
  6297. }
  6298. func (c *ReadgroupsetsSearchCall) doRequest(alt string) (*http.Response, error) {
  6299. var body io.Reader = nil
  6300. body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchreadgroupsetsrequest)
  6301. if err != nil {
  6302. return nil, err
  6303. }
  6304. ctype := "application/json"
  6305. c.urlParams_.Set("alt", alt)
  6306. urls := googleapi.ResolveRelative(c.s.BasePath, "readgroupsets/search")
  6307. urls += "?" + c.urlParams_.Encode()
  6308. req, _ := http.NewRequest("POST", urls, body)
  6309. googleapi.SetOpaque(req.URL)
  6310. req.Header.Set("Content-Type", ctype)
  6311. req.Header.Set("User-Agent", c.s.userAgent())
  6312. if c.ctx_ != nil {
  6313. return ctxhttp.Do(c.ctx_, c.s.client, req)
  6314. }
  6315. return c.s.client.Do(req)
  6316. }
  6317. // Do executes the "genomics.readgroupsets.search" call.
  6318. // Exactly one of *SearchReadGroupSetsResponse or error will be non-nil.
  6319. // Any non-2xx status code is an error. Response headers are in either
  6320. // *SearchReadGroupSetsResponse.ServerResponse.Header or (if a response
  6321. // was returned at all) in error.(*googleapi.Error).Header. Use
  6322. // googleapi.IsNotModified to check whether the returned error was
  6323. // because http.StatusNotModified was returned.
  6324. func (c *ReadgroupsetsSearchCall) Do(opts ...googleapi.CallOption) (*SearchReadGroupSetsResponse, error) {
  6325. gensupport.SetOptions(c.urlParams_, opts...)
  6326. res, err := c.doRequest("json")
  6327. if res != nil && res.StatusCode == http.StatusNotModified {
  6328. if res.Body != nil {
  6329. res.Body.Close()
  6330. }
  6331. return nil, &googleapi.Error{
  6332. Code: res.StatusCode,
  6333. Header: res.Header,
  6334. }
  6335. }
  6336. if err != nil {
  6337. return nil, err
  6338. }
  6339. defer googleapi.CloseBody(res)
  6340. if err := googleapi.CheckResponse(res); err != nil {
  6341. return nil, err
  6342. }
  6343. ret := &SearchReadGroupSetsResponse{
  6344. ServerResponse: googleapi.ServerResponse{
  6345. Header: res.Header,
  6346. HTTPStatusCode: res.StatusCode,
  6347. },
  6348. }
  6349. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  6350. return nil, err
  6351. }
  6352. return ret, nil
  6353. // {
  6354. // "description": "Searches for read group sets matching the criteria.\n\nImplements GlobalAllianceApi.searchReadGroupSets.",
  6355. // "httpMethod": "POST",
  6356. // "id": "genomics.readgroupsets.search",
  6357. // "path": "readgroupsets/search",
  6358. // "request": {
  6359. // "$ref": "SearchReadGroupSetsRequest"
  6360. // },
  6361. // "response": {
  6362. // "$ref": "SearchReadGroupSetsResponse"
  6363. // },
  6364. // "scopes": [
  6365. // "https://www.googleapis.com/auth/cloud-platform",
  6366. // "https://www.googleapis.com/auth/genomics",
  6367. // "https://www.googleapis.com/auth/genomics.readonly"
  6368. // ]
  6369. // }
  6370. }
  6371. // method id "genomics.readgroupsets.update":
  6372. type ReadgroupsetsUpdateCall struct {
  6373. s *Service
  6374. readGroupSetId string
  6375. readgroupset *ReadGroupSet
  6376. urlParams_ gensupport.URLParams
  6377. ctx_ context.Context
  6378. }
  6379. // Update: Updates a read group set.
  6380. func (r *ReadgroupsetsService) Update(readGroupSetId string, readgroupset *ReadGroupSet) *ReadgroupsetsUpdateCall {
  6381. c := &ReadgroupsetsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6382. c.readGroupSetId = readGroupSetId
  6383. c.readgroupset = readgroupset
  6384. return c
  6385. }
  6386. // Fields allows partial responses to be retrieved. See
  6387. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6388. // for more information.
  6389. func (c *ReadgroupsetsUpdateCall) Fields(s ...googleapi.Field) *ReadgroupsetsUpdateCall {
  6390. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6391. return c
  6392. }
  6393. // Context sets the context to be used in this call's Do method. Any
  6394. // pending HTTP request will be aborted if the provided context is
  6395. // canceled.
  6396. func (c *ReadgroupsetsUpdateCall) Context(ctx context.Context) *ReadgroupsetsUpdateCall {
  6397. c.ctx_ = ctx
  6398. return c
  6399. }
  6400. func (c *ReadgroupsetsUpdateCall) doRequest(alt string) (*http.Response, error) {
  6401. var body io.Reader = nil
  6402. body, err := googleapi.WithoutDataWrapper.JSONReader(c.readgroupset)
  6403. if err != nil {
  6404. return nil, err
  6405. }
  6406. ctype := "application/json"
  6407. c.urlParams_.Set("alt", alt)
  6408. urls := googleapi.ResolveRelative(c.s.BasePath, "readgroupsets/{readGroupSetId}")
  6409. urls += "?" + c.urlParams_.Encode()
  6410. req, _ := http.NewRequest("PUT", urls, body)
  6411. googleapi.Expand(req.URL, map[string]string{
  6412. "readGroupSetId": c.readGroupSetId,
  6413. })
  6414. req.Header.Set("Content-Type", ctype)
  6415. req.Header.Set("User-Agent", c.s.userAgent())
  6416. if c.ctx_ != nil {
  6417. return ctxhttp.Do(c.ctx_, c.s.client, req)
  6418. }
  6419. return c.s.client.Do(req)
  6420. }
  6421. // Do executes the "genomics.readgroupsets.update" call.
  6422. // Exactly one of *ReadGroupSet or error will be non-nil. Any non-2xx
  6423. // status code is an error. Response headers are in either
  6424. // *ReadGroupSet.ServerResponse.Header or (if a response was returned at
  6425. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  6426. // to check whether the returned error was because
  6427. // http.StatusNotModified was returned.
  6428. func (c *ReadgroupsetsUpdateCall) Do(opts ...googleapi.CallOption) (*ReadGroupSet, error) {
  6429. gensupport.SetOptions(c.urlParams_, opts...)
  6430. res, err := c.doRequest("json")
  6431. if res != nil && res.StatusCode == http.StatusNotModified {
  6432. if res.Body != nil {
  6433. res.Body.Close()
  6434. }
  6435. return nil, &googleapi.Error{
  6436. Code: res.StatusCode,
  6437. Header: res.Header,
  6438. }
  6439. }
  6440. if err != nil {
  6441. return nil, err
  6442. }
  6443. defer googleapi.CloseBody(res)
  6444. if err := googleapi.CheckResponse(res); err != nil {
  6445. return nil, err
  6446. }
  6447. ret := &ReadGroupSet{
  6448. ServerResponse: googleapi.ServerResponse{
  6449. Header: res.Header,
  6450. HTTPStatusCode: res.StatusCode,
  6451. },
  6452. }
  6453. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  6454. return nil, err
  6455. }
  6456. return ret, nil
  6457. // {
  6458. // "description": "Updates a read group set.",
  6459. // "httpMethod": "PUT",
  6460. // "id": "genomics.readgroupsets.update",
  6461. // "parameterOrder": [
  6462. // "readGroupSetId"
  6463. // ],
  6464. // "parameters": {
  6465. // "readGroupSetId": {
  6466. // "description": "The ID of the read group set to be updated. The caller must have WRITE permissions to the dataset associated with this read group set.",
  6467. // "location": "path",
  6468. // "required": true,
  6469. // "type": "string"
  6470. // }
  6471. // },
  6472. // "path": "readgroupsets/{readGroupSetId}",
  6473. // "request": {
  6474. // "$ref": "ReadGroupSet"
  6475. // },
  6476. // "response": {
  6477. // "$ref": "ReadGroupSet"
  6478. // },
  6479. // "scopes": [
  6480. // "https://www.googleapis.com/auth/cloud-platform",
  6481. // "https://www.googleapis.com/auth/genomics"
  6482. // ]
  6483. // }
  6484. }
  6485. // method id "genomics.readgroupsets.coveragebuckets.list":
  6486. type ReadgroupsetsCoveragebucketsListCall struct {
  6487. s *Service
  6488. readGroupSetId string
  6489. urlParams_ gensupport.URLParams
  6490. ifNoneMatch_ string
  6491. ctx_ context.Context
  6492. }
  6493. // List: Lists fixed width coverage buckets for a read group set, each
  6494. // of which correspond to a range of a reference sequence. Each bucket
  6495. // summarizes coverage information across its corresponding genomic
  6496. // range.
  6497. //
  6498. // Coverage is defined as the number of reads which are aligned to a
  6499. // given base in the reference sequence. Coverage buckets are available
  6500. // at several precomputed bucket widths, enabling retrieval of various
  6501. // coverage 'zoom levels'. The caller must have READ permissions for the
  6502. // target read group set.
  6503. func (r *ReadgroupsetsCoveragebucketsService) List(readGroupSetId string) *ReadgroupsetsCoveragebucketsListCall {
  6504. c := &ReadgroupsetsCoveragebucketsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6505. c.readGroupSetId = readGroupSetId
  6506. return c
  6507. }
  6508. // PageSize sets the optional parameter "pageSize": The maximum number
  6509. // of results to return in a single page. If unspecified, defaults to
  6510. // 1024. The maximum value is 2048.
  6511. func (c *ReadgroupsetsCoveragebucketsListCall) PageSize(pageSize int64) *ReadgroupsetsCoveragebucketsListCall {
  6512. c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6513. return c
  6514. }
  6515. // PageToken sets the optional parameter "pageToken": The continuation
  6516. // token, which is used to page through large result sets. To get the
  6517. // next page of results, set this parameter to the value of
  6518. // nextPageToken from the previous response.
  6519. func (c *ReadgroupsetsCoveragebucketsListCall) PageToken(pageToken string) *ReadgroupsetsCoveragebucketsListCall {
  6520. c.urlParams_.Set("pageToken", pageToken)
  6521. return c
  6522. }
  6523. // RangeEnd sets the optional parameter "range.end": The end position of
  6524. // the range on the reference, 0-based exclusive. If specified,
  6525. // referenceName must also be specified.
  6526. func (c *ReadgroupsetsCoveragebucketsListCall) RangeEnd(rangeEnd int64) *ReadgroupsetsCoveragebucketsListCall {
  6527. c.urlParams_.Set("range.end", fmt.Sprint(rangeEnd))
  6528. return c
  6529. }
  6530. // RangeReferenceName sets the optional parameter "range.referenceName":
  6531. // The reference sequence name, for example chr1, 1, or chrX.
  6532. func (c *ReadgroupsetsCoveragebucketsListCall) RangeReferenceName(rangeReferenceName string) *ReadgroupsetsCoveragebucketsListCall {
  6533. c.urlParams_.Set("range.referenceName", rangeReferenceName)
  6534. return c
  6535. }
  6536. // RangeStart sets the optional parameter "range.start": The start
  6537. // position of the range on the reference, 0-based inclusive. If
  6538. // specified, referenceName must also be specified.
  6539. func (c *ReadgroupsetsCoveragebucketsListCall) RangeStart(rangeStart int64) *ReadgroupsetsCoveragebucketsListCall {
  6540. c.urlParams_.Set("range.start", fmt.Sprint(rangeStart))
  6541. return c
  6542. }
  6543. // TargetBucketWidth sets the optional parameter "targetBucketWidth":
  6544. // The desired width of each reported coverage bucket in base pairs.
  6545. // This will be rounded down to the nearest precomputed bucket width;
  6546. // the value of which is returned as bucketWidth in the response.
  6547. // Defaults to infinity (each bucket spans an entire reference sequence)
  6548. // or the length of the target range, if specified. The smallest
  6549. // precomputed bucketWidth is currently 2048 base pairs; this is subject
  6550. // to change.
  6551. func (c *ReadgroupsetsCoveragebucketsListCall) TargetBucketWidth(targetBucketWidth int64) *ReadgroupsetsCoveragebucketsListCall {
  6552. c.urlParams_.Set("targetBucketWidth", fmt.Sprint(targetBucketWidth))
  6553. return c
  6554. }
  6555. // Fields allows partial responses to be retrieved. See
  6556. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6557. // for more information.
  6558. func (c *ReadgroupsetsCoveragebucketsListCall) Fields(s ...googleapi.Field) *ReadgroupsetsCoveragebucketsListCall {
  6559. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6560. return c
  6561. }
  6562. // IfNoneMatch sets the optional parameter which makes the operation
  6563. // fail if the object's ETag matches the given value. This is useful for
  6564. // getting updates only after the object has changed since the last
  6565. // request. Use googleapi.IsNotModified to check whether the response
  6566. // error from Do is the result of In-None-Match.
  6567. func (c *ReadgroupsetsCoveragebucketsListCall) IfNoneMatch(entityTag string) *ReadgroupsetsCoveragebucketsListCall {
  6568. c.ifNoneMatch_ = entityTag
  6569. return c
  6570. }
  6571. // Context sets the context to be used in this call's Do method. Any
  6572. // pending HTTP request will be aborted if the provided context is
  6573. // canceled.
  6574. func (c *ReadgroupsetsCoveragebucketsListCall) Context(ctx context.Context) *ReadgroupsetsCoveragebucketsListCall {
  6575. c.ctx_ = ctx
  6576. return c
  6577. }
  6578. func (c *ReadgroupsetsCoveragebucketsListCall) doRequest(alt string) (*http.Response, error) {
  6579. var body io.Reader = nil
  6580. c.urlParams_.Set("alt", alt)
  6581. urls := googleapi.ResolveRelative(c.s.BasePath, "readgroupsets/{readGroupSetId}/coveragebuckets")
  6582. urls += "?" + c.urlParams_.Encode()
  6583. req, _ := http.NewRequest("GET", urls, body)
  6584. googleapi.Expand(req.URL, map[string]string{
  6585. "readGroupSetId": c.readGroupSetId,
  6586. })
  6587. req.Header.Set("User-Agent", c.s.userAgent())
  6588. if c.ifNoneMatch_ != "" {
  6589. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  6590. }
  6591. if c.ctx_ != nil {
  6592. return ctxhttp.Do(c.ctx_, c.s.client, req)
  6593. }
  6594. return c.s.client.Do(req)
  6595. }
  6596. // Do executes the "genomics.readgroupsets.coveragebuckets.list" call.
  6597. // Exactly one of *ListCoverageBucketsResponse or error will be non-nil.
  6598. // Any non-2xx status code is an error. Response headers are in either
  6599. // *ListCoverageBucketsResponse.ServerResponse.Header or (if a response
  6600. // was returned at all) in error.(*googleapi.Error).Header. Use
  6601. // googleapi.IsNotModified to check whether the returned error was
  6602. // because http.StatusNotModified was returned.
  6603. func (c *ReadgroupsetsCoveragebucketsListCall) Do(opts ...googleapi.CallOption) (*ListCoverageBucketsResponse, error) {
  6604. gensupport.SetOptions(c.urlParams_, opts...)
  6605. res, err := c.doRequest("json")
  6606. if res != nil && res.StatusCode == http.StatusNotModified {
  6607. if res.Body != nil {
  6608. res.Body.Close()
  6609. }
  6610. return nil, &googleapi.Error{
  6611. Code: res.StatusCode,
  6612. Header: res.Header,
  6613. }
  6614. }
  6615. if err != nil {
  6616. return nil, err
  6617. }
  6618. defer googleapi.CloseBody(res)
  6619. if err := googleapi.CheckResponse(res); err != nil {
  6620. return nil, err
  6621. }
  6622. ret := &ListCoverageBucketsResponse{
  6623. ServerResponse: googleapi.ServerResponse{
  6624. Header: res.Header,
  6625. HTTPStatusCode: res.StatusCode,
  6626. },
  6627. }
  6628. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  6629. return nil, err
  6630. }
  6631. return ret, nil
  6632. // {
  6633. // "description": "Lists fixed width coverage buckets for a read group set, each of which correspond to a range of a reference sequence. Each bucket summarizes coverage information across its corresponding genomic range.\n\nCoverage is defined as the number of reads which are aligned to a given base in the reference sequence. Coverage buckets are available at several precomputed bucket widths, enabling retrieval of various coverage 'zoom levels'. The caller must have READ permissions for the target read group set.",
  6634. // "httpMethod": "GET",
  6635. // "id": "genomics.readgroupsets.coveragebuckets.list",
  6636. // "parameterOrder": [
  6637. // "readGroupSetId"
  6638. // ],
  6639. // "parameters": {
  6640. // "pageSize": {
  6641. // "description": "The maximum number of results to return in a single page. If unspecified, defaults to 1024. The maximum value is 2048.",
  6642. // "format": "int32",
  6643. // "location": "query",
  6644. // "type": "integer"
  6645. // },
  6646. // "pageToken": {
  6647. // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.",
  6648. // "location": "query",
  6649. // "type": "string"
  6650. // },
  6651. // "range.end": {
  6652. // "description": "The end position of the range on the reference, 0-based exclusive. If specified, referenceName must also be specified.",
  6653. // "format": "int64",
  6654. // "location": "query",
  6655. // "type": "string"
  6656. // },
  6657. // "range.referenceName": {
  6658. // "description": "The reference sequence name, for example chr1, 1, or chrX.",
  6659. // "location": "query",
  6660. // "type": "string"
  6661. // },
  6662. // "range.start": {
  6663. // "description": "The start position of the range on the reference, 0-based inclusive. If specified, referenceName must also be specified.",
  6664. // "format": "int64",
  6665. // "location": "query",
  6666. // "type": "string"
  6667. // },
  6668. // "readGroupSetId": {
  6669. // "description": "Required. The ID of the read group set over which coverage is requested.",
  6670. // "location": "path",
  6671. // "required": true,
  6672. // "type": "string"
  6673. // },
  6674. // "targetBucketWidth": {
  6675. // "description": "The desired width of each reported coverage bucket in base pairs. This will be rounded down to the nearest precomputed bucket width; the value of which is returned as bucketWidth in the response. Defaults to infinity (each bucket spans an entire reference sequence) or the length of the target range, if specified. The smallest precomputed bucketWidth is currently 2048 base pairs; this is subject to change.",
  6676. // "format": "int64",
  6677. // "location": "query",
  6678. // "type": "string"
  6679. // }
  6680. // },
  6681. // "path": "readgroupsets/{readGroupSetId}/coveragebuckets",
  6682. // "response": {
  6683. // "$ref": "ListCoverageBucketsResponse"
  6684. // },
  6685. // "scopes": [
  6686. // "https://www.googleapis.com/auth/cloud-platform",
  6687. // "https://www.googleapis.com/auth/genomics",
  6688. // "https://www.googleapis.com/auth/genomics.readonly"
  6689. // ]
  6690. // }
  6691. }
  6692. // Pages invokes f for each page of results.
  6693. // A non-nil error returned from f will halt the iteration.
  6694. // The provided context supersedes any context provided to the Context method.
  6695. func (c *ReadgroupsetsCoveragebucketsListCall) Pages(ctx context.Context, f func(*ListCoverageBucketsResponse) error) error {
  6696. c.ctx_ = ctx
  6697. defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  6698. for {
  6699. x, err := c.Do()
  6700. if err != nil {
  6701. return err
  6702. }
  6703. if err := f(x); err != nil {
  6704. return err
  6705. }
  6706. if x.NextPageToken == "" {
  6707. return nil
  6708. }
  6709. c.PageToken(x.NextPageToken)
  6710. }
  6711. }
  6712. // method id "genomics.reads.search":
  6713. type ReadsSearchCall struct {
  6714. s *Service
  6715. searchreadsrequest *SearchReadsRequest
  6716. urlParams_ gensupport.URLParams
  6717. ctx_ context.Context
  6718. }
  6719. // Search: Gets a list of reads for one or more read group sets. Reads
  6720. // search operates over a genomic coordinate space of reference sequence
  6721. // & position defined over the reference sequences to which the
  6722. // requested read group sets are aligned.
  6723. //
  6724. // If a target positional range is specified, search returns all reads
  6725. // whose alignment to the reference genome overlap the range. A query
  6726. // which specifies only read group set IDs yields all reads in those
  6727. // read group sets, including unmapped reads.
  6728. //
  6729. // All reads returned (including reads on subsequent pages) are ordered
  6730. // by genomic coordinate (by reference sequence, then position). Reads
  6731. // with equivalent genomic coordinates are returned in an unspecified
  6732. // order. This order is consistent, such that two queries for the same
  6733. // content (regardless of page size) yield reads in the same order
  6734. // across their respective streams of paginated responses.
  6735. //
  6736. // Implements GlobalAllianceApi.searchReads.
  6737. func (r *ReadsService) Search(searchreadsrequest *SearchReadsRequest) *ReadsSearchCall {
  6738. c := &ReadsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6739. c.searchreadsrequest = searchreadsrequest
  6740. return c
  6741. }
  6742. // Fields allows partial responses to be retrieved. See
  6743. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6744. // for more information.
  6745. func (c *ReadsSearchCall) Fields(s ...googleapi.Field) *ReadsSearchCall {
  6746. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6747. return c
  6748. }
  6749. // Context sets the context to be used in this call's Do method. Any
  6750. // pending HTTP request will be aborted if the provided context is
  6751. // canceled.
  6752. func (c *ReadsSearchCall) Context(ctx context.Context) *ReadsSearchCall {
  6753. c.ctx_ = ctx
  6754. return c
  6755. }
  6756. func (c *ReadsSearchCall) doRequest(alt string) (*http.Response, error) {
  6757. var body io.Reader = nil
  6758. body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchreadsrequest)
  6759. if err != nil {
  6760. return nil, err
  6761. }
  6762. ctype := "application/json"
  6763. c.urlParams_.Set("alt", alt)
  6764. urls := googleapi.ResolveRelative(c.s.BasePath, "reads/search")
  6765. urls += "?" + c.urlParams_.Encode()
  6766. req, _ := http.NewRequest("POST", urls, body)
  6767. googleapi.SetOpaque(req.URL)
  6768. req.Header.Set("Content-Type", ctype)
  6769. req.Header.Set("User-Agent", c.s.userAgent())
  6770. if c.ctx_ != nil {
  6771. return ctxhttp.Do(c.ctx_, c.s.client, req)
  6772. }
  6773. return c.s.client.Do(req)
  6774. }
  6775. // Do executes the "genomics.reads.search" call.
  6776. // Exactly one of *SearchReadsResponse or error will be non-nil. Any
  6777. // non-2xx status code is an error. Response headers are in either
  6778. // *SearchReadsResponse.ServerResponse.Header or (if a response was
  6779. // returned at all) in error.(*googleapi.Error).Header. Use
  6780. // googleapi.IsNotModified to check whether the returned error was
  6781. // because http.StatusNotModified was returned.
  6782. func (c *ReadsSearchCall) Do(opts ...googleapi.CallOption) (*SearchReadsResponse, error) {
  6783. gensupport.SetOptions(c.urlParams_, opts...)
  6784. res, err := c.doRequest("json")
  6785. if res != nil && res.StatusCode == http.StatusNotModified {
  6786. if res.Body != nil {
  6787. res.Body.Close()
  6788. }
  6789. return nil, &googleapi.Error{
  6790. Code: res.StatusCode,
  6791. Header: res.Header,
  6792. }
  6793. }
  6794. if err != nil {
  6795. return nil, err
  6796. }
  6797. defer googleapi.CloseBody(res)
  6798. if err := googleapi.CheckResponse(res); err != nil {
  6799. return nil, err
  6800. }
  6801. ret := &SearchReadsResponse{
  6802. ServerResponse: googleapi.ServerResponse{
  6803. Header: res.Header,
  6804. HTTPStatusCode: res.StatusCode,
  6805. },
  6806. }
  6807. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  6808. return nil, err
  6809. }
  6810. return ret, nil
  6811. // {
  6812. // "description": "Gets a list of reads for one or more read group sets. Reads search operates over a genomic coordinate space of reference sequence \u0026 position defined over the reference sequences to which the requested read group sets are aligned.\n\nIf a target positional range is specified, search returns all reads whose alignment to the reference genome overlap the range. A query which specifies only read group set IDs yields all reads in those read group sets, including unmapped reads.\n\nAll reads returned (including reads on subsequent pages) are ordered by genomic coordinate (by reference sequence, then position). Reads with equivalent genomic coordinates are returned in an unspecified order. This order is consistent, such that two queries for the same content (regardless of page size) yield reads in the same order across their respective streams of paginated responses.\n\nImplements GlobalAllianceApi.searchReads.",
  6813. // "httpMethod": "POST",
  6814. // "id": "genomics.reads.search",
  6815. // "path": "reads/search",
  6816. // "request": {
  6817. // "$ref": "SearchReadsRequest"
  6818. // },
  6819. // "response": {
  6820. // "$ref": "SearchReadsResponse"
  6821. // },
  6822. // "scopes": [
  6823. // "https://www.googleapis.com/auth/cloud-platform",
  6824. // "https://www.googleapis.com/auth/genomics",
  6825. // "https://www.googleapis.com/auth/genomics.readonly"
  6826. // ]
  6827. // }
  6828. }
  6829. // method id "genomics.references.get":
  6830. type ReferencesGetCall struct {
  6831. s *Service
  6832. referenceId string
  6833. urlParams_ gensupport.URLParams
  6834. ifNoneMatch_ string
  6835. ctx_ context.Context
  6836. }
  6837. // Get: Gets a reference.
  6838. //
  6839. // Implements GlobalAllianceApi.getReference.
  6840. func (r *ReferencesService) Get(referenceId string) *ReferencesGetCall {
  6841. c := &ReferencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6842. c.referenceId = referenceId
  6843. return c
  6844. }
  6845. // Fields allows partial responses to be retrieved. See
  6846. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6847. // for more information.
  6848. func (c *ReferencesGetCall) Fields(s ...googleapi.Field) *ReferencesGetCall {
  6849. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6850. return c
  6851. }
  6852. // IfNoneMatch sets the optional parameter which makes the operation
  6853. // fail if the object's ETag matches the given value. This is useful for
  6854. // getting updates only after the object has changed since the last
  6855. // request. Use googleapi.IsNotModified to check whether the response
  6856. // error from Do is the result of In-None-Match.
  6857. func (c *ReferencesGetCall) IfNoneMatch(entityTag string) *ReferencesGetCall {
  6858. c.ifNoneMatch_ = entityTag
  6859. return c
  6860. }
  6861. // Context sets the context to be used in this call's Do method. Any
  6862. // pending HTTP request will be aborted if the provided context is
  6863. // canceled.
  6864. func (c *ReferencesGetCall) Context(ctx context.Context) *ReferencesGetCall {
  6865. c.ctx_ = ctx
  6866. return c
  6867. }
  6868. func (c *ReferencesGetCall) doRequest(alt string) (*http.Response, error) {
  6869. var body io.Reader = nil
  6870. c.urlParams_.Set("alt", alt)
  6871. urls := googleapi.ResolveRelative(c.s.BasePath, "references/{referenceId}")
  6872. urls += "?" + c.urlParams_.Encode()
  6873. req, _ := http.NewRequest("GET", urls, body)
  6874. googleapi.Expand(req.URL, map[string]string{
  6875. "referenceId": c.referenceId,
  6876. })
  6877. req.Header.Set("User-Agent", c.s.userAgent())
  6878. if c.ifNoneMatch_ != "" {
  6879. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  6880. }
  6881. if c.ctx_ != nil {
  6882. return ctxhttp.Do(c.ctx_, c.s.client, req)
  6883. }
  6884. return c.s.client.Do(req)
  6885. }
  6886. // Do executes the "genomics.references.get" call.
  6887. // Exactly one of *Reference or error will be non-nil. Any non-2xx
  6888. // status code is an error. Response headers are in either
  6889. // *Reference.ServerResponse.Header or (if a response was returned at
  6890. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  6891. // to check whether the returned error was because
  6892. // http.StatusNotModified was returned.
  6893. func (c *ReferencesGetCall) Do(opts ...googleapi.CallOption) (*Reference, error) {
  6894. gensupport.SetOptions(c.urlParams_, opts...)
  6895. res, err := c.doRequest("json")
  6896. if res != nil && res.StatusCode == http.StatusNotModified {
  6897. if res.Body != nil {
  6898. res.Body.Close()
  6899. }
  6900. return nil, &googleapi.Error{
  6901. Code: res.StatusCode,
  6902. Header: res.Header,
  6903. }
  6904. }
  6905. if err != nil {
  6906. return nil, err
  6907. }
  6908. defer googleapi.CloseBody(res)
  6909. if err := googleapi.CheckResponse(res); err != nil {
  6910. return nil, err
  6911. }
  6912. ret := &Reference{
  6913. ServerResponse: googleapi.ServerResponse{
  6914. Header: res.Header,
  6915. HTTPStatusCode: res.StatusCode,
  6916. },
  6917. }
  6918. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  6919. return nil, err
  6920. }
  6921. return ret, nil
  6922. // {
  6923. // "description": "Gets a reference.\n\nImplements GlobalAllianceApi.getReference.",
  6924. // "httpMethod": "GET",
  6925. // "id": "genomics.references.get",
  6926. // "parameterOrder": [
  6927. // "referenceId"
  6928. // ],
  6929. // "parameters": {
  6930. // "referenceId": {
  6931. // "description": "The ID of the reference.",
  6932. // "location": "path",
  6933. // "required": true,
  6934. // "type": "string"
  6935. // }
  6936. // },
  6937. // "path": "references/{referenceId}",
  6938. // "response": {
  6939. // "$ref": "Reference"
  6940. // },
  6941. // "scopes": [
  6942. // "https://www.googleapis.com/auth/cloud-platform",
  6943. // "https://www.googleapis.com/auth/genomics",
  6944. // "https://www.googleapis.com/auth/genomics.readonly"
  6945. // ]
  6946. // }
  6947. }
  6948. // method id "genomics.references.search":
  6949. type ReferencesSearchCall struct {
  6950. s *Service
  6951. searchreferencesrequest *SearchReferencesRequest
  6952. urlParams_ gensupport.URLParams
  6953. ctx_ context.Context
  6954. }
  6955. // Search: Searches for references which match the given
  6956. // criteria.
  6957. //
  6958. // Implements GlobalAllianceApi.searchReferences.
  6959. func (r *ReferencesService) Search(searchreferencesrequest *SearchReferencesRequest) *ReferencesSearchCall {
  6960. c := &ReferencesSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6961. c.searchreferencesrequest = searchreferencesrequest
  6962. return c
  6963. }
  6964. // Fields allows partial responses to be retrieved. See
  6965. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6966. // for more information.
  6967. func (c *ReferencesSearchCall) Fields(s ...googleapi.Field) *ReferencesSearchCall {
  6968. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6969. return c
  6970. }
  6971. // Context sets the context to be used in this call's Do method. Any
  6972. // pending HTTP request will be aborted if the provided context is
  6973. // canceled.
  6974. func (c *ReferencesSearchCall) Context(ctx context.Context) *ReferencesSearchCall {
  6975. c.ctx_ = ctx
  6976. return c
  6977. }
  6978. func (c *ReferencesSearchCall) doRequest(alt string) (*http.Response, error) {
  6979. var body io.Reader = nil
  6980. body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchreferencesrequest)
  6981. if err != nil {
  6982. return nil, err
  6983. }
  6984. ctype := "application/json"
  6985. c.urlParams_.Set("alt", alt)
  6986. urls := googleapi.ResolveRelative(c.s.BasePath, "references/search")
  6987. urls += "?" + c.urlParams_.Encode()
  6988. req, _ := http.NewRequest("POST", urls, body)
  6989. googleapi.SetOpaque(req.URL)
  6990. req.Header.Set("Content-Type", ctype)
  6991. req.Header.Set("User-Agent", c.s.userAgent())
  6992. if c.ctx_ != nil {
  6993. return ctxhttp.Do(c.ctx_, c.s.client, req)
  6994. }
  6995. return c.s.client.Do(req)
  6996. }
  6997. // Do executes the "genomics.references.search" call.
  6998. // Exactly one of *SearchReferencesResponse or error will be non-nil.
  6999. // Any non-2xx status code is an error. Response headers are in either
  7000. // *SearchReferencesResponse.ServerResponse.Header or (if a response was
  7001. // returned at all) in error.(*googleapi.Error).Header. Use
  7002. // googleapi.IsNotModified to check whether the returned error was
  7003. // because http.StatusNotModified was returned.
  7004. func (c *ReferencesSearchCall) Do(opts ...googleapi.CallOption) (*SearchReferencesResponse, error) {
  7005. gensupport.SetOptions(c.urlParams_, opts...)
  7006. res, err := c.doRequest("json")
  7007. if res != nil && res.StatusCode == http.StatusNotModified {
  7008. if res.Body != nil {
  7009. res.Body.Close()
  7010. }
  7011. return nil, &googleapi.Error{
  7012. Code: res.StatusCode,
  7013. Header: res.Header,
  7014. }
  7015. }
  7016. if err != nil {
  7017. return nil, err
  7018. }
  7019. defer googleapi.CloseBody(res)
  7020. if err := googleapi.CheckResponse(res); err != nil {
  7021. return nil, err
  7022. }
  7023. ret := &SearchReferencesResponse{
  7024. ServerResponse: googleapi.ServerResponse{
  7025. Header: res.Header,
  7026. HTTPStatusCode: res.StatusCode,
  7027. },
  7028. }
  7029. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  7030. return nil, err
  7031. }
  7032. return ret, nil
  7033. // {
  7034. // "description": "Searches for references which match the given criteria.\n\nImplements GlobalAllianceApi.searchReferences.",
  7035. // "httpMethod": "POST",
  7036. // "id": "genomics.references.search",
  7037. // "path": "references/search",
  7038. // "request": {
  7039. // "$ref": "SearchReferencesRequest"
  7040. // },
  7041. // "response": {
  7042. // "$ref": "SearchReferencesResponse"
  7043. // },
  7044. // "scopes": [
  7045. // "https://www.googleapis.com/auth/cloud-platform",
  7046. // "https://www.googleapis.com/auth/genomics",
  7047. // "https://www.googleapis.com/auth/genomics.readonly"
  7048. // ]
  7049. // }
  7050. }
  7051. // method id "genomics.references.bases.list":
  7052. type ReferencesBasesListCall struct {
  7053. s *Service
  7054. referenceId string
  7055. urlParams_ gensupport.URLParams
  7056. ifNoneMatch_ string
  7057. ctx_ context.Context
  7058. }
  7059. // List: Lists the bases in a reference, optionally restricted to a
  7060. // range.
  7061. //
  7062. // Implements GlobalAllianceApi.getReferenceBases.
  7063. func (r *ReferencesBasesService) List(referenceId string) *ReferencesBasesListCall {
  7064. c := &ReferencesBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7065. c.referenceId = referenceId
  7066. return c
  7067. }
  7068. // End sets the optional parameter "end": The end position (0-based,
  7069. // exclusive) of this query. Defaults to the length of this reference.
  7070. func (c *ReferencesBasesListCall) End(end int64) *ReferencesBasesListCall {
  7071. c.urlParams_.Set("end", fmt.Sprint(end))
  7072. return c
  7073. }
  7074. // PageSize sets the optional parameter "pageSize": The maximum number
  7075. // of bases to return in a single page. If unspecified, defaults to
  7076. // 200Kbp (kilo base pairs). The maximum value is 10Mbp (mega base
  7077. // pairs).
  7078. func (c *ReferencesBasesListCall) PageSize(pageSize int64) *ReferencesBasesListCall {
  7079. c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7080. return c
  7081. }
  7082. // PageToken sets the optional parameter "pageToken": The continuation
  7083. // token, which is used to page through large result sets. To get the
  7084. // next page of results, set this parameter to the value of
  7085. // nextPageToken from the previous response.
  7086. func (c *ReferencesBasesListCall) PageToken(pageToken string) *ReferencesBasesListCall {
  7087. c.urlParams_.Set("pageToken", pageToken)
  7088. return c
  7089. }
  7090. // Start sets the optional parameter "start": The start position
  7091. // (0-based) of this query. Defaults to 0.
  7092. func (c *ReferencesBasesListCall) Start(start int64) *ReferencesBasesListCall {
  7093. c.urlParams_.Set("start", fmt.Sprint(start))
  7094. return c
  7095. }
  7096. // Fields allows partial responses to be retrieved. See
  7097. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7098. // for more information.
  7099. func (c *ReferencesBasesListCall) Fields(s ...googleapi.Field) *ReferencesBasesListCall {
  7100. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7101. return c
  7102. }
  7103. // IfNoneMatch sets the optional parameter which makes the operation
  7104. // fail if the object's ETag matches the given value. This is useful for
  7105. // getting updates only after the object has changed since the last
  7106. // request. Use googleapi.IsNotModified to check whether the response
  7107. // error from Do is the result of In-None-Match.
  7108. func (c *ReferencesBasesListCall) IfNoneMatch(entityTag string) *ReferencesBasesListCall {
  7109. c.ifNoneMatch_ = entityTag
  7110. return c
  7111. }
  7112. // Context sets the context to be used in this call's Do method. Any
  7113. // pending HTTP request will be aborted if the provided context is
  7114. // canceled.
  7115. func (c *ReferencesBasesListCall) Context(ctx context.Context) *ReferencesBasesListCall {
  7116. c.ctx_ = ctx
  7117. return c
  7118. }
  7119. func (c *ReferencesBasesListCall) doRequest(alt string) (*http.Response, error) {
  7120. var body io.Reader = nil
  7121. c.urlParams_.Set("alt", alt)
  7122. urls := googleapi.ResolveRelative(c.s.BasePath, "references/{referenceId}/bases")
  7123. urls += "?" + c.urlParams_.Encode()
  7124. req, _ := http.NewRequest("GET", urls, body)
  7125. googleapi.Expand(req.URL, map[string]string{
  7126. "referenceId": c.referenceId,
  7127. })
  7128. req.Header.Set("User-Agent", c.s.userAgent())
  7129. if c.ifNoneMatch_ != "" {
  7130. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  7131. }
  7132. if c.ctx_ != nil {
  7133. return ctxhttp.Do(c.ctx_, c.s.client, req)
  7134. }
  7135. return c.s.client.Do(req)
  7136. }
  7137. // Do executes the "genomics.references.bases.list" call.
  7138. // Exactly one of *ListBasesResponse or error will be non-nil. Any
  7139. // non-2xx status code is an error. Response headers are in either
  7140. // *ListBasesResponse.ServerResponse.Header or (if a response was
  7141. // returned at all) in error.(*googleapi.Error).Header. Use
  7142. // googleapi.IsNotModified to check whether the returned error was
  7143. // because http.StatusNotModified was returned.
  7144. func (c *ReferencesBasesListCall) Do(opts ...googleapi.CallOption) (*ListBasesResponse, error) {
  7145. gensupport.SetOptions(c.urlParams_, opts...)
  7146. res, err := c.doRequest("json")
  7147. if res != nil && res.StatusCode == http.StatusNotModified {
  7148. if res.Body != nil {
  7149. res.Body.Close()
  7150. }
  7151. return nil, &googleapi.Error{
  7152. Code: res.StatusCode,
  7153. Header: res.Header,
  7154. }
  7155. }
  7156. if err != nil {
  7157. return nil, err
  7158. }
  7159. defer googleapi.CloseBody(res)
  7160. if err := googleapi.CheckResponse(res); err != nil {
  7161. return nil, err
  7162. }
  7163. ret := &ListBasesResponse{
  7164. ServerResponse: googleapi.ServerResponse{
  7165. Header: res.Header,
  7166. HTTPStatusCode: res.StatusCode,
  7167. },
  7168. }
  7169. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  7170. return nil, err
  7171. }
  7172. return ret, nil
  7173. // {
  7174. // "description": "Lists the bases in a reference, optionally restricted to a range.\n\nImplements GlobalAllianceApi.getReferenceBases.",
  7175. // "httpMethod": "GET",
  7176. // "id": "genomics.references.bases.list",
  7177. // "parameterOrder": [
  7178. // "referenceId"
  7179. // ],
  7180. // "parameters": {
  7181. // "end": {
  7182. // "description": "The end position (0-based, exclusive) of this query. Defaults to the length of this reference.",
  7183. // "format": "int64",
  7184. // "location": "query",
  7185. // "type": "string"
  7186. // },
  7187. // "pageSize": {
  7188. // "description": "The maximum number of bases to return in a single page. If unspecified, defaults to 200Kbp (kilo base pairs). The maximum value is 10Mbp (mega base pairs).",
  7189. // "format": "int32",
  7190. // "location": "query",
  7191. // "type": "integer"
  7192. // },
  7193. // "pageToken": {
  7194. // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.",
  7195. // "location": "query",
  7196. // "type": "string"
  7197. // },
  7198. // "referenceId": {
  7199. // "description": "The ID of the reference.",
  7200. // "location": "path",
  7201. // "required": true,
  7202. // "type": "string"
  7203. // },
  7204. // "start": {
  7205. // "description": "The start position (0-based) of this query. Defaults to 0.",
  7206. // "format": "int64",
  7207. // "location": "query",
  7208. // "type": "string"
  7209. // }
  7210. // },
  7211. // "path": "references/{referenceId}/bases",
  7212. // "response": {
  7213. // "$ref": "ListBasesResponse"
  7214. // },
  7215. // "scopes": [
  7216. // "https://www.googleapis.com/auth/cloud-platform",
  7217. // "https://www.googleapis.com/auth/genomics",
  7218. // "https://www.googleapis.com/auth/genomics.readonly"
  7219. // ]
  7220. // }
  7221. }
  7222. // Pages invokes f for each page of results.
  7223. // A non-nil error returned from f will halt the iteration.
  7224. // The provided context supersedes any context provided to the Context method.
  7225. func (c *ReferencesBasesListCall) Pages(ctx context.Context, f func(*ListBasesResponse) error) error {
  7226. c.ctx_ = ctx
  7227. defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  7228. for {
  7229. x, err := c.Do()
  7230. if err != nil {
  7231. return err
  7232. }
  7233. if err := f(x); err != nil {
  7234. return err
  7235. }
  7236. if x.NextPageToken == "" {
  7237. return nil
  7238. }
  7239. c.PageToken(x.NextPageToken)
  7240. }
  7241. }
  7242. // method id "genomics.referencesets.get":
  7243. type ReferencesetsGetCall struct {
  7244. s *Service
  7245. referenceSetId string
  7246. urlParams_ gensupport.URLParams
  7247. ifNoneMatch_ string
  7248. ctx_ context.Context
  7249. }
  7250. // Get: Gets a reference set.
  7251. //
  7252. // Implements GlobalAllianceApi.getReferenceSet.
  7253. func (r *ReferencesetsService) Get(referenceSetId string) *ReferencesetsGetCall {
  7254. c := &ReferencesetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7255. c.referenceSetId = referenceSetId
  7256. return c
  7257. }
  7258. // Fields allows partial responses to be retrieved. See
  7259. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7260. // for more information.
  7261. func (c *ReferencesetsGetCall) Fields(s ...googleapi.Field) *ReferencesetsGetCall {
  7262. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7263. return c
  7264. }
  7265. // IfNoneMatch sets the optional parameter which makes the operation
  7266. // fail if the object's ETag matches the given value. This is useful for
  7267. // getting updates only after the object has changed since the last
  7268. // request. Use googleapi.IsNotModified to check whether the response
  7269. // error from Do is the result of In-None-Match.
  7270. func (c *ReferencesetsGetCall) IfNoneMatch(entityTag string) *ReferencesetsGetCall {
  7271. c.ifNoneMatch_ = entityTag
  7272. return c
  7273. }
  7274. // Context sets the context to be used in this call's Do method. Any
  7275. // pending HTTP request will be aborted if the provided context is
  7276. // canceled.
  7277. func (c *ReferencesetsGetCall) Context(ctx context.Context) *ReferencesetsGetCall {
  7278. c.ctx_ = ctx
  7279. return c
  7280. }
  7281. func (c *ReferencesetsGetCall) doRequest(alt string) (*http.Response, error) {
  7282. var body io.Reader = nil
  7283. c.urlParams_.Set("alt", alt)
  7284. urls := googleapi.ResolveRelative(c.s.BasePath, "referencesets/{referenceSetId}")
  7285. urls += "?" + c.urlParams_.Encode()
  7286. req, _ := http.NewRequest("GET", urls, body)
  7287. googleapi.Expand(req.URL, map[string]string{
  7288. "referenceSetId": c.referenceSetId,
  7289. })
  7290. req.Header.Set("User-Agent", c.s.userAgent())
  7291. if c.ifNoneMatch_ != "" {
  7292. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  7293. }
  7294. if c.ctx_ != nil {
  7295. return ctxhttp.Do(c.ctx_, c.s.client, req)
  7296. }
  7297. return c.s.client.Do(req)
  7298. }
  7299. // Do executes the "genomics.referencesets.get" call.
  7300. // Exactly one of *ReferenceSet or error will be non-nil. Any non-2xx
  7301. // status code is an error. Response headers are in either
  7302. // *ReferenceSet.ServerResponse.Header or (if a response was returned at
  7303. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  7304. // to check whether the returned error was because
  7305. // http.StatusNotModified was returned.
  7306. func (c *ReferencesetsGetCall) Do(opts ...googleapi.CallOption) (*ReferenceSet, error) {
  7307. gensupport.SetOptions(c.urlParams_, opts...)
  7308. res, err := c.doRequest("json")
  7309. if res != nil && res.StatusCode == http.StatusNotModified {
  7310. if res.Body != nil {
  7311. res.Body.Close()
  7312. }
  7313. return nil, &googleapi.Error{
  7314. Code: res.StatusCode,
  7315. Header: res.Header,
  7316. }
  7317. }
  7318. if err != nil {
  7319. return nil, err
  7320. }
  7321. defer googleapi.CloseBody(res)
  7322. if err := googleapi.CheckResponse(res); err != nil {
  7323. return nil, err
  7324. }
  7325. ret := &ReferenceSet{
  7326. ServerResponse: googleapi.ServerResponse{
  7327. Header: res.Header,
  7328. HTTPStatusCode: res.StatusCode,
  7329. },
  7330. }
  7331. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  7332. return nil, err
  7333. }
  7334. return ret, nil
  7335. // {
  7336. // "description": "Gets a reference set.\n\nImplements GlobalAllianceApi.getReferenceSet.",
  7337. // "httpMethod": "GET",
  7338. // "id": "genomics.referencesets.get",
  7339. // "parameterOrder": [
  7340. // "referenceSetId"
  7341. // ],
  7342. // "parameters": {
  7343. // "referenceSetId": {
  7344. // "description": "The ID of the reference set.",
  7345. // "location": "path",
  7346. // "required": true,
  7347. // "type": "string"
  7348. // }
  7349. // },
  7350. // "path": "referencesets/{referenceSetId}",
  7351. // "response": {
  7352. // "$ref": "ReferenceSet"
  7353. // },
  7354. // "scopes": [
  7355. // "https://www.googleapis.com/auth/cloud-platform",
  7356. // "https://www.googleapis.com/auth/genomics",
  7357. // "https://www.googleapis.com/auth/genomics.readonly"
  7358. // ]
  7359. // }
  7360. }
  7361. // method id "genomics.referencesets.search":
  7362. type ReferencesetsSearchCall struct {
  7363. s *Service
  7364. searchreferencesetsrequest *SearchReferenceSetsRequest
  7365. urlParams_ gensupport.URLParams
  7366. ctx_ context.Context
  7367. }
  7368. // Search: Searches for reference sets which match the given
  7369. // criteria.
  7370. //
  7371. // Implements GlobalAllianceApi.searchReferenceSets.
  7372. func (r *ReferencesetsService) Search(searchreferencesetsrequest *SearchReferenceSetsRequest) *ReferencesetsSearchCall {
  7373. c := &ReferencesetsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7374. c.searchreferencesetsrequest = searchreferencesetsrequest
  7375. return c
  7376. }
  7377. // Fields allows partial responses to be retrieved. See
  7378. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7379. // for more information.
  7380. func (c *ReferencesetsSearchCall) Fields(s ...googleapi.Field) *ReferencesetsSearchCall {
  7381. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7382. return c
  7383. }
  7384. // Context sets the context to be used in this call's Do method. Any
  7385. // pending HTTP request will be aborted if the provided context is
  7386. // canceled.
  7387. func (c *ReferencesetsSearchCall) Context(ctx context.Context) *ReferencesetsSearchCall {
  7388. c.ctx_ = ctx
  7389. return c
  7390. }
  7391. func (c *ReferencesetsSearchCall) doRequest(alt string) (*http.Response, error) {
  7392. var body io.Reader = nil
  7393. body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchreferencesetsrequest)
  7394. if err != nil {
  7395. return nil, err
  7396. }
  7397. ctype := "application/json"
  7398. c.urlParams_.Set("alt", alt)
  7399. urls := googleapi.ResolveRelative(c.s.BasePath, "referencesets/search")
  7400. urls += "?" + c.urlParams_.Encode()
  7401. req, _ := http.NewRequest("POST", urls, body)
  7402. googleapi.SetOpaque(req.URL)
  7403. req.Header.Set("Content-Type", ctype)
  7404. req.Header.Set("User-Agent", c.s.userAgent())
  7405. if c.ctx_ != nil {
  7406. return ctxhttp.Do(c.ctx_, c.s.client, req)
  7407. }
  7408. return c.s.client.Do(req)
  7409. }
  7410. // Do executes the "genomics.referencesets.search" call.
  7411. // Exactly one of *SearchReferenceSetsResponse or error will be non-nil.
  7412. // Any non-2xx status code is an error. Response headers are in either
  7413. // *SearchReferenceSetsResponse.ServerResponse.Header or (if a response
  7414. // was returned at all) in error.(*googleapi.Error).Header. Use
  7415. // googleapi.IsNotModified to check whether the returned error was
  7416. // because http.StatusNotModified was returned.
  7417. func (c *ReferencesetsSearchCall) Do(opts ...googleapi.CallOption) (*SearchReferenceSetsResponse, error) {
  7418. gensupport.SetOptions(c.urlParams_, opts...)
  7419. res, err := c.doRequest("json")
  7420. if res != nil && res.StatusCode == http.StatusNotModified {
  7421. if res.Body != nil {
  7422. res.Body.Close()
  7423. }
  7424. return nil, &googleapi.Error{
  7425. Code: res.StatusCode,
  7426. Header: res.Header,
  7427. }
  7428. }
  7429. if err != nil {
  7430. return nil, err
  7431. }
  7432. defer googleapi.CloseBody(res)
  7433. if err := googleapi.CheckResponse(res); err != nil {
  7434. return nil, err
  7435. }
  7436. ret := &SearchReferenceSetsResponse{
  7437. ServerResponse: googleapi.ServerResponse{
  7438. Header: res.Header,
  7439. HTTPStatusCode: res.StatusCode,
  7440. },
  7441. }
  7442. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  7443. return nil, err
  7444. }
  7445. return ret, nil
  7446. // {
  7447. // "description": "Searches for reference sets which match the given criteria.\n\nImplements GlobalAllianceApi.searchReferenceSets.",
  7448. // "httpMethod": "POST",
  7449. // "id": "genomics.referencesets.search",
  7450. // "path": "referencesets/search",
  7451. // "request": {
  7452. // "$ref": "SearchReferenceSetsRequest"
  7453. // },
  7454. // "response": {
  7455. // "$ref": "SearchReferenceSetsResponse"
  7456. // },
  7457. // "scopes": [
  7458. // "https://www.googleapis.com/auth/cloud-platform",
  7459. // "https://www.googleapis.com/auth/genomics",
  7460. // "https://www.googleapis.com/auth/genomics.readonly"
  7461. // ]
  7462. // }
  7463. }
  7464. // method id "genomics.variants.create":
  7465. type VariantsCreateCall struct {
  7466. s *Service
  7467. variant *Variant
  7468. urlParams_ gensupport.URLParams
  7469. ctx_ context.Context
  7470. }
  7471. // Create: Creates a new variant.
  7472. func (r *VariantsService) Create(variant *Variant) *VariantsCreateCall {
  7473. c := &VariantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7474. c.variant = variant
  7475. return c
  7476. }
  7477. // Fields allows partial responses to be retrieved. See
  7478. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7479. // for more information.
  7480. func (c *VariantsCreateCall) Fields(s ...googleapi.Field) *VariantsCreateCall {
  7481. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7482. return c
  7483. }
  7484. // Context sets the context to be used in this call's Do method. Any
  7485. // pending HTTP request will be aborted if the provided context is
  7486. // canceled.
  7487. func (c *VariantsCreateCall) Context(ctx context.Context) *VariantsCreateCall {
  7488. c.ctx_ = ctx
  7489. return c
  7490. }
  7491. func (c *VariantsCreateCall) doRequest(alt string) (*http.Response, error) {
  7492. var body io.Reader = nil
  7493. body, err := googleapi.WithoutDataWrapper.JSONReader(c.variant)
  7494. if err != nil {
  7495. return nil, err
  7496. }
  7497. ctype := "application/json"
  7498. c.urlParams_.Set("alt", alt)
  7499. urls := googleapi.ResolveRelative(c.s.BasePath, "variants")
  7500. urls += "?" + c.urlParams_.Encode()
  7501. req, _ := http.NewRequest("POST", urls, body)
  7502. googleapi.SetOpaque(req.URL)
  7503. req.Header.Set("Content-Type", ctype)
  7504. req.Header.Set("User-Agent", c.s.userAgent())
  7505. if c.ctx_ != nil {
  7506. return ctxhttp.Do(c.ctx_, c.s.client, req)
  7507. }
  7508. return c.s.client.Do(req)
  7509. }
  7510. // Do executes the "genomics.variants.create" call.
  7511. // Exactly one of *Variant or error will be non-nil. Any non-2xx status
  7512. // code is an error. Response headers are in either
  7513. // *Variant.ServerResponse.Header or (if a response was returned at all)
  7514. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7515. // check whether the returned error was because http.StatusNotModified
  7516. // was returned.
  7517. func (c *VariantsCreateCall) Do(opts ...googleapi.CallOption) (*Variant, error) {
  7518. gensupport.SetOptions(c.urlParams_, opts...)
  7519. res, err := c.doRequest("json")
  7520. if res != nil && res.StatusCode == http.StatusNotModified {
  7521. if res.Body != nil {
  7522. res.Body.Close()
  7523. }
  7524. return nil, &googleapi.Error{
  7525. Code: res.StatusCode,
  7526. Header: res.Header,
  7527. }
  7528. }
  7529. if err != nil {
  7530. return nil, err
  7531. }
  7532. defer googleapi.CloseBody(res)
  7533. if err := googleapi.CheckResponse(res); err != nil {
  7534. return nil, err
  7535. }
  7536. ret := &Variant{
  7537. ServerResponse: googleapi.ServerResponse{
  7538. Header: res.Header,
  7539. HTTPStatusCode: res.StatusCode,
  7540. },
  7541. }
  7542. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  7543. return nil, err
  7544. }
  7545. return ret, nil
  7546. // {
  7547. // "description": "Creates a new variant.",
  7548. // "httpMethod": "POST",
  7549. // "id": "genomics.variants.create",
  7550. // "path": "variants",
  7551. // "request": {
  7552. // "$ref": "Variant"
  7553. // },
  7554. // "response": {
  7555. // "$ref": "Variant"
  7556. // },
  7557. // "scopes": [
  7558. // "https://www.googleapis.com/auth/cloud-platform",
  7559. // "https://www.googleapis.com/auth/genomics"
  7560. // ]
  7561. // }
  7562. }
  7563. // method id "genomics.variants.delete":
  7564. type VariantsDeleteCall struct {
  7565. s *Service
  7566. variantId string
  7567. urlParams_ gensupport.URLParams
  7568. ctx_ context.Context
  7569. }
  7570. // Delete: Deletes a variant.
  7571. func (r *VariantsService) Delete(variantId string) *VariantsDeleteCall {
  7572. c := &VariantsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7573. c.variantId = variantId
  7574. return c
  7575. }
  7576. // Fields allows partial responses to be retrieved. See
  7577. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7578. // for more information.
  7579. func (c *VariantsDeleteCall) Fields(s ...googleapi.Field) *VariantsDeleteCall {
  7580. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7581. return c
  7582. }
  7583. // Context sets the context to be used in this call's Do method. Any
  7584. // pending HTTP request will be aborted if the provided context is
  7585. // canceled.
  7586. func (c *VariantsDeleteCall) Context(ctx context.Context) *VariantsDeleteCall {
  7587. c.ctx_ = ctx
  7588. return c
  7589. }
  7590. func (c *VariantsDeleteCall) doRequest(alt string) (*http.Response, error) {
  7591. var body io.Reader = nil
  7592. c.urlParams_.Set("alt", alt)
  7593. urls := googleapi.ResolveRelative(c.s.BasePath, "variants/{variantId}")
  7594. urls += "?" + c.urlParams_.Encode()
  7595. req, _ := http.NewRequest("DELETE", urls, body)
  7596. googleapi.Expand(req.URL, map[string]string{
  7597. "variantId": c.variantId,
  7598. })
  7599. req.Header.Set("User-Agent", c.s.userAgent())
  7600. if c.ctx_ != nil {
  7601. return ctxhttp.Do(c.ctx_, c.s.client, req)
  7602. }
  7603. return c.s.client.Do(req)
  7604. }
  7605. // Do executes the "genomics.variants.delete" call.
  7606. func (c *VariantsDeleteCall) Do(opts ...googleapi.CallOption) error {
  7607. gensupport.SetOptions(c.urlParams_, opts...)
  7608. res, err := c.doRequest("json")
  7609. if err != nil {
  7610. return err
  7611. }
  7612. defer googleapi.CloseBody(res)
  7613. if err := googleapi.CheckResponse(res); err != nil {
  7614. return err
  7615. }
  7616. return nil
  7617. // {
  7618. // "description": "Deletes a variant.",
  7619. // "httpMethod": "DELETE",
  7620. // "id": "genomics.variants.delete",
  7621. // "parameterOrder": [
  7622. // "variantId"
  7623. // ],
  7624. // "parameters": {
  7625. // "variantId": {
  7626. // "description": "The ID of the variant to be deleted.",
  7627. // "location": "path",
  7628. // "required": true,
  7629. // "type": "string"
  7630. // }
  7631. // },
  7632. // "path": "variants/{variantId}",
  7633. // "scopes": [
  7634. // "https://www.googleapis.com/auth/cloud-platform",
  7635. // "https://www.googleapis.com/auth/genomics"
  7636. // ]
  7637. // }
  7638. }
  7639. // method id "genomics.variants.get":
  7640. type VariantsGetCall struct {
  7641. s *Service
  7642. variantId string
  7643. urlParams_ gensupport.URLParams
  7644. ifNoneMatch_ string
  7645. ctx_ context.Context
  7646. }
  7647. // Get: Gets a variant by ID.
  7648. func (r *VariantsService) Get(variantId string) *VariantsGetCall {
  7649. c := &VariantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7650. c.variantId = variantId
  7651. return c
  7652. }
  7653. // Fields allows partial responses to be retrieved. See
  7654. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7655. // for more information.
  7656. func (c *VariantsGetCall) Fields(s ...googleapi.Field) *VariantsGetCall {
  7657. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7658. return c
  7659. }
  7660. // IfNoneMatch sets the optional parameter which makes the operation
  7661. // fail if the object's ETag matches the given value. This is useful for
  7662. // getting updates only after the object has changed since the last
  7663. // request. Use googleapi.IsNotModified to check whether the response
  7664. // error from Do is the result of In-None-Match.
  7665. func (c *VariantsGetCall) IfNoneMatch(entityTag string) *VariantsGetCall {
  7666. c.ifNoneMatch_ = entityTag
  7667. return c
  7668. }
  7669. // Context sets the context to be used in this call's Do method. Any
  7670. // pending HTTP request will be aborted if the provided context is
  7671. // canceled.
  7672. func (c *VariantsGetCall) Context(ctx context.Context) *VariantsGetCall {
  7673. c.ctx_ = ctx
  7674. return c
  7675. }
  7676. func (c *VariantsGetCall) doRequest(alt string) (*http.Response, error) {
  7677. var body io.Reader = nil
  7678. c.urlParams_.Set("alt", alt)
  7679. urls := googleapi.ResolveRelative(c.s.BasePath, "variants/{variantId}")
  7680. urls += "?" + c.urlParams_.Encode()
  7681. req, _ := http.NewRequest("GET", urls, body)
  7682. googleapi.Expand(req.URL, map[string]string{
  7683. "variantId": c.variantId,
  7684. })
  7685. req.Header.Set("User-Agent", c.s.userAgent())
  7686. if c.ifNoneMatch_ != "" {
  7687. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  7688. }
  7689. if c.ctx_ != nil {
  7690. return ctxhttp.Do(c.ctx_, c.s.client, req)
  7691. }
  7692. return c.s.client.Do(req)
  7693. }
  7694. // Do executes the "genomics.variants.get" call.
  7695. // Exactly one of *Variant or error will be non-nil. Any non-2xx status
  7696. // code is an error. Response headers are in either
  7697. // *Variant.ServerResponse.Header or (if a response was returned at all)
  7698. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7699. // check whether the returned error was because http.StatusNotModified
  7700. // was returned.
  7701. func (c *VariantsGetCall) Do(opts ...googleapi.CallOption) (*Variant, error) {
  7702. gensupport.SetOptions(c.urlParams_, opts...)
  7703. res, err := c.doRequest("json")
  7704. if res != nil && res.StatusCode == http.StatusNotModified {
  7705. if res.Body != nil {
  7706. res.Body.Close()
  7707. }
  7708. return nil, &googleapi.Error{
  7709. Code: res.StatusCode,
  7710. Header: res.Header,
  7711. }
  7712. }
  7713. if err != nil {
  7714. return nil, err
  7715. }
  7716. defer googleapi.CloseBody(res)
  7717. if err := googleapi.CheckResponse(res); err != nil {
  7718. return nil, err
  7719. }
  7720. ret := &Variant{
  7721. ServerResponse: googleapi.ServerResponse{
  7722. Header: res.Header,
  7723. HTTPStatusCode: res.StatusCode,
  7724. },
  7725. }
  7726. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  7727. return nil, err
  7728. }
  7729. return ret, nil
  7730. // {
  7731. // "description": "Gets a variant by ID.",
  7732. // "httpMethod": "GET",
  7733. // "id": "genomics.variants.get",
  7734. // "parameterOrder": [
  7735. // "variantId"
  7736. // ],
  7737. // "parameters": {
  7738. // "variantId": {
  7739. // "description": "The ID of the variant.",
  7740. // "location": "path",
  7741. // "required": true,
  7742. // "type": "string"
  7743. // }
  7744. // },
  7745. // "path": "variants/{variantId}",
  7746. // "response": {
  7747. // "$ref": "Variant"
  7748. // },
  7749. // "scopes": [
  7750. // "https://www.googleapis.com/auth/cloud-platform",
  7751. // "https://www.googleapis.com/auth/genomics",
  7752. // "https://www.googleapis.com/auth/genomics.readonly"
  7753. // ]
  7754. // }
  7755. }
  7756. // method id "genomics.variants.search":
  7757. type VariantsSearchCall struct {
  7758. s *Service
  7759. searchvariantsrequest *SearchVariantsRequest
  7760. urlParams_ gensupport.URLParams
  7761. ctx_ context.Context
  7762. }
  7763. // Search: Gets a list of variants matching the criteria.
  7764. //
  7765. // Implements GlobalAllianceApi.searchVariants.
  7766. func (r *VariantsService) Search(searchvariantsrequest *SearchVariantsRequest) *VariantsSearchCall {
  7767. c := &VariantsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7768. c.searchvariantsrequest = searchvariantsrequest
  7769. return c
  7770. }
  7771. // Fields allows partial responses to be retrieved. See
  7772. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7773. // for more information.
  7774. func (c *VariantsSearchCall) Fields(s ...googleapi.Field) *VariantsSearchCall {
  7775. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7776. return c
  7777. }
  7778. // Context sets the context to be used in this call's Do method. Any
  7779. // pending HTTP request will be aborted if the provided context is
  7780. // canceled.
  7781. func (c *VariantsSearchCall) Context(ctx context.Context) *VariantsSearchCall {
  7782. c.ctx_ = ctx
  7783. return c
  7784. }
  7785. func (c *VariantsSearchCall) doRequest(alt string) (*http.Response, error) {
  7786. var body io.Reader = nil
  7787. body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchvariantsrequest)
  7788. if err != nil {
  7789. return nil, err
  7790. }
  7791. ctype := "application/json"
  7792. c.urlParams_.Set("alt", alt)
  7793. urls := googleapi.ResolveRelative(c.s.BasePath, "variants/search")
  7794. urls += "?" + c.urlParams_.Encode()
  7795. req, _ := http.NewRequest("POST", urls, body)
  7796. googleapi.SetOpaque(req.URL)
  7797. req.Header.Set("Content-Type", ctype)
  7798. req.Header.Set("User-Agent", c.s.userAgent())
  7799. if c.ctx_ != nil {
  7800. return ctxhttp.Do(c.ctx_, c.s.client, req)
  7801. }
  7802. return c.s.client.Do(req)
  7803. }
  7804. // Do executes the "genomics.variants.search" call.
  7805. // Exactly one of *SearchVariantsResponse or error will be non-nil. Any
  7806. // non-2xx status code is an error. Response headers are in either
  7807. // *SearchVariantsResponse.ServerResponse.Header or (if a response was
  7808. // returned at all) in error.(*googleapi.Error).Header. Use
  7809. // googleapi.IsNotModified to check whether the returned error was
  7810. // because http.StatusNotModified was returned.
  7811. func (c *VariantsSearchCall) Do(opts ...googleapi.CallOption) (*SearchVariantsResponse, error) {
  7812. gensupport.SetOptions(c.urlParams_, opts...)
  7813. res, err := c.doRequest("json")
  7814. if res != nil && res.StatusCode == http.StatusNotModified {
  7815. if res.Body != nil {
  7816. res.Body.Close()
  7817. }
  7818. return nil, &googleapi.Error{
  7819. Code: res.StatusCode,
  7820. Header: res.Header,
  7821. }
  7822. }
  7823. if err != nil {
  7824. return nil, err
  7825. }
  7826. defer googleapi.CloseBody(res)
  7827. if err := googleapi.CheckResponse(res); err != nil {
  7828. return nil, err
  7829. }
  7830. ret := &SearchVariantsResponse{
  7831. ServerResponse: googleapi.ServerResponse{
  7832. Header: res.Header,
  7833. HTTPStatusCode: res.StatusCode,
  7834. },
  7835. }
  7836. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  7837. return nil, err
  7838. }
  7839. return ret, nil
  7840. // {
  7841. // "description": "Gets a list of variants matching the criteria.\n\nImplements GlobalAllianceApi.searchVariants.",
  7842. // "httpMethod": "POST",
  7843. // "id": "genomics.variants.search",
  7844. // "path": "variants/search",
  7845. // "request": {
  7846. // "$ref": "SearchVariantsRequest"
  7847. // },
  7848. // "response": {
  7849. // "$ref": "SearchVariantsResponse"
  7850. // },
  7851. // "scopes": [
  7852. // "https://www.googleapis.com/auth/cloud-platform",
  7853. // "https://www.googleapis.com/auth/genomics",
  7854. // "https://www.googleapis.com/auth/genomics.readonly"
  7855. // ]
  7856. // }
  7857. }
  7858. // method id "genomics.variants.update":
  7859. type VariantsUpdateCall struct {
  7860. s *Service
  7861. variantId string
  7862. variant *Variant
  7863. urlParams_ gensupport.URLParams
  7864. ctx_ context.Context
  7865. }
  7866. // Update: Updates a variant's names and info fields. All other
  7867. // modifications are silently ignored. Returns the modified variant
  7868. // without its calls.
  7869. func (r *VariantsService) Update(variantId string, variant *Variant) *VariantsUpdateCall {
  7870. c := &VariantsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7871. c.variantId = variantId
  7872. c.variant = variant
  7873. return c
  7874. }
  7875. // Fields allows partial responses to be retrieved. See
  7876. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7877. // for more information.
  7878. func (c *VariantsUpdateCall) Fields(s ...googleapi.Field) *VariantsUpdateCall {
  7879. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7880. return c
  7881. }
  7882. // Context sets the context to be used in this call's Do method. Any
  7883. // pending HTTP request will be aborted if the provided context is
  7884. // canceled.
  7885. func (c *VariantsUpdateCall) Context(ctx context.Context) *VariantsUpdateCall {
  7886. c.ctx_ = ctx
  7887. return c
  7888. }
  7889. func (c *VariantsUpdateCall) doRequest(alt string) (*http.Response, error) {
  7890. var body io.Reader = nil
  7891. body, err := googleapi.WithoutDataWrapper.JSONReader(c.variant)
  7892. if err != nil {
  7893. return nil, err
  7894. }
  7895. ctype := "application/json"
  7896. c.urlParams_.Set("alt", alt)
  7897. urls := googleapi.ResolveRelative(c.s.BasePath, "variants/{variantId}")
  7898. urls += "?" + c.urlParams_.Encode()
  7899. req, _ := http.NewRequest("PUT", urls, body)
  7900. googleapi.Expand(req.URL, map[string]string{
  7901. "variantId": c.variantId,
  7902. })
  7903. req.Header.Set("Content-Type", ctype)
  7904. req.Header.Set("User-Agent", c.s.userAgent())
  7905. if c.ctx_ != nil {
  7906. return ctxhttp.Do(c.ctx_, c.s.client, req)
  7907. }
  7908. return c.s.client.Do(req)
  7909. }
  7910. // Do executes the "genomics.variants.update" call.
  7911. // Exactly one of *Variant or error will be non-nil. Any non-2xx status
  7912. // code is an error. Response headers are in either
  7913. // *Variant.ServerResponse.Header or (if a response was returned at all)
  7914. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7915. // check whether the returned error was because http.StatusNotModified
  7916. // was returned.
  7917. func (c *VariantsUpdateCall) Do(opts ...googleapi.CallOption) (*Variant, error) {
  7918. gensupport.SetOptions(c.urlParams_, opts...)
  7919. res, err := c.doRequest("json")
  7920. if res != nil && res.StatusCode == http.StatusNotModified {
  7921. if res.Body != nil {
  7922. res.Body.Close()
  7923. }
  7924. return nil, &googleapi.Error{
  7925. Code: res.StatusCode,
  7926. Header: res.Header,
  7927. }
  7928. }
  7929. if err != nil {
  7930. return nil, err
  7931. }
  7932. defer googleapi.CloseBody(res)
  7933. if err := googleapi.CheckResponse(res); err != nil {
  7934. return nil, err
  7935. }
  7936. ret := &Variant{
  7937. ServerResponse: googleapi.ServerResponse{
  7938. Header: res.Header,
  7939. HTTPStatusCode: res.StatusCode,
  7940. },
  7941. }
  7942. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  7943. return nil, err
  7944. }
  7945. return ret, nil
  7946. // {
  7947. // "description": "Updates a variant's names and info fields. All other modifications are silently ignored. Returns the modified variant without its calls.",
  7948. // "httpMethod": "PUT",
  7949. // "id": "genomics.variants.update",
  7950. // "parameterOrder": [
  7951. // "variantId"
  7952. // ],
  7953. // "parameters": {
  7954. // "variantId": {
  7955. // "description": "The ID of the variant to be updated.",
  7956. // "location": "path",
  7957. // "required": true,
  7958. // "type": "string"
  7959. // }
  7960. // },
  7961. // "path": "variants/{variantId}",
  7962. // "request": {
  7963. // "$ref": "Variant"
  7964. // },
  7965. // "response": {
  7966. // "$ref": "Variant"
  7967. // },
  7968. // "scopes": [
  7969. // "https://www.googleapis.com/auth/cloud-platform",
  7970. // "https://www.googleapis.com/auth/genomics"
  7971. // ]
  7972. // }
  7973. }
  7974. // method id "genomics.variantsets.create":
  7975. type VariantsetsCreateCall struct {
  7976. s *Service
  7977. variantset *VariantSet
  7978. urlParams_ gensupport.URLParams
  7979. ctx_ context.Context
  7980. }
  7981. // Create: Creates a new variant set (only necessary in v1).
  7982. //
  7983. // The provided variant set must have a valid datasetId set - all other
  7984. // fields are optional. Note that the id field will be ignored, as this
  7985. // is assigned by the server.
  7986. func (r *VariantsetsService) Create(variantset *VariantSet) *VariantsetsCreateCall {
  7987. c := &VariantsetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7988. c.variantset = variantset
  7989. return c
  7990. }
  7991. // Fields allows partial responses to be retrieved. See
  7992. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7993. // for more information.
  7994. func (c *VariantsetsCreateCall) Fields(s ...googleapi.Field) *VariantsetsCreateCall {
  7995. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7996. return c
  7997. }
  7998. // Context sets the context to be used in this call's Do method. Any
  7999. // pending HTTP request will be aborted if the provided context is
  8000. // canceled.
  8001. func (c *VariantsetsCreateCall) Context(ctx context.Context) *VariantsetsCreateCall {
  8002. c.ctx_ = ctx
  8003. return c
  8004. }
  8005. func (c *VariantsetsCreateCall) doRequest(alt string) (*http.Response, error) {
  8006. var body io.Reader = nil
  8007. body, err := googleapi.WithoutDataWrapper.JSONReader(c.variantset)
  8008. if err != nil {
  8009. return nil, err
  8010. }
  8011. ctype := "application/json"
  8012. c.urlParams_.Set("alt", alt)
  8013. urls := googleapi.ResolveRelative(c.s.BasePath, "variantsets")
  8014. urls += "?" + c.urlParams_.Encode()
  8015. req, _ := http.NewRequest("POST", urls, body)
  8016. googleapi.SetOpaque(req.URL)
  8017. req.Header.Set("Content-Type", ctype)
  8018. req.Header.Set("User-Agent", c.s.userAgent())
  8019. if c.ctx_ != nil {
  8020. return ctxhttp.Do(c.ctx_, c.s.client, req)
  8021. }
  8022. return c.s.client.Do(req)
  8023. }
  8024. // Do executes the "genomics.variantsets.create" call.
  8025. // Exactly one of *VariantSet or error will be non-nil. Any non-2xx
  8026. // status code is an error. Response headers are in either
  8027. // *VariantSet.ServerResponse.Header or (if a response was returned at
  8028. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  8029. // to check whether the returned error was because
  8030. // http.StatusNotModified was returned.
  8031. func (c *VariantsetsCreateCall) Do(opts ...googleapi.CallOption) (*VariantSet, error) {
  8032. gensupport.SetOptions(c.urlParams_, opts...)
  8033. res, err := c.doRequest("json")
  8034. if res != nil && res.StatusCode == http.StatusNotModified {
  8035. if res.Body != nil {
  8036. res.Body.Close()
  8037. }
  8038. return nil, &googleapi.Error{
  8039. Code: res.StatusCode,
  8040. Header: res.Header,
  8041. }
  8042. }
  8043. if err != nil {
  8044. return nil, err
  8045. }
  8046. defer googleapi.CloseBody(res)
  8047. if err := googleapi.CheckResponse(res); err != nil {
  8048. return nil, err
  8049. }
  8050. ret := &VariantSet{
  8051. ServerResponse: googleapi.ServerResponse{
  8052. Header: res.Header,
  8053. HTTPStatusCode: res.StatusCode,
  8054. },
  8055. }
  8056. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  8057. return nil, err
  8058. }
  8059. return ret, nil
  8060. // {
  8061. // "description": "Creates a new variant set (only necessary in v1).\n\nThe provided variant set must have a valid datasetId set - all other fields are optional. Note that the id field will be ignored, as this is assigned by the server.",
  8062. // "httpMethod": "POST",
  8063. // "id": "genomics.variantsets.create",
  8064. // "path": "variantsets",
  8065. // "request": {
  8066. // "$ref": "VariantSet"
  8067. // },
  8068. // "response": {
  8069. // "$ref": "VariantSet"
  8070. // },
  8071. // "scopes": [
  8072. // "https://www.googleapis.com/auth/cloud-platform",
  8073. // "https://www.googleapis.com/auth/genomics"
  8074. // ]
  8075. // }
  8076. }
  8077. // method id "genomics.variantsets.delete":
  8078. type VariantsetsDeleteCall struct {
  8079. s *Service
  8080. variantSetId string
  8081. urlParams_ gensupport.URLParams
  8082. ctx_ context.Context
  8083. }
  8084. // Delete: Deletes the contents of a variant set. The variant set object
  8085. // is not deleted.
  8086. func (r *VariantsetsService) Delete(variantSetId string) *VariantsetsDeleteCall {
  8087. c := &VariantsetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8088. c.variantSetId = variantSetId
  8089. return c
  8090. }
  8091. // Fields allows partial responses to be retrieved. See
  8092. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8093. // for more information.
  8094. func (c *VariantsetsDeleteCall) Fields(s ...googleapi.Field) *VariantsetsDeleteCall {
  8095. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8096. return c
  8097. }
  8098. // Context sets the context to be used in this call's Do method. Any
  8099. // pending HTTP request will be aborted if the provided context is
  8100. // canceled.
  8101. func (c *VariantsetsDeleteCall) Context(ctx context.Context) *VariantsetsDeleteCall {
  8102. c.ctx_ = ctx
  8103. return c
  8104. }
  8105. func (c *VariantsetsDeleteCall) doRequest(alt string) (*http.Response, error) {
  8106. var body io.Reader = nil
  8107. c.urlParams_.Set("alt", alt)
  8108. urls := googleapi.ResolveRelative(c.s.BasePath, "variantsets/{variantSetId}")
  8109. urls += "?" + c.urlParams_.Encode()
  8110. req, _ := http.NewRequest("DELETE", urls, body)
  8111. googleapi.Expand(req.URL, map[string]string{
  8112. "variantSetId": c.variantSetId,
  8113. })
  8114. req.Header.Set("User-Agent", c.s.userAgent())
  8115. if c.ctx_ != nil {
  8116. return ctxhttp.Do(c.ctx_, c.s.client, req)
  8117. }
  8118. return c.s.client.Do(req)
  8119. }
  8120. // Do executes the "genomics.variantsets.delete" call.
  8121. func (c *VariantsetsDeleteCall) Do(opts ...googleapi.CallOption) error {
  8122. gensupport.SetOptions(c.urlParams_, opts...)
  8123. res, err := c.doRequest("json")
  8124. if err != nil {
  8125. return err
  8126. }
  8127. defer googleapi.CloseBody(res)
  8128. if err := googleapi.CheckResponse(res); err != nil {
  8129. return err
  8130. }
  8131. return nil
  8132. // {
  8133. // "description": "Deletes the contents of a variant set. The variant set object is not deleted.",
  8134. // "httpMethod": "DELETE",
  8135. // "id": "genomics.variantsets.delete",
  8136. // "parameterOrder": [
  8137. // "variantSetId"
  8138. // ],
  8139. // "parameters": {
  8140. // "variantSetId": {
  8141. // "description": "The ID of the variant set to be deleted.",
  8142. // "location": "path",
  8143. // "required": true,
  8144. // "type": "string"
  8145. // }
  8146. // },
  8147. // "path": "variantsets/{variantSetId}",
  8148. // "scopes": [
  8149. // "https://www.googleapis.com/auth/cloud-platform",
  8150. // "https://www.googleapis.com/auth/genomics"
  8151. // ]
  8152. // }
  8153. }
  8154. // method id "genomics.variantsets.export":
  8155. type VariantsetsExportCall struct {
  8156. s *Service
  8157. variantSetId string
  8158. exportvariantsetrequest *ExportVariantSetRequest
  8159. urlParams_ gensupport.URLParams
  8160. ctx_ context.Context
  8161. }
  8162. // Export: Exports variant set data to an external destination.
  8163. func (r *VariantsetsService) Export(variantSetId string, exportvariantsetrequest *ExportVariantSetRequest) *VariantsetsExportCall {
  8164. c := &VariantsetsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8165. c.variantSetId = variantSetId
  8166. c.exportvariantsetrequest = exportvariantsetrequest
  8167. return c
  8168. }
  8169. // Fields allows partial responses to be retrieved. See
  8170. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8171. // for more information.
  8172. func (c *VariantsetsExportCall) Fields(s ...googleapi.Field) *VariantsetsExportCall {
  8173. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8174. return c
  8175. }
  8176. // Context sets the context to be used in this call's Do method. Any
  8177. // pending HTTP request will be aborted if the provided context is
  8178. // canceled.
  8179. func (c *VariantsetsExportCall) Context(ctx context.Context) *VariantsetsExportCall {
  8180. c.ctx_ = ctx
  8181. return c
  8182. }
  8183. func (c *VariantsetsExportCall) doRequest(alt string) (*http.Response, error) {
  8184. var body io.Reader = nil
  8185. body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportvariantsetrequest)
  8186. if err != nil {
  8187. return nil, err
  8188. }
  8189. ctype := "application/json"
  8190. c.urlParams_.Set("alt", alt)
  8191. urls := googleapi.ResolveRelative(c.s.BasePath, "variantsets/{variantSetId}/export")
  8192. urls += "?" + c.urlParams_.Encode()
  8193. req, _ := http.NewRequest("POST", urls, body)
  8194. googleapi.Expand(req.URL, map[string]string{
  8195. "variantSetId": c.variantSetId,
  8196. })
  8197. req.Header.Set("Content-Type", ctype)
  8198. req.Header.Set("User-Agent", c.s.userAgent())
  8199. if c.ctx_ != nil {
  8200. return ctxhttp.Do(c.ctx_, c.s.client, req)
  8201. }
  8202. return c.s.client.Do(req)
  8203. }
  8204. // Do executes the "genomics.variantsets.export" call.
  8205. // Exactly one of *ExportVariantSetResponse or error will be non-nil.
  8206. // Any non-2xx status code is an error. Response headers are in either
  8207. // *ExportVariantSetResponse.ServerResponse.Header or (if a response was
  8208. // returned at all) in error.(*googleapi.Error).Header. Use
  8209. // googleapi.IsNotModified to check whether the returned error was
  8210. // because http.StatusNotModified was returned.
  8211. func (c *VariantsetsExportCall) Do(opts ...googleapi.CallOption) (*ExportVariantSetResponse, error) {
  8212. gensupport.SetOptions(c.urlParams_, opts...)
  8213. res, err := c.doRequest("json")
  8214. if res != nil && res.StatusCode == http.StatusNotModified {
  8215. if res.Body != nil {
  8216. res.Body.Close()
  8217. }
  8218. return nil, &googleapi.Error{
  8219. Code: res.StatusCode,
  8220. Header: res.Header,
  8221. }
  8222. }
  8223. if err != nil {
  8224. return nil, err
  8225. }
  8226. defer googleapi.CloseBody(res)
  8227. if err := googleapi.CheckResponse(res); err != nil {
  8228. return nil, err
  8229. }
  8230. ret := &ExportVariantSetResponse{
  8231. ServerResponse: googleapi.ServerResponse{
  8232. Header: res.Header,
  8233. HTTPStatusCode: res.StatusCode,
  8234. },
  8235. }
  8236. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  8237. return nil, err
  8238. }
  8239. return ret, nil
  8240. // {
  8241. // "description": "Exports variant set data to an external destination.",
  8242. // "httpMethod": "POST",
  8243. // "id": "genomics.variantsets.export",
  8244. // "parameterOrder": [
  8245. // "variantSetId"
  8246. // ],
  8247. // "parameters": {
  8248. // "variantSetId": {
  8249. // "description": "Required. The ID of the variant set that contains variant data which should be exported. The caller must have READ access to this variant set.",
  8250. // "location": "path",
  8251. // "required": true,
  8252. // "type": "string"
  8253. // }
  8254. // },
  8255. // "path": "variantsets/{variantSetId}/export",
  8256. // "request": {
  8257. // "$ref": "ExportVariantSetRequest"
  8258. // },
  8259. // "response": {
  8260. // "$ref": "ExportVariantSetResponse"
  8261. // },
  8262. // "scopes": [
  8263. // "https://www.googleapis.com/auth/bigquery",
  8264. // "https://www.googleapis.com/auth/cloud-platform",
  8265. // "https://www.googleapis.com/auth/genomics"
  8266. // ]
  8267. // }
  8268. }
  8269. // method id "genomics.variantsets.get":
  8270. type VariantsetsGetCall struct {
  8271. s *Service
  8272. variantSetId string
  8273. urlParams_ gensupport.URLParams
  8274. ifNoneMatch_ string
  8275. ctx_ context.Context
  8276. }
  8277. // Get: Gets a variant set by ID.
  8278. func (r *VariantsetsService) Get(variantSetId string) *VariantsetsGetCall {
  8279. c := &VariantsetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8280. c.variantSetId = variantSetId
  8281. return c
  8282. }
  8283. // Fields allows partial responses to be retrieved. See
  8284. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8285. // for more information.
  8286. func (c *VariantsetsGetCall) Fields(s ...googleapi.Field) *VariantsetsGetCall {
  8287. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8288. return c
  8289. }
  8290. // IfNoneMatch sets the optional parameter which makes the operation
  8291. // fail if the object's ETag matches the given value. This is useful for
  8292. // getting updates only after the object has changed since the last
  8293. // request. Use googleapi.IsNotModified to check whether the response
  8294. // error from Do is the result of In-None-Match.
  8295. func (c *VariantsetsGetCall) IfNoneMatch(entityTag string) *VariantsetsGetCall {
  8296. c.ifNoneMatch_ = entityTag
  8297. return c
  8298. }
  8299. // Context sets the context to be used in this call's Do method. Any
  8300. // pending HTTP request will be aborted if the provided context is
  8301. // canceled.
  8302. func (c *VariantsetsGetCall) Context(ctx context.Context) *VariantsetsGetCall {
  8303. c.ctx_ = ctx
  8304. return c
  8305. }
  8306. func (c *VariantsetsGetCall) doRequest(alt string) (*http.Response, error) {
  8307. var body io.Reader = nil
  8308. c.urlParams_.Set("alt", alt)
  8309. urls := googleapi.ResolveRelative(c.s.BasePath, "variantsets/{variantSetId}")
  8310. urls += "?" + c.urlParams_.Encode()
  8311. req, _ := http.NewRequest("GET", urls, body)
  8312. googleapi.Expand(req.URL, map[string]string{
  8313. "variantSetId": c.variantSetId,
  8314. })
  8315. req.Header.Set("User-Agent", c.s.userAgent())
  8316. if c.ifNoneMatch_ != "" {
  8317. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  8318. }
  8319. if c.ctx_ != nil {
  8320. return ctxhttp.Do(c.ctx_, c.s.client, req)
  8321. }
  8322. return c.s.client.Do(req)
  8323. }
  8324. // Do executes the "genomics.variantsets.get" call.
  8325. // Exactly one of *VariantSet or error will be non-nil. Any non-2xx
  8326. // status code is an error. Response headers are in either
  8327. // *VariantSet.ServerResponse.Header or (if a response was returned at
  8328. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  8329. // to check whether the returned error was because
  8330. // http.StatusNotModified was returned.
  8331. func (c *VariantsetsGetCall) Do(opts ...googleapi.CallOption) (*VariantSet, error) {
  8332. gensupport.SetOptions(c.urlParams_, opts...)
  8333. res, err := c.doRequest("json")
  8334. if res != nil && res.StatusCode == http.StatusNotModified {
  8335. if res.Body != nil {
  8336. res.Body.Close()
  8337. }
  8338. return nil, &googleapi.Error{
  8339. Code: res.StatusCode,
  8340. Header: res.Header,
  8341. }
  8342. }
  8343. if err != nil {
  8344. return nil, err
  8345. }
  8346. defer googleapi.CloseBody(res)
  8347. if err := googleapi.CheckResponse(res); err != nil {
  8348. return nil, err
  8349. }
  8350. ret := &VariantSet{
  8351. ServerResponse: googleapi.ServerResponse{
  8352. Header: res.Header,
  8353. HTTPStatusCode: res.StatusCode,
  8354. },
  8355. }
  8356. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  8357. return nil, err
  8358. }
  8359. return ret, nil
  8360. // {
  8361. // "description": "Gets a variant set by ID.",
  8362. // "httpMethod": "GET",
  8363. // "id": "genomics.variantsets.get",
  8364. // "parameterOrder": [
  8365. // "variantSetId"
  8366. // ],
  8367. // "parameters": {
  8368. // "variantSetId": {
  8369. // "description": "Required. The ID of the variant set.",
  8370. // "location": "path",
  8371. // "required": true,
  8372. // "type": "string"
  8373. // }
  8374. // },
  8375. // "path": "variantsets/{variantSetId}",
  8376. // "response": {
  8377. // "$ref": "VariantSet"
  8378. // },
  8379. // "scopes": [
  8380. // "https://www.googleapis.com/auth/cloud-platform",
  8381. // "https://www.googleapis.com/auth/genomics",
  8382. // "https://www.googleapis.com/auth/genomics.readonly"
  8383. // ]
  8384. // }
  8385. }
  8386. // method id "genomics.variantsets.importVariants":
  8387. type VariantsetsImportVariantsCall struct {
  8388. s *Service
  8389. variantSetId string
  8390. importvariantsrequest *ImportVariantsRequest
  8391. urlParams_ gensupport.URLParams
  8392. ctx_ context.Context
  8393. }
  8394. // ImportVariants: Creates variant data by asynchronously importing the
  8395. // provided information.
  8396. //
  8397. // The variants for import will be merged with any existing data and
  8398. // each other according to the behavior of mergeVariants. In particular,
  8399. // this means for merged VCF variants that have conflicting INFO fields,
  8400. // some data will be arbitrarily discarded. As a special case, for
  8401. // single-sample VCF files, QUAL and FILTER fields will be moved to the
  8402. // call level; these are sometimes interpreted in a call-specific
  8403. // context. Imported VCF headers are appended to the metadata already in
  8404. // a variant set.
  8405. func (r *VariantsetsService) ImportVariants(variantSetId string, importvariantsrequest *ImportVariantsRequest) *VariantsetsImportVariantsCall {
  8406. c := &VariantsetsImportVariantsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8407. c.variantSetId = variantSetId
  8408. c.importvariantsrequest = importvariantsrequest
  8409. return c
  8410. }
  8411. // Fields allows partial responses to be retrieved. See
  8412. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8413. // for more information.
  8414. func (c *VariantsetsImportVariantsCall) Fields(s ...googleapi.Field) *VariantsetsImportVariantsCall {
  8415. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8416. return c
  8417. }
  8418. // Context sets the context to be used in this call's Do method. Any
  8419. // pending HTTP request will be aborted if the provided context is
  8420. // canceled.
  8421. func (c *VariantsetsImportVariantsCall) Context(ctx context.Context) *VariantsetsImportVariantsCall {
  8422. c.ctx_ = ctx
  8423. return c
  8424. }
  8425. func (c *VariantsetsImportVariantsCall) doRequest(alt string) (*http.Response, error) {
  8426. var body io.Reader = nil
  8427. body, err := googleapi.WithoutDataWrapper.JSONReader(c.importvariantsrequest)
  8428. if err != nil {
  8429. return nil, err
  8430. }
  8431. ctype := "application/json"
  8432. c.urlParams_.Set("alt", alt)
  8433. urls := googleapi.ResolveRelative(c.s.BasePath, "variantsets/{variantSetId}/importVariants")
  8434. urls += "?" + c.urlParams_.Encode()
  8435. req, _ := http.NewRequest("POST", urls, body)
  8436. googleapi.Expand(req.URL, map[string]string{
  8437. "variantSetId": c.variantSetId,
  8438. })
  8439. req.Header.Set("Content-Type", ctype)
  8440. req.Header.Set("User-Agent", c.s.userAgent())
  8441. if c.ctx_ != nil {
  8442. return ctxhttp.Do(c.ctx_, c.s.client, req)
  8443. }
  8444. return c.s.client.Do(req)
  8445. }
  8446. // Do executes the "genomics.variantsets.importVariants" call.
  8447. // Exactly one of *ImportVariantsResponse or error will be non-nil. Any
  8448. // non-2xx status code is an error. Response headers are in either
  8449. // *ImportVariantsResponse.ServerResponse.Header or (if a response was
  8450. // returned at all) in error.(*googleapi.Error).Header. Use
  8451. // googleapi.IsNotModified to check whether the returned error was
  8452. // because http.StatusNotModified was returned.
  8453. func (c *VariantsetsImportVariantsCall) Do(opts ...googleapi.CallOption) (*ImportVariantsResponse, error) {
  8454. gensupport.SetOptions(c.urlParams_, opts...)
  8455. res, err := c.doRequest("json")
  8456. if res != nil && res.StatusCode == http.StatusNotModified {
  8457. if res.Body != nil {
  8458. res.Body.Close()
  8459. }
  8460. return nil, &googleapi.Error{
  8461. Code: res.StatusCode,
  8462. Header: res.Header,
  8463. }
  8464. }
  8465. if err != nil {
  8466. return nil, err
  8467. }
  8468. defer googleapi.CloseBody(res)
  8469. if err := googleapi.CheckResponse(res); err != nil {
  8470. return nil, err
  8471. }
  8472. ret := &ImportVariantsResponse{
  8473. ServerResponse: googleapi.ServerResponse{
  8474. Header: res.Header,
  8475. HTTPStatusCode: res.StatusCode,
  8476. },
  8477. }
  8478. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  8479. return nil, err
  8480. }
  8481. return ret, nil
  8482. // {
  8483. // "description": "Creates variant data by asynchronously importing the provided information.\n\nThe variants for import will be merged with any existing data and each other according to the behavior of mergeVariants. In particular, this means for merged VCF variants that have conflicting INFO fields, some data will be arbitrarily discarded. As a special case, for single-sample VCF files, QUAL and FILTER fields will be moved to the call level; these are sometimes interpreted in a call-specific context. Imported VCF headers are appended to the metadata already in a variant set.",
  8484. // "httpMethod": "POST",
  8485. // "id": "genomics.variantsets.importVariants",
  8486. // "parameterOrder": [
  8487. // "variantSetId"
  8488. // ],
  8489. // "parameters": {
  8490. // "variantSetId": {
  8491. // "description": "Required. The variant set to which variant data should be imported.",
  8492. // "location": "path",
  8493. // "required": true,
  8494. // "type": "string"
  8495. // }
  8496. // },
  8497. // "path": "variantsets/{variantSetId}/importVariants",
  8498. // "request": {
  8499. // "$ref": "ImportVariantsRequest"
  8500. // },
  8501. // "response": {
  8502. // "$ref": "ImportVariantsResponse"
  8503. // },
  8504. // "scopes": [
  8505. // "https://www.googleapis.com/auth/cloud-platform",
  8506. // "https://www.googleapis.com/auth/devstorage.read_write",
  8507. // "https://www.googleapis.com/auth/genomics"
  8508. // ]
  8509. // }
  8510. }
  8511. // method id "genomics.variantsets.mergeVariants":
  8512. type VariantsetsMergeVariantsCall struct {
  8513. s *Service
  8514. variantSetId string
  8515. mergevariantsrequest *MergeVariantsRequest
  8516. urlParams_ gensupport.URLParams
  8517. ctx_ context.Context
  8518. }
  8519. // MergeVariants: Merges the given variants with existing variants. Each
  8520. // variant will be merged with an existing variant that matches its
  8521. // reference sequence, start, end, reference bases, and alternative
  8522. // bases. If no such variant exists, a new one will be created.
  8523. //
  8524. // When variants are merged, the call information from the new variant
  8525. // is added to the existing variant, and other fields (such as key/value
  8526. // pairs) are discarded.
  8527. func (r *VariantsetsService) MergeVariants(variantSetId string, mergevariantsrequest *MergeVariantsRequest) *VariantsetsMergeVariantsCall {
  8528. c := &VariantsetsMergeVariantsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8529. c.variantSetId = variantSetId
  8530. c.mergevariantsrequest = mergevariantsrequest
  8531. return c
  8532. }
  8533. // Fields allows partial responses to be retrieved. See
  8534. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8535. // for more information.
  8536. func (c *VariantsetsMergeVariantsCall) Fields(s ...googleapi.Field) *VariantsetsMergeVariantsCall {
  8537. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8538. return c
  8539. }
  8540. // Context sets the context to be used in this call's Do method. Any
  8541. // pending HTTP request will be aborted if the provided context is
  8542. // canceled.
  8543. func (c *VariantsetsMergeVariantsCall) Context(ctx context.Context) *VariantsetsMergeVariantsCall {
  8544. c.ctx_ = ctx
  8545. return c
  8546. }
  8547. func (c *VariantsetsMergeVariantsCall) doRequest(alt string) (*http.Response, error) {
  8548. var body io.Reader = nil
  8549. body, err := googleapi.WithoutDataWrapper.JSONReader(c.mergevariantsrequest)
  8550. if err != nil {
  8551. return nil, err
  8552. }
  8553. ctype := "application/json"
  8554. c.urlParams_.Set("alt", alt)
  8555. urls := googleapi.ResolveRelative(c.s.BasePath, "variantsets/{variantSetId}/mergeVariants")
  8556. urls += "?" + c.urlParams_.Encode()
  8557. req, _ := http.NewRequest("POST", urls, body)
  8558. googleapi.Expand(req.URL, map[string]string{
  8559. "variantSetId": c.variantSetId,
  8560. })
  8561. req.Header.Set("Content-Type", ctype)
  8562. req.Header.Set("User-Agent", c.s.userAgent())
  8563. if c.ctx_ != nil {
  8564. return ctxhttp.Do(c.ctx_, c.s.client, req)
  8565. }
  8566. return c.s.client.Do(req)
  8567. }
  8568. // Do executes the "genomics.variantsets.mergeVariants" call.
  8569. func (c *VariantsetsMergeVariantsCall) Do(opts ...googleapi.CallOption) error {
  8570. gensupport.SetOptions(c.urlParams_, opts...)
  8571. res, err := c.doRequest("json")
  8572. if err != nil {
  8573. return err
  8574. }
  8575. defer googleapi.CloseBody(res)
  8576. if err := googleapi.CheckResponse(res); err != nil {
  8577. return err
  8578. }
  8579. return nil
  8580. // {
  8581. // "description": "Merges the given variants with existing variants. Each variant will be merged with an existing variant that matches its reference sequence, start, end, reference bases, and alternative bases. If no such variant exists, a new one will be created.\n\nWhen variants are merged, the call information from the new variant is added to the existing variant, and other fields (such as key/value pairs) are discarded.",
  8582. // "httpMethod": "POST",
  8583. // "id": "genomics.variantsets.mergeVariants",
  8584. // "parameterOrder": [
  8585. // "variantSetId"
  8586. // ],
  8587. // "parameters": {
  8588. // "variantSetId": {
  8589. // "description": "The destination variant set.",
  8590. // "location": "path",
  8591. // "required": true,
  8592. // "type": "string"
  8593. // }
  8594. // },
  8595. // "path": "variantsets/{variantSetId}/mergeVariants",
  8596. // "request": {
  8597. // "$ref": "MergeVariantsRequest"
  8598. // },
  8599. // "scopes": [
  8600. // "https://www.googleapis.com/auth/cloud-platform",
  8601. // "https://www.googleapis.com/auth/genomics"
  8602. // ]
  8603. // }
  8604. }
  8605. // method id "genomics.variantsets.patch":
  8606. type VariantsetsPatchCall struct {
  8607. s *Service
  8608. variantSetId string
  8609. variantset *VariantSet
  8610. urlParams_ gensupport.URLParams
  8611. ctx_ context.Context
  8612. }
  8613. // Patch: Updates a variant set's metadata. All other modifications are
  8614. // silently ignored. This method supports patch semantics.
  8615. func (r *VariantsetsService) Patch(variantSetId string, variantset *VariantSet) *VariantsetsPatchCall {
  8616. c := &VariantsetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8617. c.variantSetId = variantSetId
  8618. c.variantset = variantset
  8619. return c
  8620. }
  8621. // Fields allows partial responses to be retrieved. See
  8622. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8623. // for more information.
  8624. func (c *VariantsetsPatchCall) Fields(s ...googleapi.Field) *VariantsetsPatchCall {
  8625. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8626. return c
  8627. }
  8628. // Context sets the context to be used in this call's Do method. Any
  8629. // pending HTTP request will be aborted if the provided context is
  8630. // canceled.
  8631. func (c *VariantsetsPatchCall) Context(ctx context.Context) *VariantsetsPatchCall {
  8632. c.ctx_ = ctx
  8633. return c
  8634. }
  8635. func (c *VariantsetsPatchCall) doRequest(alt string) (*http.Response, error) {
  8636. var body io.Reader = nil
  8637. body, err := googleapi.WithoutDataWrapper.JSONReader(c.variantset)
  8638. if err != nil {
  8639. return nil, err
  8640. }
  8641. ctype := "application/json"
  8642. c.urlParams_.Set("alt", alt)
  8643. urls := googleapi.ResolveRelative(c.s.BasePath, "variantsets/{variantSetId}")
  8644. urls += "?" + c.urlParams_.Encode()
  8645. req, _ := http.NewRequest("PATCH", urls, body)
  8646. googleapi.Expand(req.URL, map[string]string{
  8647. "variantSetId": c.variantSetId,
  8648. })
  8649. req.Header.Set("Content-Type", ctype)
  8650. req.Header.Set("User-Agent", c.s.userAgent())
  8651. if c.ctx_ != nil {
  8652. return ctxhttp.Do(c.ctx_, c.s.client, req)
  8653. }
  8654. return c.s.client.Do(req)
  8655. }
  8656. // Do executes the "genomics.variantsets.patch" call.
  8657. // Exactly one of *VariantSet or error will be non-nil. Any non-2xx
  8658. // status code is an error. Response headers are in either
  8659. // *VariantSet.ServerResponse.Header or (if a response was returned at
  8660. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  8661. // to check whether the returned error was because
  8662. // http.StatusNotModified was returned.
  8663. func (c *VariantsetsPatchCall) Do(opts ...googleapi.CallOption) (*VariantSet, error) {
  8664. gensupport.SetOptions(c.urlParams_, opts...)
  8665. res, err := c.doRequest("json")
  8666. if res != nil && res.StatusCode == http.StatusNotModified {
  8667. if res.Body != nil {
  8668. res.Body.Close()
  8669. }
  8670. return nil, &googleapi.Error{
  8671. Code: res.StatusCode,
  8672. Header: res.Header,
  8673. }
  8674. }
  8675. if err != nil {
  8676. return nil, err
  8677. }
  8678. defer googleapi.CloseBody(res)
  8679. if err := googleapi.CheckResponse(res); err != nil {
  8680. return nil, err
  8681. }
  8682. ret := &VariantSet{
  8683. ServerResponse: googleapi.ServerResponse{
  8684. Header: res.Header,
  8685. HTTPStatusCode: res.StatusCode,
  8686. },
  8687. }
  8688. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  8689. return nil, err
  8690. }
  8691. return ret, nil
  8692. // {
  8693. // "description": "Updates a variant set's metadata. All other modifications are silently ignored. This method supports patch semantics.",
  8694. // "httpMethod": "PATCH",
  8695. // "id": "genomics.variantsets.patch",
  8696. // "parameterOrder": [
  8697. // "variantSetId"
  8698. // ],
  8699. // "parameters": {
  8700. // "variantSetId": {
  8701. // "description": "The ID of the variant to be updated (must already exist).",
  8702. // "location": "path",
  8703. // "required": true,
  8704. // "type": "string"
  8705. // }
  8706. // },
  8707. // "path": "variantsets/{variantSetId}",
  8708. // "request": {
  8709. // "$ref": "VariantSet"
  8710. // },
  8711. // "response": {
  8712. // "$ref": "VariantSet"
  8713. // },
  8714. // "scopes": [
  8715. // "https://www.googleapis.com/auth/cloud-platform",
  8716. // "https://www.googleapis.com/auth/genomics"
  8717. // ]
  8718. // }
  8719. }
  8720. // method id "genomics.variantsets.search":
  8721. type VariantsetsSearchCall struct {
  8722. s *Service
  8723. searchvariantsetsrequest *SearchVariantSetsRequest
  8724. urlParams_ gensupport.URLParams
  8725. ctx_ context.Context
  8726. }
  8727. // Search: Returns a list of all variant sets matching search
  8728. // criteria.
  8729. //
  8730. // Implements GlobalAllianceApi.searchVariantSets.
  8731. func (r *VariantsetsService) Search(searchvariantsetsrequest *SearchVariantSetsRequest) *VariantsetsSearchCall {
  8732. c := &VariantsetsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8733. c.searchvariantsetsrequest = searchvariantsetsrequest
  8734. return c
  8735. }
  8736. // Fields allows partial responses to be retrieved. See
  8737. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8738. // for more information.
  8739. func (c *VariantsetsSearchCall) Fields(s ...googleapi.Field) *VariantsetsSearchCall {
  8740. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8741. return c
  8742. }
  8743. // Context sets the context to be used in this call's Do method. Any
  8744. // pending HTTP request will be aborted if the provided context is
  8745. // canceled.
  8746. func (c *VariantsetsSearchCall) Context(ctx context.Context) *VariantsetsSearchCall {
  8747. c.ctx_ = ctx
  8748. return c
  8749. }
  8750. func (c *VariantsetsSearchCall) doRequest(alt string) (*http.Response, error) {
  8751. var body io.Reader = nil
  8752. body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchvariantsetsrequest)
  8753. if err != nil {
  8754. return nil, err
  8755. }
  8756. ctype := "application/json"
  8757. c.urlParams_.Set("alt", alt)
  8758. urls := googleapi.ResolveRelative(c.s.BasePath, "variantsets/search")
  8759. urls += "?" + c.urlParams_.Encode()
  8760. req, _ := http.NewRequest("POST", urls, body)
  8761. googleapi.SetOpaque(req.URL)
  8762. req.Header.Set("Content-Type", ctype)
  8763. req.Header.Set("User-Agent", c.s.userAgent())
  8764. if c.ctx_ != nil {
  8765. return ctxhttp.Do(c.ctx_, c.s.client, req)
  8766. }
  8767. return c.s.client.Do(req)
  8768. }
  8769. // Do executes the "genomics.variantsets.search" call.
  8770. // Exactly one of *SearchVariantSetsResponse or error will be non-nil.
  8771. // Any non-2xx status code is an error. Response headers are in either
  8772. // *SearchVariantSetsResponse.ServerResponse.Header or (if a response
  8773. // was returned at all) in error.(*googleapi.Error).Header. Use
  8774. // googleapi.IsNotModified to check whether the returned error was
  8775. // because http.StatusNotModified was returned.
  8776. func (c *VariantsetsSearchCall) Do(opts ...googleapi.CallOption) (*SearchVariantSetsResponse, error) {
  8777. gensupport.SetOptions(c.urlParams_, opts...)
  8778. res, err := c.doRequest("json")
  8779. if res != nil && res.StatusCode == http.StatusNotModified {
  8780. if res.Body != nil {
  8781. res.Body.Close()
  8782. }
  8783. return nil, &googleapi.Error{
  8784. Code: res.StatusCode,
  8785. Header: res.Header,
  8786. }
  8787. }
  8788. if err != nil {
  8789. return nil, err
  8790. }
  8791. defer googleapi.CloseBody(res)
  8792. if err := googleapi.CheckResponse(res); err != nil {
  8793. return nil, err
  8794. }
  8795. ret := &SearchVariantSetsResponse{
  8796. ServerResponse: googleapi.ServerResponse{
  8797. Header: res.Header,
  8798. HTTPStatusCode: res.StatusCode,
  8799. },
  8800. }
  8801. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  8802. return nil, err
  8803. }
  8804. return ret, nil
  8805. // {
  8806. // "description": "Returns a list of all variant sets matching search criteria.\n\nImplements GlobalAllianceApi.searchVariantSets.",
  8807. // "httpMethod": "POST",
  8808. // "id": "genomics.variantsets.search",
  8809. // "path": "variantsets/search",
  8810. // "request": {
  8811. // "$ref": "SearchVariantSetsRequest"
  8812. // },
  8813. // "response": {
  8814. // "$ref": "SearchVariantSetsResponse"
  8815. // },
  8816. // "scopes": [
  8817. // "https://www.googleapis.com/auth/cloud-platform",
  8818. // "https://www.googleapis.com/auth/genomics",
  8819. // "https://www.googleapis.com/auth/genomics.readonly"
  8820. // ]
  8821. // }
  8822. }
  8823. // method id "genomics.variantsets.update":
  8824. type VariantsetsUpdateCall struct {
  8825. s *Service
  8826. variantSetId string
  8827. variantset *VariantSet
  8828. urlParams_ gensupport.URLParams
  8829. ctx_ context.Context
  8830. }
  8831. // Update: Updates a variant set's metadata. All other modifications are
  8832. // silently ignored.
  8833. func (r *VariantsetsService) Update(variantSetId string, variantset *VariantSet) *VariantsetsUpdateCall {
  8834. c := &VariantsetsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8835. c.variantSetId = variantSetId
  8836. c.variantset = variantset
  8837. return c
  8838. }
  8839. // Fields allows partial responses to be retrieved. See
  8840. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8841. // for more information.
  8842. func (c *VariantsetsUpdateCall) Fields(s ...googleapi.Field) *VariantsetsUpdateCall {
  8843. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8844. return c
  8845. }
  8846. // Context sets the context to be used in this call's Do method. Any
  8847. // pending HTTP request will be aborted if the provided context is
  8848. // canceled.
  8849. func (c *VariantsetsUpdateCall) Context(ctx context.Context) *VariantsetsUpdateCall {
  8850. c.ctx_ = ctx
  8851. return c
  8852. }
  8853. func (c *VariantsetsUpdateCall) doRequest(alt string) (*http.Response, error) {
  8854. var body io.Reader = nil
  8855. body, err := googleapi.WithoutDataWrapper.JSONReader(c.variantset)
  8856. if err != nil {
  8857. return nil, err
  8858. }
  8859. ctype := "application/json"
  8860. c.urlParams_.Set("alt", alt)
  8861. urls := googleapi.ResolveRelative(c.s.BasePath, "variantsets/{variantSetId}")
  8862. urls += "?" + c.urlParams_.Encode()
  8863. req, _ := http.NewRequest("PUT", urls, body)
  8864. googleapi.Expand(req.URL, map[string]string{
  8865. "variantSetId": c.variantSetId,
  8866. })
  8867. req.Header.Set("Content-Type", ctype)
  8868. req.Header.Set("User-Agent", c.s.userAgent())
  8869. if c.ctx_ != nil {
  8870. return ctxhttp.Do(c.ctx_, c.s.client, req)
  8871. }
  8872. return c.s.client.Do(req)
  8873. }
  8874. // Do executes the "genomics.variantsets.update" call.
  8875. // Exactly one of *VariantSet or error will be non-nil. Any non-2xx
  8876. // status code is an error. Response headers are in either
  8877. // *VariantSet.ServerResponse.Header or (if a response was returned at
  8878. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  8879. // to check whether the returned error was because
  8880. // http.StatusNotModified was returned.
  8881. func (c *VariantsetsUpdateCall) Do(opts ...googleapi.CallOption) (*VariantSet, error) {
  8882. gensupport.SetOptions(c.urlParams_, opts...)
  8883. res, err := c.doRequest("json")
  8884. if res != nil && res.StatusCode == http.StatusNotModified {
  8885. if res.Body != nil {
  8886. res.Body.Close()
  8887. }
  8888. return nil, &googleapi.Error{
  8889. Code: res.StatusCode,
  8890. Header: res.Header,
  8891. }
  8892. }
  8893. if err != nil {
  8894. return nil, err
  8895. }
  8896. defer googleapi.CloseBody(res)
  8897. if err := googleapi.CheckResponse(res); err != nil {
  8898. return nil, err
  8899. }
  8900. ret := &VariantSet{
  8901. ServerResponse: googleapi.ServerResponse{
  8902. Header: res.Header,
  8903. HTTPStatusCode: res.StatusCode,
  8904. },
  8905. }
  8906. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  8907. return nil, err
  8908. }
  8909. return ret, nil
  8910. // {
  8911. // "description": "Updates a variant set's metadata. All other modifications are silently ignored.",
  8912. // "httpMethod": "PUT",
  8913. // "id": "genomics.variantsets.update",
  8914. // "parameterOrder": [
  8915. // "variantSetId"
  8916. // ],
  8917. // "parameters": {
  8918. // "variantSetId": {
  8919. // "description": "The ID of the variant to be updated (must already exist).",
  8920. // "location": "path",
  8921. // "required": true,
  8922. // "type": "string"
  8923. // }
  8924. // },
  8925. // "path": "variantsets/{variantSetId}",
  8926. // "request": {
  8927. // "$ref": "VariantSet"
  8928. // },
  8929. // "response": {
  8930. // "$ref": "VariantSet"
  8931. // },
  8932. // "scopes": [
  8933. // "https://www.googleapis.com/auth/cloud-platform",
  8934. // "https://www.googleapis.com/auth/genomics"
  8935. // ]
  8936. // }
  8937. }