|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501 |
- // Copyright 2019 Google LLC.
- // Use of this source code is governed by a BSD-style
- // license that can be found in the LICENSE file.
-
- // Code generated file. DO NOT EDIT.
-
- // Package remotebuildexecution provides access to the Remote Build Execution API.
- //
- // For product documentation, see: https://cloud.google.com/remote-build-execution/docs/
- //
- // Creating a client
- //
- // Usage example:
- //
- // import "google.golang.org/api/remotebuildexecution/v1alpha"
- // ...
- // ctx := context.Background()
- // remotebuildexecutionService, err := remotebuildexecution.NewService(ctx)
- //
- // In this example, Google Application Default Credentials are used for authentication.
- //
- // For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
- //
- // Other authentication options
- //
- // To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
- //
- // remotebuildexecutionService, err := remotebuildexecution.NewService(ctx, option.WithAPIKey("AIza..."))
- //
- // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
- //
- // config := &oauth2.Config{...}
- // // ...
- // token, err := config.Exchange(ctx, ...)
- // remotebuildexecutionService, err := remotebuildexecution.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
- //
- // See https://godoc.org/google.golang.org/api/option/ for details on options.
- package remotebuildexecution // import "google.golang.org/api/remotebuildexecution/v1alpha"
-
- import (
- "bytes"
- "context"
- "encoding/json"
- "errors"
- "fmt"
- "io"
- "net/http"
- "net/url"
- "strconv"
- "strings"
-
- gensupport "google.golang.org/api/gensupport"
- googleapi "google.golang.org/api/googleapi"
- option "google.golang.org/api/option"
- htransport "google.golang.org/api/transport/http"
- )
-
- // Always reference these packages, just in case the auto-generated code
- // below doesn't.
- var _ = bytes.NewBuffer
- var _ = strconv.Itoa
- var _ = fmt.Sprintf
- var _ = json.NewDecoder
- var _ = io.Copy
- var _ = url.Parse
- var _ = gensupport.MarshalJSON
- var _ = googleapi.Version
- var _ = errors.New
- var _ = strings.Replace
- var _ = context.Canceled
-
- const apiId = "remotebuildexecution:v1alpha"
- const apiName = "remotebuildexecution"
- const apiVersion = "v1alpha"
- const basePath = "https://admin-remotebuildexecution.googleapis.com/"
-
- // OAuth2 scopes used by this API.
- const (
- // View and manage your data across Google Cloud Platform services
- CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
- )
-
- // NewService creates a new Service.
- func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
- scopesOption := option.WithScopes(
- "https://www.googleapis.com/auth/cloud-platform",
- )
- // NOTE: prepend, so we don't override user-specified scopes.
- opts = append([]option.ClientOption{scopesOption}, opts...)
- client, endpoint, err := htransport.NewClient(ctx, opts...)
- if err != nil {
- return nil, err
- }
- s, err := New(client)
- if err != nil {
- return nil, err
- }
- if endpoint != "" {
- s.BasePath = endpoint
- }
- return s, nil
- }
-
- // New creates a new Service. It uses the provided http.Client for requests.
- //
- // Deprecated: please use NewService instead.
- // To provide a custom HTTP client, use option.WithHTTPClient.
- // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
- func New(client *http.Client) (*Service, error) {
- if client == nil {
- return nil, errors.New("client is nil")
- }
- s := &Service{client: client, BasePath: basePath}
- s.Projects = NewProjectsService(s)
- return s, nil
- }
-
- type Service struct {
- client *http.Client
- BasePath string // API endpoint base URL
- UserAgent string // optional additional User-Agent fragment
-
- Projects *ProjectsService
- }
-
- func (s *Service) userAgent() string {
- if s.UserAgent == "" {
- return googleapi.UserAgent
- }
- return googleapi.UserAgent + " " + s.UserAgent
- }
-
- func NewProjectsService(s *Service) *ProjectsService {
- rs := &ProjectsService{s: s}
- rs.Instances = NewProjectsInstancesService(s)
- rs.Operations = NewProjectsOperationsService(s)
- return rs
- }
-
- type ProjectsService struct {
- s *Service
-
- Instances *ProjectsInstancesService
-
- Operations *ProjectsOperationsService
- }
-
- func NewProjectsInstancesService(s *Service) *ProjectsInstancesService {
- rs := &ProjectsInstancesService{s: s}
- rs.Workerpools = NewProjectsInstancesWorkerpoolsService(s)
- return rs
- }
-
- type ProjectsInstancesService struct {
- s *Service
-
- Workerpools *ProjectsInstancesWorkerpoolsService
- }
-
- func NewProjectsInstancesWorkerpoolsService(s *Service) *ProjectsInstancesWorkerpoolsService {
- rs := &ProjectsInstancesWorkerpoolsService{s: s}
- return rs
- }
-
- type ProjectsInstancesWorkerpoolsService struct {
- s *Service
- }
-
- func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
- rs := &ProjectsOperationsService{s: s}
- return rs
- }
-
- type ProjectsOperationsService struct {
- s *Service
- }
-
- // BuildBazelRemoteExecutionV2Action: An `Action` captures all the
- // information about an execution which is required
- // to reproduce it.
- //
- // `Action`s are the core component of the [Execution] service. A
- // single
- // `Action` represents a repeatable action that can be performed by
- // the
- // execution service. `Action`s can be succinctly identified by the
- // digest of
- // their wire format encoding and, once an `Action` has been executed,
- // will be
- // cached in the action cache. Future requests can then use the cached
- // result
- // rather than needing to run afresh.
- //
- // When a server completes execution of an
- // Action, it MAY choose to
- // cache the result in
- // the ActionCache unless
- // `do_not_cache` is `true`. Clients SHOULD expect the server to do so.
- // By
- // default, future calls to
- // Execute the same
- // `Action` will also serve their results from the cache. Clients must
- // take care
- // to understand the caching behaviour. Ideally, all `Action`s will
- // be
- // reproducible so that serving a result from cache is always desirable
- // and
- // correct.
- type BuildBazelRemoteExecutionV2Action struct {
- // CommandDigest: The digest of the Command
- // to run, which MUST be present in the
- // ContentAddressableStorage.
- CommandDigest *BuildBazelRemoteExecutionV2Digest `json:"commandDigest,omitempty"`
-
- // DoNotCache: If true, then the `Action`'s result cannot be cached.
- DoNotCache bool `json:"doNotCache,omitempty"`
-
- // InputRootDigest: The digest of the root
- // Directory for the input
- // files. The files in the directory tree are available in the
- // correct
- // location on the build machine before the command is executed. The
- // root
- // directory, as well as every subdirectory and content blob referred
- // to, MUST
- // be in the
- // ContentAddressableStorage.
- InputRootDigest *BuildBazelRemoteExecutionV2Digest `json:"inputRootDigest,omitempty"`
-
- // Timeout: A timeout after which the execution should be killed. If the
- // timeout is
- // absent, then the client is specifying that the execution should
- // continue
- // as long as the server will let it. The server SHOULD impose a timeout
- // if
- // the client does not specify one, however, if the client does specify
- // a
- // timeout that is longer than the server's maximum timeout, the server
- // MUST
- // reject the request.
- //
- // The timeout is a part of the
- // Action message, and
- // therefore two `Actions` with different timeouts are different, even
- // if they
- // are otherwise identical. This is because, if they were not, running
- // an
- // `Action` with a lower timeout than is required might result in a
- // cache hit
- // from an execution run with a longer timeout, hiding the fact that
- // the
- // timeout is too short. By encoding it directly in the `Action`, a
- // lower
- // timeout will result in a cache miss and the execution timeout will
- // fail
- // immediately, rather than whenever the cache entry gets evicted.
- Timeout string `json:"timeout,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CommandDigest") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CommandDigest") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2Action) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2Action
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2ActionResult: An ActionResult represents
- // the result of an
- // Action being run.
- type BuildBazelRemoteExecutionV2ActionResult struct {
- // ExecutionMetadata: The details of the execution that originally
- // produced this result.
- ExecutionMetadata *BuildBazelRemoteExecutionV2ExecutedActionMetadata `json:"executionMetadata,omitempty"`
-
- // ExitCode: The exit code of the command.
- ExitCode int64 `json:"exitCode,omitempty"`
-
- // OutputDirectories: The output directories of the action. For each
- // output directory requested
- // in the `output_directories` field of the Action, if the
- // corresponding
- // directory existed after the action completed, a single entry will
- // be
- // present in the output list, which will contain the digest of a
- // Tree message containing the
- // directory tree, and the path equal exactly to the corresponding
- // Action
- // output_directories member.
- //
- // As an example, suppose the Action had an output directory `a/b/dir`
- // and the
- // execution produced the following contents in `a/b/dir`: a file named
- // `bar`
- // and a directory named `foo` with an executable file named `baz`.
- // Then,
- // output_directory will contain (hashes shortened for
- // readability):
- //
- // ```json
- // // OutputDirectory proto:
- // {
- // path: "a/b/dir"
- // tree_digest: {
- // hash: "4a73bc9d03...",
- // size: 55
- // }
- // }
- // // Tree proto with hash "4a73bc9d03..." and size 55:
- // {
- // root: {
- // files: [
- // {
- // name: "bar",
- // digest: {
- // hash: "4a73bc9d03...",
- // size: 65534
- // }
- // }
- // ],
- // directories: [
- // {
- // name: "foo",
- // digest: {
- // hash: "4cf2eda940...",
- // size: 43
- // }
- // }
- // ]
- // }
- // children : {
- // // (Directory proto with hash "4cf2eda940..." and size 43)
- // files: [
- // {
- // name: "baz",
- // digest: {
- // hash: "b2c941073e...",
- // size: 1294,
- // },
- // is_executable: true
- // }
- // ]
- // }
- // }
- // ```
- OutputDirectories []*BuildBazelRemoteExecutionV2OutputDirectory `json:"outputDirectories,omitempty"`
-
- // OutputDirectorySymlinks: The output directories of the action that
- // are symbolic links to other
- // directories. Those may be links to other output directories, or
- // input
- // directories, or even absolute paths outside of the working
- // directory,
- // if the server supports
- // SymlinkAbsolutePathStrategy.ALLOWED.
- // For each output directory requested in the `output_directories` field
- // of
- // the Action, if the directory file existed after
- // the action completed, a single entry will be present either in this
- // field,
- // or in the `output_directories` field, if the directory was not a
- // symbolic link.
- //
- // If the action does not produce the requested output, or produces
- // a
- // file where a directory is expected or vice versa, then that
- // output
- // will be omitted from the list. The server is free to arrange the
- // output
- // list as desired; clients MUST NOT assume that the output list is
- // sorted.
- OutputDirectorySymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputDirectorySymlinks,omitempty"`
-
- // OutputFileSymlinks: The output files of the action that are symbolic
- // links to other files. Those
- // may be links to other output files, or input files, or even absolute
- // paths
- // outside of the working directory, if the server
- // supports
- // SymlinkAbsolutePathStrategy.ALLOWED.
- // For each output file requested in the `output_files` field of the
- // Action,
- // if the corresponding file existed after
- // the action completed, a single entry will be present either in this
- // field,
- // or in the `output_files` field, if the file was not a symbolic
- // link.
- //
- // If the action does not produce the requested output, or produces
- // a
- // directory where a regular file is expected or vice versa, then that
- // output
- // will be omitted from the list. The server is free to arrange the
- // output
- // list as desired; clients MUST NOT assume that the output list is
- // sorted.
- OutputFileSymlinks []*BuildBazelRemoteExecutionV2OutputSymlink `json:"outputFileSymlinks,omitempty"`
-
- // OutputFiles: The output files of the action. For each output file
- // requested in the
- // `output_files` field of the Action, if the corresponding file existed
- // after
- // the action completed, a single entry will be present either in this
- // field,
- // or in the output_file_symlinks field, if the file was a symbolic link
- // to
- // another file.
- //
- // If the action does not produce the requested output, or produces
- // a
- // directory where a regular file is expected or vice versa, then that
- // output
- // will be omitted from the list. The server is free to arrange the
- // output
- // list as desired; clients MUST NOT assume that the output list is
- // sorted.
- OutputFiles []*BuildBazelRemoteExecutionV2OutputFile `json:"outputFiles,omitempty"`
-
- // StderrDigest: The digest for a blob containing the standard error of
- // the action, which
- // can be retrieved from the
- // ContentAddressableStorage.
- // See `stderr_raw` for when this will be set.
- StderrDigest *BuildBazelRemoteExecutionV2Digest `json:"stderrDigest,omitempty"`
-
- // StderrRaw: The standard error buffer of the action. The server will
- // determine, based
- // on the size of the buffer, whether to return it in raw form or to
- // return
- // a digest in `stderr_digest` that points to the buffer. If neither is
- // set,
- // then the buffer is empty. The client SHOULD NOT assume it will get
- // one of
- // the raw buffer or a digest on any given request and should be
- // prepared to
- // handle either.
- StderrRaw string `json:"stderrRaw,omitempty"`
-
- // StdoutDigest: The digest for a blob containing the standard output of
- // the action, which
- // can be retrieved from the
- // ContentAddressableStorage.
- // See `stdout_raw` for when this will be set.
- StdoutDigest *BuildBazelRemoteExecutionV2Digest `json:"stdoutDigest,omitempty"`
-
- // StdoutRaw: The standard output buffer of the action. The server will
- // determine, based
- // on the size of the buffer, whether to return it in raw form or to
- // return
- // a digest in `stdout_digest` that points to the buffer. If neither is
- // set,
- // then the buffer is empty. The client SHOULD NOT assume it will get
- // one of
- // the raw buffer or a digest on any given request and should be
- // prepared to
- // handle either.
- StdoutRaw string `json:"stdoutRaw,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ExecutionMetadata")
- // to unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "ExecutionMetadata") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2ActionResult) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2ActionResult
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2Command: A `Command` is the actual command
- // executed by a worker running an
- // Action and specifications of its
- // environment.
- //
- // Except as otherwise required, the environment (such as which
- // system
- // libraries or binaries are available, and what filesystems are mounted
- // where)
- // is defined by and specific to the implementation of the remote
- // execution API.
- type BuildBazelRemoteExecutionV2Command struct {
- // Arguments: The arguments to the command. The first argument must be
- // the path to the
- // executable, which must be either a relative path, in which case it
- // is
- // evaluated with respect to the input root, or an absolute path.
- Arguments []string `json:"arguments,omitempty"`
-
- // EnvironmentVariables: The environment variables to set when running
- // the program. The worker may
- // provide its own default environment variables; these defaults can
- // be
- // overridden using this field. Additional variables can also be
- // specified.
- //
- // In order to ensure that equivalent
- // Commands always hash to the same
- // value, the environment variables MUST be lexicographically sorted by
- // name.
- // Sorting of strings is done by code point, equivalently, by the UTF-8
- // bytes.
- EnvironmentVariables []*BuildBazelRemoteExecutionV2CommandEnvironmentVariable `json:"environmentVariables,omitempty"`
-
- // OutputDirectories: A list of the output directories that the client
- // expects to retrieve from
- // the action. Only the listed directories will be returned (an
- // entire
- // directory structure will be returned as a
- // Tree message digest, see
- // OutputDirectory), as
- // well as files listed in `output_files`. Other files or directories
- // that
- // may be created during command execution are discarded.
- //
- // The paths are relative to the working directory of the action
- // execution.
- // The paths are specified using a single forward slash (`/`) as a
- // path
- // separator, even if the execution platform natively uses a
- // different
- // separator. The path MUST NOT include a trailing slash, nor a leading
- // slash,
- // being a relative path. The special value of empty string is
- // allowed,
- // although not recommended, and can be used to capture the entire
- // working
- // directory tree, including inputs.
- //
- // In order to ensure consistent hashing of the same Action, the output
- // paths
- // MUST be sorted lexicographically by code point (or, equivalently, by
- // UTF-8
- // bytes).
- //
- // An output directory cannot be duplicated or have the same path as any
- // of
- // the listed output files.
- //
- // Directories leading up to the output directories (but not the
- // output
- // directories themselves) are created by the worker prior to execution,
- // even
- // if they are not explicitly part of the input root.
- OutputDirectories []string `json:"outputDirectories,omitempty"`
-
- // OutputFiles: A list of the output files that the client expects to
- // retrieve from the
- // action. Only the listed files, as well as directories listed
- // in
- // `output_directories`, will be returned to the client as output.
- // Other files or directories that may be created during command
- // execution
- // are discarded.
- //
- // The paths are relative to the working directory of the action
- // execution.
- // The paths are specified using a single forward slash (`/`) as a
- // path
- // separator, even if the execution platform natively uses a
- // different
- // separator. The path MUST NOT include a trailing slash, nor a leading
- // slash,
- // being a relative path.
- //
- // In order to ensure consistent hashing of the same Action, the output
- // paths
- // MUST be sorted lexicographically by code point (or, equivalently, by
- // UTF-8
- // bytes).
- //
- // An output file cannot be duplicated, be a parent of another output
- // file, or
- // have the same path as any of the listed output
- // directories.
- //
- // Directories leading up to the output files are created by the worker
- // prior
- // to execution, even if they are not explicitly part of the input root.
- OutputFiles []string `json:"outputFiles,omitempty"`
-
- // Platform: The platform requirements for the execution environment.
- // The server MAY
- // choose to execute the action on any worker satisfying the
- // requirements, so
- // the client SHOULD ensure that running the action on any such worker
- // will
- // have the same result.
- Platform *BuildBazelRemoteExecutionV2Platform `json:"platform,omitempty"`
-
- // WorkingDirectory: The working directory, relative to the input root,
- // for the command to run
- // in. It must be a directory which exists in the input tree. If it is
- // left
- // empty, then the action is run in the input root.
- WorkingDirectory string `json:"workingDirectory,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Arguments") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Arguments") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2Command) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2Command
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2CommandEnvironmentVariable: An
- // `EnvironmentVariable` is one variable to set in the running
- // program's
- // environment.
- type BuildBazelRemoteExecutionV2CommandEnvironmentVariable struct {
- // Name: The variable name.
- Name string `json:"name,omitempty"`
-
- // Value: The variable value.
- Value string `json:"value,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2CommandEnvironmentVariable) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2CommandEnvironmentVariable
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2Digest: A content digest. A digest for a
- // given blob consists of the size of the blob
- // and its hash. The hash algorithm to use is defined by the server, but
- // servers
- // SHOULD use SHA-256.
- //
- // The size is considered to be an integral part of the digest and
- // cannot be
- // separated. That is, even if the `hash` field is correctly specified
- // but
- // `size_bytes` is not, the server MUST reject the request.
- //
- // The reason for including the size in the digest is as follows: in a
- // great
- // many cases, the server needs to know the size of the blob it is about
- // to work
- // with prior to starting an operation with it, such as flattening
- // Merkle tree
- // structures or streaming it to a worker. Technically, the server
- // could
- // implement a separate metadata store, but this results in a
- // significantly more
- // complicated implementation as opposed to having the client specify
- // the size
- // up-front (or storing the size along with the digest in every message
- // where
- // digests are embedded). This does mean that the API leaks some
- // implementation
- // details of (what we consider to be) a reasonable server
- // implementation, but
- // we consider this to be a worthwhile tradeoff.
- //
- // When a `Digest` is used to refer to a proto message, it always refers
- // to the
- // message in binary encoded form. To ensure consistent hashing, clients
- // and
- // servers MUST ensure that they serialize messages according to the
- // following
- // rules, even if there are alternate valid encodings for the same
- // message:
- //
- // * Fields are serialized in tag order.
- // * There are no unknown fields.
- // * There are no duplicate fields.
- // * Fields are serialized according to the default semantics for their
- // type.
- //
- // Most protocol buffer implementations will always follow these rules
- // when
- // serializing, but care should be taken to avoid shortcuts. For
- // instance,
- // concatenating two messages to merge them may produce duplicate
- // fields.
- type BuildBazelRemoteExecutionV2Digest struct {
- // Hash: The hash. In the case of SHA-256, it will always be a lowercase
- // hex string
- // exactly 64 characters long.
- Hash string `json:"hash,omitempty"`
-
- // SizeBytes: The size of the blob, in bytes.
- SizeBytes int64 `json:"sizeBytes,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "Hash") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Hash") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2Digest) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2Digest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2Directory: A `Directory` represents a
- // directory node in a file tree, containing zero or
- // more children FileNodes,
- // DirectoryNodes and
- // SymlinkNodes.
- // Each `Node` contains its name in the directory, either the digest of
- // its
- // content (either a file blob or a `Directory` proto) or a symlink
- // target, as
- // well as possibly some metadata about the file or directory.
- //
- // In order to ensure that two equivalent directory trees hash to the
- // same
- // value, the following restrictions MUST be obeyed when constructing
- // a
- // a `Directory`:
- //
- // * Every child in the directory must have a path of exactly one
- // segment.
- // Multiple levels of directory hierarchy may not be collapsed.
- // * Each child in the directory must have a unique path segment (file
- // name).
- // * The files, directories and symlinks in the directory must each be
- // sorted
- // in lexicographical order by path. The path strings must be sorted
- // by code
- // point, equivalently, by UTF-8 bytes.
- //
- // A `Directory` that obeys the restrictions is said to be in canonical
- // form.
- //
- // As an example, the following could be used for a file named `bar` and
- // a
- // directory named `foo` with an executable file named `baz` (hashes
- // shortened
- // for readability):
- //
- // ```json
- // // (Directory proto)
- // {
- // files: [
- // {
- // name: "bar",
- // digest: {
- // hash: "4a73bc9d03...",
- // size: 65534
- // }
- // }
- // ],
- // directories: [
- // {
- // name: "foo",
- // digest: {
- // hash: "4cf2eda940...",
- // size: 43
- // }
- // }
- // ]
- // }
- //
- // // (Directory proto with hash "4cf2eda940..." and size 43)
- // {
- // files: [
- // {
- // name: "baz",
- // digest: {
- // hash: "b2c941073e...",
- // size: 1294,
- // },
- // is_executable: true
- // }
- // ]
- // }
- // ```
- type BuildBazelRemoteExecutionV2Directory struct {
- // Directories: The subdirectories in the directory.
- Directories []*BuildBazelRemoteExecutionV2DirectoryNode `json:"directories,omitempty"`
-
- // Files: The files in the directory.
- Files []*BuildBazelRemoteExecutionV2FileNode `json:"files,omitempty"`
-
- // Symlinks: The symlinks in the directory.
- Symlinks []*BuildBazelRemoteExecutionV2SymlinkNode `json:"symlinks,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Directories") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Directories") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2Directory) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2Directory
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2DirectoryNode: A `DirectoryNode`
- // represents a child of a
- // Directory which is itself
- // a `Directory` and its associated metadata.
- type BuildBazelRemoteExecutionV2DirectoryNode struct {
- // Digest: The digest of the
- // Directory object
- // represented. See Digest
- // for information about how to take the digest of a proto message.
- Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`
-
- // Name: The name of the directory.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Digest") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Digest") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2DirectoryNode) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2DirectoryNode
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2ExecuteOperationMetadata: Metadata about
- // an ongoing
- // execution, which
- // will be contained in the metadata
- // field of the
- // Operation.
- type BuildBazelRemoteExecutionV2ExecuteOperationMetadata struct {
- // ActionDigest: The digest of the Action
- // being executed.
- ActionDigest *BuildBazelRemoteExecutionV2Digest `json:"actionDigest,omitempty"`
-
- // Possible values:
- // "UNKNOWN"
- // "CACHE_CHECK" - Checking the result against the cache.
- // "QUEUED" - Currently idle, awaiting a free machine to execute.
- // "EXECUTING" - Currently being executed by a worker.
- // "COMPLETED" - Finished execution.
- Stage string `json:"stage,omitempty"`
-
- // StderrStreamName: If set, the client can use this name
- // with
- // ByteStream.Read to stream the
- // standard error.
- StderrStreamName string `json:"stderrStreamName,omitempty"`
-
- // StdoutStreamName: If set, the client can use this name
- // with
- // ByteStream.Read to stream the
- // standard output.
- StdoutStreamName string `json:"stdoutStreamName,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ActionDigest") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "ActionDigest") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2ExecuteOperationMetadata) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2ExecuteOperationMetadata
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2ExecuteResponse: The response message
- // for
- // Execution.Execute,
- // which will be contained in the response
- // field of the
- // Operation.
- type BuildBazelRemoteExecutionV2ExecuteResponse struct {
- // CachedResult: True if the result was served from cache, false if it
- // was executed.
- CachedResult bool `json:"cachedResult,omitempty"`
-
- // Message: Freeform informational message with details on the execution
- // of the action
- // that may be displayed to the user upon failure or when requested
- // explicitly.
- Message string `json:"message,omitempty"`
-
- // Result: The result of the action.
- Result *BuildBazelRemoteExecutionV2ActionResult `json:"result,omitempty"`
-
- // ServerLogs: An optional list of additional log outputs the server
- // wishes to provide. A
- // server can use this to return execution-specific logs however it
- // wishes.
- // This is intended primarily to make it easier for users to debug
- // issues that
- // may be outside of the actual job execution, such as by identifying
- // the
- // worker executing the action or by providing logs from the worker's
- // setup
- // phase. The keys SHOULD be human readable so that a client can display
- // them
- // to a user.
- ServerLogs map[string]BuildBazelRemoteExecutionV2LogFile `json:"serverLogs,omitempty"`
-
- // Status: If the status has a code other than `OK`, it indicates that
- // the action did
- // not finish execution. For example, if the operation times out
- // during
- // execution, the status will have a `DEADLINE_EXCEEDED` code. Servers
- // MUST
- // use this field for errors in execution, rather than the error field
- // on the
- // `Operation` object.
- //
- // If the status code is other than `OK`, then the result MUST NOT be
- // cached.
- // For an error status, the `result` field is optional; the server
- // may
- // populate the output-, stdout-, and stderr-related fields if it has
- // any
- // information available, such as the stdout and stderr of a timed-out
- // action.
- Status *GoogleRpcStatus `json:"status,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CachedResult") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CachedResult") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2ExecuteResponse) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2ExecuteResponse
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2ExecutedActionMetadata:
- // ExecutedActionMetadata contains details about a completed execution.
- type BuildBazelRemoteExecutionV2ExecutedActionMetadata struct {
- // ExecutionCompletedTimestamp: When the worker completed executing the
- // action command.
- ExecutionCompletedTimestamp string `json:"executionCompletedTimestamp,omitempty"`
-
- // ExecutionStartTimestamp: When the worker started executing the action
- // command.
- ExecutionStartTimestamp string `json:"executionStartTimestamp,omitempty"`
-
- // InputFetchCompletedTimestamp: When the worker finished fetching
- // action inputs.
- InputFetchCompletedTimestamp string `json:"inputFetchCompletedTimestamp,omitempty"`
-
- // InputFetchStartTimestamp: When the worker started fetching action
- // inputs.
- InputFetchStartTimestamp string `json:"inputFetchStartTimestamp,omitempty"`
-
- // OutputUploadCompletedTimestamp: When the worker finished uploading
- // action outputs.
- OutputUploadCompletedTimestamp string `json:"outputUploadCompletedTimestamp,omitempty"`
-
- // OutputUploadStartTimestamp: When the worker started uploading action
- // outputs.
- OutputUploadStartTimestamp string `json:"outputUploadStartTimestamp,omitempty"`
-
- // QueuedTimestamp: When was the action added to the queue.
- QueuedTimestamp string `json:"queuedTimestamp,omitempty"`
-
- // Worker: The name of the worker which ran the execution.
- Worker string `json:"worker,omitempty"`
-
- // WorkerCompletedTimestamp: When the worker completed the action,
- // including all stages.
- WorkerCompletedTimestamp string `json:"workerCompletedTimestamp,omitempty"`
-
- // WorkerStartTimestamp: When the worker received the action.
- WorkerStartTimestamp string `json:"workerStartTimestamp,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "ExecutionCompletedTimestamp") to unconditionally include in API
- // requests. By default, fields with empty values are omitted from API
- // requests. However, any non-pointer, non-interface field appearing in
- // ForceSendFields will be sent to the server regardless of whether the
- // field is empty or not. This may be used to include empty fields in
- // Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g.
- // "ExecutionCompletedTimestamp") to include in API requests with the
- // JSON null value. By default, fields with empty values are omitted
- // from API requests. However, any field with an empty value appearing
- // in NullFields will be sent to the server as null. It is an error if a
- // field in this list has a non-empty value. This may be used to include
- // null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2ExecutedActionMetadata) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2ExecutedActionMetadata
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2FileNode: A `FileNode` represents a single
- // file and associated metadata.
- type BuildBazelRemoteExecutionV2FileNode struct {
- // Digest: The digest of the file's content.
- Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`
-
- // IsExecutable: True if file is executable, false otherwise.
- IsExecutable bool `json:"isExecutable,omitempty"`
-
- // Name: The name of the file.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Digest") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Digest") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2FileNode) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2FileNode
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2LogFile: A `LogFile` is a log stored in
- // the CAS.
- type BuildBazelRemoteExecutionV2LogFile struct {
- // Digest: The digest of the log contents.
- Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`
-
- // HumanReadable: This is a hint as to the purpose of the log, and is
- // set to true if the log
- // is human-readable text that can be usefully displayed to a user, and
- // false
- // otherwise. For instance, if a command-line client wishes to print
- // the
- // server logs to the terminal for a failed action, this allows it to
- // avoid
- // displaying a binary file.
- HumanReadable bool `json:"humanReadable,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Digest") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Digest") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2LogFile) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2LogFile
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2OutputDirectory: An `OutputDirectory` is
- // the output in an `ActionResult` corresponding to a
- // directory's full contents rather than a single file.
- type BuildBazelRemoteExecutionV2OutputDirectory struct {
- // Path: The full path of the directory relative to the working
- // directory. The path
- // separator is a forward slash `/`. Since this is a relative path, it
- // MUST
- // NOT begin with a leading forward slash. The empty string value is
- // allowed,
- // and it denotes the entire working directory.
- Path string `json:"path,omitempty"`
-
- // TreeDigest: The digest of the encoded
- // Tree proto containing the
- // directory's contents.
- TreeDigest *BuildBazelRemoteExecutionV2Digest `json:"treeDigest,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Path") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Path") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2OutputDirectory) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2OutputDirectory
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2OutputFile: An `OutputFile` is similar to
- // a
- // FileNode, but it is used as an
- // output in an `ActionResult`. It allows a full file path rather
- // than
- // only a name.
- //
- // `OutputFile` is binary-compatible with `FileNode`.
- type BuildBazelRemoteExecutionV2OutputFile struct {
- // Digest: The digest of the file's content.
- Digest *BuildBazelRemoteExecutionV2Digest `json:"digest,omitempty"`
-
- // IsExecutable: True if file is executable, false otherwise.
- IsExecutable bool `json:"isExecutable,omitempty"`
-
- // Path: The full path of the file relative to the working directory,
- // including the
- // filename. The path separator is a forward slash `/`. Since this is
- // a
- // relative path, it MUST NOT begin with a leading forward slash.
- Path string `json:"path,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Digest") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Digest") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2OutputFile) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2OutputFile
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2OutputSymlink: An `OutputSymlink` is
- // similar to a
- // Symlink, but it is used as an
- // output in an `ActionResult`.
- //
- // `OutputSymlink` is binary-compatible with `SymlinkNode`.
- type BuildBazelRemoteExecutionV2OutputSymlink struct {
- // Path: The full path of the symlink relative to the working directory,
- // including the
- // filename. The path separator is a forward slash `/`. Since this is
- // a
- // relative path, it MUST NOT begin with a leading forward slash.
- Path string `json:"path,omitempty"`
-
- // Target: The target path of the symlink. The path separator is a
- // forward slash `/`.
- // The target path can be relative to the parent directory of the
- // symlink or
- // it can be an absolute path starting with `/`. Support for absolute
- // paths
- // can be checked using the Capabilities
- // API. The canonical form forbids the substrings `/./` and `//` in the
- // target
- // path. `..` components are allowed anywhere in the target path.
- Target string `json:"target,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Path") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Path") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2OutputSymlink) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2OutputSymlink
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2Platform: A `Platform` is a set of
- // requirements, such as hardware, operating system, or
- // compiler toolchain, for an
- // Action's execution
- // environment. A `Platform` is represented as a series of key-value
- // pairs
- // representing the properties that are required of the platform.
- type BuildBazelRemoteExecutionV2Platform struct {
- // Properties: The properties that make up this platform. In order to
- // ensure that
- // equivalent `Platform`s always hash to the same value, the properties
- // MUST
- // be lexicographically sorted by name, and then by value. Sorting of
- // strings
- // is done by code point, equivalently, by the UTF-8 bytes.
- Properties []*BuildBazelRemoteExecutionV2PlatformProperty `json:"properties,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Properties") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Properties") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2Platform) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2Platform
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2PlatformProperty: A single property for
- // the environment. The server is responsible for
- // specifying the property `name`s that it accepts. If an unknown `name`
- // is
- // provided in the requirements for an
- // Action, the server SHOULD
- // reject the execution request. If permitted by the server, the same
- // `name`
- // may occur multiple times.
- //
- // The server is also responsible for specifying the interpretation
- // of
- // property `value`s. For instance, a property describing how much RAM
- // must be
- // available may be interpreted as allowing a worker with 16GB to
- // fulfill a
- // request for 8GB, while a property describing the OS environment on
- // which
- // the action must be performed may require an exact match with the
- // worker's
- // OS.
- //
- // The server MAY use the `value` of one or more properties to determine
- // how
- // it sets up the execution environment, such as by making specific
- // system
- // files available to the worker.
- type BuildBazelRemoteExecutionV2PlatformProperty struct {
- // Name: The property name.
- Name string `json:"name,omitempty"`
-
- // Value: The property value.
- Value string `json:"value,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2PlatformProperty) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2PlatformProperty
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2RequestMetadata: An optional Metadata to
- // attach to any RPC request to tell the server about an
- // external context of the request. The server may use this for logging
- // or other
- // purposes. To use it, the client attaches the header to the call using
- // the
- // canonical proto serialization:
- //
- // * name: `build.bazel.remote.execution.v2.requestmetadata-bin`
- // * contents: the base64 encoded binary `RequestMetadata` message.
- type BuildBazelRemoteExecutionV2RequestMetadata struct {
- // ActionId: An identifier that ties multiple requests to the same
- // action.
- // For example, multiple requests to the CAS, Action Cache, and
- // Execution
- // API are used in order to compile foo.cc.
- ActionId string `json:"actionId,omitempty"`
-
- // CorrelatedInvocationsId: An identifier to tie multiple tool
- // invocations together. For example,
- // runs of foo_test, bar_test and baz_test on a post-submit of a given
- // patch.
- CorrelatedInvocationsId string `json:"correlatedInvocationsId,omitempty"`
-
- // ToolDetails: The details for the tool invoking the requests.
- ToolDetails *BuildBazelRemoteExecutionV2ToolDetails `json:"toolDetails,omitempty"`
-
- // ToolInvocationId: An identifier that ties multiple actions together
- // to a final result.
- // For example, multiple actions are required to build and run foo_test.
- ToolInvocationId string `json:"toolInvocationId,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ActionId") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "ActionId") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2RequestMetadata) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2RequestMetadata
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2SymlinkNode: A `SymlinkNode` represents a
- // symbolic link.
- type BuildBazelRemoteExecutionV2SymlinkNode struct {
- // Name: The name of the symlink.
- Name string `json:"name,omitempty"`
-
- // Target: The target path of the symlink. The path separator is a
- // forward slash `/`.
- // The target path can be relative to the parent directory of the
- // symlink or
- // it can be an absolute path starting with `/`. Support for absolute
- // paths
- // can be checked using the Capabilities
- // API. The canonical form forbids the substrings `/./` and `//` in the
- // target
- // path. `..` components are allowed anywhere in the target path.
- Target string `json:"target,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2SymlinkNode) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2SymlinkNode
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2ToolDetails: Details for the tool used to
- // call the API.
- type BuildBazelRemoteExecutionV2ToolDetails struct {
- // ToolName: Name of the tool, e.g. bazel.
- ToolName string `json:"toolName,omitempty"`
-
- // ToolVersion: Version of the tool used for the request, e.g. 5.0.3.
- ToolVersion string `json:"toolVersion,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ToolName") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "ToolName") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2ToolDetails) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2ToolDetails
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // BuildBazelRemoteExecutionV2Tree: A `Tree` contains all the
- // Directory protos in a
- // single directory Merkle tree, compressed into one message.
- type BuildBazelRemoteExecutionV2Tree struct {
- // Children: All the child directories: the directories referred to by
- // the root and,
- // recursively, all its children. In order to reconstruct the directory
- // tree,
- // the client must take the digests of each of the child directories and
- // then
- // build up a tree starting from the `root`.
- Children []*BuildBazelRemoteExecutionV2Directory `json:"children,omitempty"`
-
- // Root: The root directory in the tree.
- Root *BuildBazelRemoteExecutionV2Directory `json:"root,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Children") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Children") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *BuildBazelRemoteExecutionV2Tree) MarshalJSON() ([]byte, error) {
- type NoMethod BuildBazelRemoteExecutionV2Tree
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemotebuildbotCommandDurations: CommandDuration
- // contains the various duration metrics tracked when a bot
- // performs a command.
- type GoogleDevtoolsRemotebuildbotCommandDurations struct {
- // DockerPrep: The time spent preparing the command to be run in a
- // Docker container
- // (includes pulling the Docker image, if necessary).
- DockerPrep string `json:"dockerPrep,omitempty"`
-
- // Download: The time spent downloading the input files and constructing
- // the working
- // directory.
- Download string `json:"download,omitempty"`
-
- // Execution: The time spent executing the command (i.e., doing useful
- // work).
- Execution string `json:"execution,omitempty"`
-
- // IsoPrepDone: The timestamp when preparation is done and bot starts
- // downloading files.
- IsoPrepDone string `json:"isoPrepDone,omitempty"`
-
- // Overall: The time spent completing the command, in total.
- Overall string `json:"overall,omitempty"`
-
- // Stdout: The time spent uploading the stdout logs.
- Stdout string `json:"stdout,omitempty"`
-
- // Upload: The time spent uploading the output files.
- Upload string `json:"upload,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "DockerPrep") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "DockerPrep") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildbotCommandDurations) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildbotCommandDurations
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemotebuildbotCommandEvents: CommandEvents contains
- // counters for the number of warnings and errors
- // that occurred during the execution of a command.
- type GoogleDevtoolsRemotebuildbotCommandEvents struct {
- // DockerCacheHit: Indicates whether we are using a cached Docker image
- // (true) or had to pull
- // the Docker image (false) for this command.
- DockerCacheHit bool `json:"dockerCacheHit,omitempty"`
-
- // InputCacheMiss: The input cache miss ratio.
- InputCacheMiss float64 `json:"inputCacheMiss,omitempty"`
-
- // NumErrors: The number of errors reported.
- NumErrors uint64 `json:"numErrors,omitempty,string"`
-
- // NumWarnings: The number of warnings reported.
- NumWarnings uint64 `json:"numWarnings,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "DockerCacheHit") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "DockerCacheHit") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildbotCommandEvents) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildbotCommandEvents
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- func (s *GoogleDevtoolsRemotebuildbotCommandEvents) UnmarshalJSON(data []byte) error {
- type NoMethod GoogleDevtoolsRemotebuildbotCommandEvents
- var s1 struct {
- InputCacheMiss gensupport.JSONFloat64 `json:"inputCacheMiss"`
- *NoMethod
- }
- s1.NoMethod = (*NoMethod)(s)
- if err := json.Unmarshal(data, &s1); err != nil {
- return err
- }
- s.InputCacheMiss = float64(s1.InputCacheMiss)
- return nil
- }
-
- // GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest:
- // The request used for `CreateInstance`.
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest struct {
- // Instance: Specifies the instance to create.
- // The name in the instance, if specified in the instance, is ignored.
- Instance *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instance,omitempty"`
-
- // InstanceId: ID of the created instance.
- // A valid `instance_id` must:
- // be 6-50 characters long,
- // contain only lowercase letters, digits, hyphens and
- // underscores,
- // start with a lowercase letter, and
- // end with a lowercase letter or a digit.
- InstanceId string `json:"instanceId,omitempty"`
-
- // Parent: Resource name of the project containing the instance.
- // Format: `projects/[PROJECT_ID]`.
- Parent string `json:"parent,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Instance") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Instance") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest:
- // The request used for `CreateWorkerPool`.
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest struct {
- // Parent: Resource name of the instance in which to create the new
- // worker pool.
- // Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
- Parent string `json:"parent,omitempty"`
-
- // PoolId: ID of the created worker pool.
- // A valid pool ID must:
- // be 6-50 characters long,
- // contain only lowercase letters, digits, hyphens and
- // underscores,
- // start with a lowercase letter, and
- // end with a lowercase letter or a digit.
- PoolId string `json:"poolId,omitempty"`
-
- // WorkerPool: Specifies the worker pool to create.
- // The name in the worker pool, if specified, is ignored.
- WorkerPool *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPool,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Parent") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Parent") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest:
- // The request used for `DeleteInstance`.
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest struct {
- // Name: Name of the instance to delete.
- // Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest:
- // The request used for DeleteWorkerPool.
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest struct {
- // Name: Name of the worker pool to
- // delete.
- // Format:
- // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerp
- // ools/[POOL_ID]`.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest: The
- // request used for `GetInstance`.
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest struct {
- // Name: Name of the instance to retrieve.
- // Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest:
- // The request used for GetWorkerPool.
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest struct {
- // Name: Name of the worker pool to
- // retrieve.
- // Format:
- // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/worke
- // rpools/[POOL_ID]`.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance: Instance
- // conceptually encapsulates all Remote Build Execution resources
- // for remote builds.
- // An instance consists of storage and compute resources (for
- // example,
- // `ContentAddressableStorage`, `ActionCache`, `WorkerPools`) used
- // for
- // running remote builds.
- // All Remote Build Execution API calls are scoped to an instance.
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance struct {
- // Location: The location is a GCP region. Currently only `us-central1`
- // is supported.
- Location string `json:"location,omitempty"`
-
- // LoggingEnabled: Output only. Whether stack driver logging is enabled
- // for the instance.
- LoggingEnabled bool `json:"loggingEnabled,omitempty"`
-
- // Name: Output only. Instance resource name formatted
- // as:
- // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
- // Name should not be populated when creating an instance since it is
- // provided
- // in the `instance_id` field.
- Name string `json:"name,omitempty"`
-
- // State: Output only. State of the instance.
- //
- // Possible values:
- // "STATE_UNSPECIFIED" - Not a valid state, but the default value of
- // the enum.
- // "CREATING" - The instance is in state `CREATING` once
- // `CreateInstance` is called and
- // before the instance is ready for use.
- // "RUNNING" - The instance is in state `RUNNING` when it is ready for
- // use.
- // "INACTIVE" - An `INACTIVE` instance indicates that there is a
- // problem that needs to be
- // fixed. Such instances cannot be used for execution and instances
- // that
- // remain in this state for a significant period of time will be
- // removed
- // permanently.
- State string `json:"state,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "Location") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Location") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest struct {
- // Parent: Resource name of the project.
- // Format: `projects/[PROJECT_ID]`.
- Parent string `json:"parent,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Parent") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Parent") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse struct {
- // Instances: The list of instances in a given project.
- Instances []*GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance `json:"instances,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "Instances") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Instances") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest struct {
- // Parent: Resource name of the instance.
- // Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
- Parent string `json:"parent,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Parent") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Parent") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse struct {
- // WorkerPools: The list of worker pools in a given instance.
- WorkerPools []*GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPools,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "WorkerPools") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "WorkerPools") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest:
- // The request used for UpdateWorkerPool.
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest struct {
- // UpdateMask: The update mask applies to worker_pool. For the
- // `FieldMask` definition,
- // see
- // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
- // If an empty update_mask is provided, only the non-default valued
- // field in
- // the worker pool field will be updated. Note that in order to update a
- // field
- // to the default value (zero, false, empty string) an explicit
- // update_mask
- // must be provided.
- UpdateMask string `json:"updateMask,omitempty"`
-
- // WorkerPool: Specifies the worker pool to update.
- WorkerPool *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool `json:"workerPool,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "UpdateMask") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "UpdateMask") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig: Defines
- // the configuration to be used for a creating workers in
- // the worker pool.
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig struct {
- // DiskSizeGb: Required. Size of the disk attached to the worker, in
- // GB.
- // See https://cloud.google.com/compute/docs/disks/
- DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
-
- // DiskType: Required. Disk Type to use for the worker.
- // See [Storage
- // options](https://cloud.google.com/compute/docs/disks/#introduction).
- // C
- // urrently only `pd-standard` is supported.
- DiskType string `json:"diskType,omitempty"`
-
- // MachineType: Required. Machine type of the worker, such as
- // `n1-standard-2`.
- // See https://cloud.google.com/compute/docs/machine-types for a list
- // of
- // supported machine types. Note that `f1-micro` and `g1-small` are not
- // yet
- // supported.
- MachineType string `json:"machineType,omitempty"`
-
- // MinCpuPlatform: Minimum CPU platform to use when creating the
- // worker.
- // See [CPU
- // Platforms](https://cloud.google.com/compute/docs/cpu-platforms).
- MinCpuPlatform string `json:"minCpuPlatform,omitempty"`
-
- // Reserved: Determines whether the worker is reserved (equivalent to a
- // Compute Engine
- // on-demand VM and therefore won't be preempted).
- // See [Preemptible VMs](https://cloud.google.com/preemptible-vms/) for
- // more
- // details.
- Reserved bool `json:"reserved,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "DiskSizeGb") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "DiskSizeGb") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool: A worker
- // pool resource in the Remote Build Execution API.
- type GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool struct {
- // Name: WorkerPool resource name formatted
- // as:
- // `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_I
- // D]`.
- // name should not be populated when creating a worker pool since it
- // is
- // provided in the `poolId` field.
- Name string `json:"name,omitempty"`
-
- // State: Output only. State of the worker pool.
- //
- // Possible values:
- // "STATE_UNSPECIFIED" - Not a valid state, but the default value of
- // the enum.
- // "CREATING" - The worker pool is in state `CREATING` once
- // `CreateWorkerPool` is called
- // and before all requested workers are ready.
- // "RUNNING" - The worker pool is in state `RUNNING` when all its
- // workers are ready for
- // use.
- // "UPDATING" - The worker pool is in state `UPDATING` once
- // `UpdateWorkerPool` is called
- // and before the new configuration has all the requested workers ready
- // for
- // use, and no older configuration has any workers. At that point the
- // state
- // transitions to `RUNNING`.
- // "DELETING" - The worker pool is in state `DELETING` once the
- // `Delete` method is called
- // and before the deletion completes.
- // "INACTIVE" - The worker pool is in state `INACTIVE` when the
- // instance hosting the
- // worker pool in not running.
- State string `json:"state,omitempty"`
-
- // WorkerConfig: Specifies the properties, such as machine type and disk
- // size, used for
- // creating workers in a worker pool.
- WorkerConfig *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig `json:"workerConfig,omitempty"`
-
- // WorkerCount: The desired number of workers in the worker pool. Must
- // be a value between
- // 0 and 1000.
- WorkerCount int64 `json:"workerCount,omitempty,string"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testActionResult: An ActionResult
- // represents the result of an
- // Action being run.
- type GoogleDevtoolsRemoteexecutionV1testActionResult struct {
- // ExitCode: The exit code of the command.
- ExitCode int64 `json:"exitCode,omitempty"`
-
- // OutputDirectories: The output directories of the action. For each
- // output directory requested
- // in the `output_directories` field of the Action, if the
- // corresponding
- // directory existed after the action completed, a single entry will
- // be
- // present in the output list, which will contain the digest of
- // a Tree message containing
- // the directory tree, and the path equal exactly to the corresponding
- // Action
- // output_directories member.
- // As an example, suppose the Action had an output directory `a/b/dir`
- // and the
- // execution produced the following contents in `a/b/dir`: a file named
- // `bar`
- // and a directory named `foo` with an executable file named `baz`.
- // Then,
- // output_directory will contain (hashes shortened for
- // readability):
- //
- // ```json
- // // OutputDirectory proto:
- // {
- // path: "a/b/dir"
- // tree_digest: {
- // hash: "4a73bc9d03...",
- // size: 55
- // }
- // }
- // // Tree proto with hash "4a73bc9d03..." and size 55:
- // {
- // root: {
- // files: [
- // {
- // name: "bar",
- // digest: {
- // hash: "4a73bc9d03...",
- // size: 65534
- // }
- // }
- // ],
- // directories: [
- // {
- // name: "foo",
- // digest: {
- // hash: "4cf2eda940...",
- // size: 43
- // }
- // }
- // ]
- // }
- // children : {
- // // (Directory proto with hash "4cf2eda940..." and size 43)
- // files: [
- // {
- // name: "baz",
- // digest: {
- // hash: "b2c941073e...",
- // size: 1294,
- // },
- // is_executable: true
- // }
- // ]
- // }
- // }
- // ```
- OutputDirectories []*GoogleDevtoolsRemoteexecutionV1testOutputDirectory `json:"outputDirectories,omitempty"`
-
- // OutputFiles: The output files of the action. For each output file
- // requested in the
- // `output_files` field of the Action, if the corresponding file existed
- // after
- // the action completed, a single entry will be present in the output
- // list.
- //
- // If the action does not produce the requested output, or produces
- // a
- // directory where a regular file is expected or vice versa, then that
- // output
- // will be omitted from the list. The server is free to arrange the
- // output
- // list as desired; clients MUST NOT assume that the output list is
- // sorted.
- OutputFiles []*GoogleDevtoolsRemoteexecutionV1testOutputFile `json:"outputFiles,omitempty"`
-
- // StderrDigest: The digest for a blob containing the standard error of
- // the action, which
- // can be retrieved from the
- // ContentAddressableStorage.
- // See `stderr_raw` for when this will be set.
- StderrDigest *GoogleDevtoolsRemoteexecutionV1testDigest `json:"stderrDigest,omitempty"`
-
- // StderrRaw: The standard error buffer of the action. The server will
- // determine, based
- // on the size of the buffer, whether to return it in raw form or to
- // return
- // a digest in `stderr_digest` that points to the buffer. If neither is
- // set,
- // then the buffer is empty. The client SHOULD NOT assume it will get
- // one of
- // the raw buffer or a digest on any given request and should be
- // prepared to
- // handle either.
- StderrRaw string `json:"stderrRaw,omitempty"`
-
- // StdoutDigest: The digest for a blob containing the standard output of
- // the action, which
- // can be retrieved from the
- // ContentAddressableStorage.
- // See `stdout_raw` for when this will be set.
- StdoutDigest *GoogleDevtoolsRemoteexecutionV1testDigest `json:"stdoutDigest,omitempty"`
-
- // StdoutRaw: The standard output buffer of the action. The server will
- // determine, based
- // on the size of the buffer, whether to return it in raw form or to
- // return
- // a digest in `stdout_digest` that points to the buffer. If neither is
- // set,
- // then the buffer is empty. The client SHOULD NOT assume it will get
- // one of
- // the raw buffer or a digest on any given request and should be
- // prepared to
- // handle either.
- StdoutRaw string `json:"stdoutRaw,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ExitCode") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "ExitCode") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testActionResult) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testActionResult
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testCommand: A `Command` is the actual
- // command executed by a worker running an
- // Action.
- //
- // Except as otherwise required, the environment (such as which
- // system
- // libraries or binaries are available, and what filesystems are mounted
- // where)
- // is defined by and specific to the implementation of the remote
- // execution API.
- type GoogleDevtoolsRemoteexecutionV1testCommand struct {
- // Arguments: The arguments to the command. The first argument must be
- // the path to the
- // executable, which must be either a relative path, in which case it
- // is
- // evaluated with respect to the input root, or an absolute path.
- //
- // The working directory will always be the input root.
- Arguments []string `json:"arguments,omitempty"`
-
- // EnvironmentVariables: The environment variables to set when running
- // the program. The worker may
- // provide its own default environment variables; these defaults can
- // be
- // overridden using this field. Additional variables can also be
- // specified.
- //
- // In order to ensure that equivalent `Command`s always hash to the
- // same
- // value, the environment variables MUST be lexicographically sorted by
- // name.
- // Sorting of strings is done by code point, equivalently, by the UTF-8
- // bytes.
- EnvironmentVariables []*GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable `json:"environmentVariables,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Arguments") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Arguments") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testCommand) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testCommand
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable: An
- // `EnvironmentVariable` is one variable to set in the running
- // program's
- // environment.
- type GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable struct {
- // Name: The variable name.
- Name string `json:"name,omitempty"`
-
- // Value: The variable value.
- Value string `json:"value,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testDigest: A content digest. A digest
- // for a given blob consists of the size of the blob
- // and its hash. The hash algorithm to use is defined by the server, but
- // servers
- // SHOULD use SHA-256.
- //
- // The size is considered to be an integral part of the digest and
- // cannot be
- // separated. That is, even if the `hash` field is correctly specified
- // but
- // `size_bytes` is not, the server MUST reject the request.
- //
- // The reason for including the size in the digest is as follows: in a
- // great
- // many cases, the server needs to know the size of the blob it is about
- // to work
- // with prior to starting an operation with it, such as flattening
- // Merkle tree
- // structures or streaming it to a worker. Technically, the server
- // could
- // implement a separate metadata store, but this results in a
- // significantly more
- // complicated implementation as opposed to having the client specify
- // the size
- // up-front (or storing the size along with the digest in every message
- // where
- // digests are embedded). This does mean that the API leaks some
- // implementation
- // details of (what we consider to be) a reasonable server
- // implementation, but
- // we consider this to be a worthwhile tradeoff.
- //
- // When a `Digest` is used to refer to a proto message, it always refers
- // to the
- // message in binary encoded form. To ensure consistent hashing, clients
- // and
- // servers MUST ensure that they serialize messages according to the
- // following
- // rules, even if there are alternate valid encodings for the same
- // message.
- // - Fields are serialized in tag order.
- // - There are no unknown fields.
- // - There are no duplicate fields.
- // - Fields are serialized according to the default semantics for their
- // type.
- //
- // Most protocol buffer implementations will always follow these rules
- // when
- // serializing, but care should be taken to avoid shortcuts. For
- // instance,
- // concatenating two messages to merge them may produce duplicate
- // fields.
- type GoogleDevtoolsRemoteexecutionV1testDigest struct {
- // Hash: The hash. In the case of SHA-256, it will always be a lowercase
- // hex string
- // exactly 64 characters long.
- Hash string `json:"hash,omitempty"`
-
- // SizeBytes: The size of the blob, in bytes.
- SizeBytes int64 `json:"sizeBytes,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "Hash") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Hash") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testDigest) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testDigest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testDirectory: A `Directory`
- // represents a directory node in a file tree, containing zero or
- // more children FileNodes
- // and DirectoryNodes.
- // Each `Node` contains its name in the directory, the digest of its
- // content
- // (either a file blob or a `Directory` proto), as well as possibly
- // some
- // metadata about the file or directory.
- //
- // In order to ensure that two equivalent directory trees hash to the
- // same
- // value, the following restrictions MUST be obeyed when constructing
- // a
- // a `Directory`:
- // - Every child in the directory must have a path of exactly one
- // segment.
- // Multiple levels of directory hierarchy may not be collapsed.
- // - Each child in the directory must have a unique path segment (file
- // name).
- // - The files and directories in the directory must each be sorted
- // in
- // lexicographical order by path. The path strings must be sorted by
- // code
- // point, equivalently, by UTF-8 bytes.
- //
- // A `Directory` that obeys the restrictions is said to be in canonical
- // form.
- //
- // As an example, the following could be used for a file named `bar` and
- // a
- // directory named `foo` with an executable file named `baz` (hashes
- // shortened
- // for readability):
- //
- // ```json
- // // (Directory proto)
- // {
- // files: [
- // {
- // name: "bar",
- // digest: {
- // hash: "4a73bc9d03...",
- // size: 65534
- // }
- // }
- // ],
- // directories: [
- // {
- // name: "foo",
- // digest: {
- // hash: "4cf2eda940...",
- // size: 43
- // }
- // }
- // ]
- // }
- //
- // // (Directory proto with hash "4cf2eda940..." and size 43)
- // {
- // files: [
- // {
- // name: "baz",
- // digest: {
- // hash: "b2c941073e...",
- // size: 1294,
- // },
- // is_executable: true
- // }
- // ]
- // }
- // ```
- type GoogleDevtoolsRemoteexecutionV1testDirectory struct {
- // Directories: The subdirectories in the directory.
- Directories []*GoogleDevtoolsRemoteexecutionV1testDirectoryNode `json:"directories,omitempty"`
-
- // Files: The files in the directory.
- Files []*GoogleDevtoolsRemoteexecutionV1testFileNode `json:"files,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Directories") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Directories") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testDirectory) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testDirectory
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testDirectoryNode: A `DirectoryNode`
- // represents a child of a
- // Directory which is itself
- // a `Directory` and its associated metadata.
- type GoogleDevtoolsRemoteexecutionV1testDirectoryNode struct {
- // Digest: The digest of the
- // Directory object
- // represented. See Digest
- // for information about how to take the digest of a proto message.
- Digest *GoogleDevtoolsRemoteexecutionV1testDigest `json:"digest,omitempty"`
-
- // Name: The name of the directory.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Digest") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Digest") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testDirectoryNode) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testDirectoryNode
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testExecuteOperationMetadata: Metadata
- // about an ongoing
- // execution, which
- // will be contained in the metadata
- // field of the
- // Operation.
- type GoogleDevtoolsRemoteexecutionV1testExecuteOperationMetadata struct {
- // ActionDigest: The digest of the Action
- // being executed.
- ActionDigest *GoogleDevtoolsRemoteexecutionV1testDigest `json:"actionDigest,omitempty"`
-
- // Possible values:
- // "UNKNOWN"
- // "CACHE_CHECK" - Checking the result against the cache.
- // "QUEUED" - Currently idle, awaiting a free machine to execute.
- // "EXECUTING" - Currently being executed by a worker.
- // "COMPLETED" - Finished execution.
- Stage string `json:"stage,omitempty"`
-
- // StderrStreamName: If set, the client can use this name
- // with
- // ByteStream.Read to stream the
- // standard error.
- StderrStreamName string `json:"stderrStreamName,omitempty"`
-
- // StdoutStreamName: If set, the client can use this name
- // with
- // ByteStream.Read to stream the
- // standard output.
- StdoutStreamName string `json:"stdoutStreamName,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ActionDigest") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "ActionDigest") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testExecuteOperationMetadata) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testExecuteOperationMetadata
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testExecuteResponse: The response
- // message for
- // Execution.Execute,
- // which will be contained in the response
- // field of the
- // Operation.
- type GoogleDevtoolsRemoteexecutionV1testExecuteResponse struct {
- // CachedResult: True if the result was served from cache, false if it
- // was executed.
- CachedResult bool `json:"cachedResult,omitempty"`
-
- // Result: The result of the action.
- Result *GoogleDevtoolsRemoteexecutionV1testActionResult `json:"result,omitempty"`
-
- // ServerLogs: An optional list of additional log outputs the server
- // wishes to provide. A
- // server can use this to return execution-specific logs however it
- // wishes.
- // This is intended primarily to make it easier for users to debug
- // issues that
- // may be outside of the actual job execution, such as by identifying
- // the
- // worker executing the action or by providing logs from the worker's
- // setup
- // phase. The keys SHOULD be human readable so that a client can display
- // them
- // to a user.
- ServerLogs map[string]GoogleDevtoolsRemoteexecutionV1testLogFile `json:"serverLogs,omitempty"`
-
- // Status: If the status has a code other than `OK`, it indicates that
- // the action did
- // not finish execution. For example, if the operation times out
- // during
- // execution, the status will have a `DEADLINE_EXCEEDED` code. Servers
- // MUST
- // use this field for errors in execution, rather than the error field
- // on the
- // `Operation` object.
- //
- // If the status code is other than `OK`, then the result MUST NOT be
- // cached.
- // For an error status, the `result` field is optional; the server
- // may
- // populate the output-, stdout-, and stderr-related fields if it has
- // any
- // information available, such as the stdout and stderr of a timed-out
- // action.
- Status *GoogleRpcStatus `json:"status,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CachedResult") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CachedResult") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testExecuteResponse) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testExecuteResponse
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testFileNode: A `FileNode` represents
- // a single file and associated metadata.
- type GoogleDevtoolsRemoteexecutionV1testFileNode struct {
- // Digest: The digest of the file's content.
- Digest *GoogleDevtoolsRemoteexecutionV1testDigest `json:"digest,omitempty"`
-
- // IsExecutable: True if file is executable, false otherwise.
- IsExecutable bool `json:"isExecutable,omitempty"`
-
- // Name: The name of the file.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Digest") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Digest") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testFileNode) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testFileNode
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testLogFile: A `LogFile` is a log
- // stored in the CAS.
- type GoogleDevtoolsRemoteexecutionV1testLogFile struct {
- // Digest: The digest of the log contents.
- Digest *GoogleDevtoolsRemoteexecutionV1testDigest `json:"digest,omitempty"`
-
- // HumanReadable: This is a hint as to the purpose of the log, and is
- // set to true if the log
- // is human-readable text that can be usefully displayed to a user, and
- // false
- // otherwise. For instance, if a command-line client wishes to print
- // the
- // server logs to the terminal for a failed action, this allows it to
- // avoid
- // displaying a binary file.
- HumanReadable bool `json:"humanReadable,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Digest") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Digest") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testLogFile) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testLogFile
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testOutputDirectory: An
- // `OutputDirectory` is the output in an `ActionResult` corresponding to
- // a
- // directory's full contents rather than a single file.
- type GoogleDevtoolsRemoteexecutionV1testOutputDirectory struct {
- // Digest: DEPRECATED: This field is deprecated and should no longer be
- // used.
- Digest *GoogleDevtoolsRemoteexecutionV1testDigest `json:"digest,omitempty"`
-
- // Path: The full path of the directory relative to the working
- // directory. The path
- // separator is a forward slash `/`. Since this is a relative path, it
- // MUST
- // NOT begin with a leading forward slash. The empty string value is
- // allowed,
- // and it denotes the entire working directory.
- Path string `json:"path,omitempty"`
-
- // TreeDigest: The digest of the encoded
- // Tree proto containing the
- // directory's contents.
- TreeDigest *GoogleDevtoolsRemoteexecutionV1testDigest `json:"treeDigest,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Digest") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Digest") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testOutputDirectory) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testOutputDirectory
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testOutputFile: An `OutputFile` is
- // similar to a
- // FileNode, but it is
- // tailored for output as part of an `ActionResult`. It allows a full
- // file path
- // rather than only a name, and allows the server to include content
- // inline.
- //
- // `OutputFile` is binary-compatible with `FileNode`.
- type GoogleDevtoolsRemoteexecutionV1testOutputFile struct {
- // Content: The raw content of the file.
- //
- // This field may be used by the server to provide the content of a
- // file
- // inline in an
- // ActionResult and
- // avoid requiring that the client make a separate call
- // to
- // [ContentAddressableStorage.GetBlob] to retrieve it.
- //
- // The client SHOULD NOT assume that it will get raw content with any
- // request,
- // and always be prepared to retrieve it via `digest`.
- Content string `json:"content,omitempty"`
-
- // Digest: The digest of the file's content.
- Digest *GoogleDevtoolsRemoteexecutionV1testDigest `json:"digest,omitempty"`
-
- // IsExecutable: True if file is executable, false otherwise.
- IsExecutable bool `json:"isExecutable,omitempty"`
-
- // Path: The full path of the file relative to the input root, including
- // the
- // filename. The path separator is a forward slash `/`. Since this is
- // a
- // relative path, it MUST NOT begin with a leading forward slash.
- Path string `json:"path,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Content") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Content") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testOutputFile) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testOutputFile
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testRequestMetadata: An optional
- // Metadata to attach to any RPC request to tell the server about
- // an
- // external context of the request. The server may use this for logging
- // or other
- // purposes. To use it, the client attaches the header to the call using
- // the
- // canonical proto serialization:
- // name:
- // google.devtools.remoteexecution.v1test.requestmetadata-bin
- // contents: the base64 encoded binary RequestMetadata message.
- type GoogleDevtoolsRemoteexecutionV1testRequestMetadata struct {
- // ActionId: An identifier that ties multiple requests to the same
- // action.
- // For example, multiple requests to the CAS, Action Cache, and
- // Execution
- // API are used in order to compile foo.cc.
- ActionId string `json:"actionId,omitempty"`
-
- // CorrelatedInvocationsId: An identifier to tie multiple tool
- // invocations together. For example,
- // runs of foo_test, bar_test and baz_test on a post-submit of a given
- // patch.
- CorrelatedInvocationsId string `json:"correlatedInvocationsId,omitempty"`
-
- // ToolDetails: The details for the tool invoking the requests.
- ToolDetails *GoogleDevtoolsRemoteexecutionV1testToolDetails `json:"toolDetails,omitempty"`
-
- // ToolInvocationId: An identifier that ties multiple actions together
- // to a final result.
- // For example, multiple actions are required to build and run foo_test.
- ToolInvocationId string `json:"toolInvocationId,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ActionId") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "ActionId") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testRequestMetadata) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testRequestMetadata
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testToolDetails: Details for the tool
- // used to call the API.
- type GoogleDevtoolsRemoteexecutionV1testToolDetails struct {
- // ToolName: Name of the tool, e.g. bazel.
- ToolName string `json:"toolName,omitempty"`
-
- // ToolVersion: Version of the tool used for the request, e.g. 5.0.3.
- ToolVersion string `json:"toolVersion,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ToolName") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "ToolName") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testToolDetails) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testToolDetails
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteexecutionV1testTree: A `Tree` contains all
- // the
- // Directory protos in a
- // single directory Merkle tree, compressed into one message.
- type GoogleDevtoolsRemoteexecutionV1testTree struct {
- // Children: All the child directories: the directories referred to by
- // the root and,
- // recursively, all its children. In order to reconstruct the directory
- // tree,
- // the client must take the digests of each of the child directories and
- // then
- // build up a tree starting from the `root`.
- Children []*GoogleDevtoolsRemoteexecutionV1testDirectory `json:"children,omitempty"`
-
- // Root: The root directory in the tree.
- Root *GoogleDevtoolsRemoteexecutionV1testDirectory `json:"root,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Children") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Children") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteexecutionV1testTree) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteexecutionV1testTree
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2AdminTemp: AdminTemp is a
- // prelimiary set of administration tasks. It's called "Temp"
- // because we do not yet know the best way to represent admin tasks;
- // it's
- // possible that this will be entirely replaced in later versions of
- // this API.
- // If this message proves to be sufficient, it will be renamed in the
- // alpha or
- // beta release of this API.
- //
- // This message (suitably marshalled into a protobuf.Any) can be used as
- // the
- // inline_assignment field in a lease; the lease assignment field should
- // simply
- // be "admin" in these cases.
- //
- // This message is heavily based on Swarming administration tasks from
- // the LUCI
- // project (http://github.com/luci/luci-py/appengine/swarming).
- type GoogleDevtoolsRemoteworkersV1test2AdminTemp struct {
- // Arg: The argument to the admin action; see `Command` for semantics.
- Arg string `json:"arg,omitempty"`
-
- // Command: The admin action; see `Command` for legal values.
- //
- // Possible values:
- // "UNSPECIFIED" - Illegal value.
- // "BOT_UPDATE" - Download and run a new version of the bot. `arg`
- // will be a resource
- // accessible via `ByteStream.Read` to obtain the new bot code.
- // "BOT_RESTART" - Restart the bot without downloading a new version.
- // `arg` will be a
- // message to log.
- // "BOT_TERMINATE" - Shut down the bot. `arg` will be a task resource
- // name (similar to those
- // in tasks.proto) that the bot can use to tell the server that it
- // is
- // terminating.
- // "HOST_RESTART" - Restart the host computer. `arg` will be a message
- // to log.
- Command string `json:"command,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Arg") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Arg") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2AdminTemp) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2AdminTemp
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2Blob: Describes a blob of binary
- // content with its digest.
- type GoogleDevtoolsRemoteworkersV1test2Blob struct {
- // Contents: The contents of the blob.
- Contents string `json:"contents,omitempty"`
-
- // Digest: The digest of the blob. This should be verified by the
- // receiver.
- Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Contents") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Contents") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2Blob) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2Blob
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2CommandOutputs: DEPRECATED - use
- // CommandResult instead.
- // Describes the actual outputs from the task.
- type GoogleDevtoolsRemoteworkersV1test2CommandOutputs struct {
- // ExitCode: exit_code is only fully reliable if the status' code is OK.
- // If the task
- // exceeded its deadline or was cancelled, the process may still produce
- // an
- // exit code as it is cancelled, and this will be populated, but a
- // successful
- // (zero) is unlikely to be correct unless the status code is OK.
- ExitCode int64 `json:"exitCode,omitempty"`
-
- // Outputs: The output files. The blob referenced by the digest should
- // contain
- // one of the following (implementation-dependent):
- // * A marshalled DirectoryMetadata of the returned filesystem
- // * A LUCI-style .isolated file
- Outputs *GoogleDevtoolsRemoteworkersV1test2Digest `json:"outputs,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ExitCode") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "ExitCode") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2CommandOutputs) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandOutputs
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2CommandOverhead: DEPRECATED - use
- // CommandResult instead.
- // Can be used as part of CompleteRequest.metadata, or are part of a
- // more
- // sophisticated message.
- type GoogleDevtoolsRemoteworkersV1test2CommandOverhead struct {
- // Duration: The elapsed time between calling Accept and Complete. The
- // server will also
- // have its own idea of what this should be, but this excludes the
- // overhead of
- // the RPCs and the bot response time.
- Duration string `json:"duration,omitempty"`
-
- // Overhead: The amount of time *not* spent executing the command
- // (ie
- // uploading/downloading files).
- Overhead string `json:"overhead,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Duration") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Duration") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2CommandOverhead) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandOverhead
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2CommandResult: All information
- // about the execution of a command, suitable for providing as
- // the Bots interface's `Lease.result` field.
- type GoogleDevtoolsRemoteworkersV1test2CommandResult struct {
- // Duration: The elapsed time between calling Accept and Complete. The
- // server will also
- // have its own idea of what this should be, but this excludes the
- // overhead of
- // the RPCs and the bot response time.
- Duration string `json:"duration,omitempty"`
-
- // ExitCode: The exit code of the process. An exit code of "0" should
- // only be trusted if
- // `status` has a code of OK (otherwise it may simply be unset).
- ExitCode int64 `json:"exitCode,omitempty"`
-
- // Metadata: Implementation-dependent metadata about the task. Both
- // servers and bots
- // may define messages which can be encoded here; bots are free to
- // provide
- // metadata in multiple formats, and servers are free to choose one or
- // more
- // of the values to process and ignore others. In particular, it is
- // *not*
- // considered an error for the bot to provide the server with a field
- // that it
- // doesn't know about.
- Metadata []googleapi.RawMessage `json:"metadata,omitempty"`
-
- // Outputs: The output files. The blob referenced by the digest should
- // contain
- // one of the following (implementation-dependent):
- // * A marshalled DirectoryMetadata of the returned filesystem
- // * A LUCI-style .isolated file
- Outputs *GoogleDevtoolsRemoteworkersV1test2Digest `json:"outputs,omitempty"`
-
- // Overhead: The amount of time *not* spent executing the command
- // (ie
- // uploading/downloading files).
- Overhead string `json:"overhead,omitempty"`
-
- // Status: An overall status for the command. For example, if the
- // command timed out,
- // this might have a code of DEADLINE_EXCEEDED; if it was killed by the
- // OS for
- // memory exhaustion, it might have a code of RESOURCE_EXHAUSTED.
- Status *GoogleRpcStatus `json:"status,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Duration") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Duration") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2CommandResult) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandResult
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2CommandTask: Describes a
- // shell-style task to execute, suitable for providing as the
- // Bots
- // interface's `Lease.payload` field.
- type GoogleDevtoolsRemoteworkersV1test2CommandTask struct {
- // ExpectedOutputs: The expected outputs from the task.
- ExpectedOutputs *GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs `json:"expectedOutputs,omitempty"`
-
- // Inputs: The inputs to the task.
- Inputs *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs `json:"inputs,omitempty"`
-
- // Timeouts: The timeouts of this task.
- Timeouts *GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts `json:"timeouts,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ExpectedOutputs") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "ExpectedOutputs") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2CommandTask) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTask
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs: Describes the
- // inputs to a shell-style task.
- type GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs struct {
- // Arguments: The command itself to run (e.g., argv).
- //
- // This field should be passed directly to the underlying operating
- // system,
- // and so it must be sensible to that operating system. For example,
- // on
- // Windows, the first argument might be "C:\Windows\System32\ping.exe"
- // -
- // that is, using drive letters and backslashes. A command for a
- // *nix
- // system, on the other hand, would use forward slashes.
- //
- // All other fields in the RWAPI must consistently use forward
- // slashes,
- // since those fields may be interpretted by both the service and the
- // bot.
- Arguments []string `json:"arguments,omitempty"`
-
- // EnvironmentVariables: All environment variables required by the task.
- EnvironmentVariables []*GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable `json:"environmentVariables,omitempty"`
-
- // Files: The input filesystem to be set up prior to the task beginning.
- // The
- // contents should be a repeated set of FileMetadata messages though
- // other
- // formats are allowed if better for the implementation (eg, a
- // LUCI-style
- // .isolated file).
- //
- // This field is repeated since implementations might want to cache
- // the
- // metadata, in which case it may be useful to break up portions of
- // the
- // filesystem that change frequently (eg, specific input files) from
- // those
- // that don't (eg, standard header files).
- Files []*GoogleDevtoolsRemoteworkersV1test2Digest `json:"files,omitempty"`
-
- // InlineBlobs: Inline contents for blobs expected to be needed by the
- // bot to execute the
- // task. For example, contents of entries in `files` or blobs that
- // are
- // indirectly referenced by an entry there.
- //
- // The bot should check against this list before downloading required
- // task
- // inputs to reduce the number of communications between itself and
- // the
- // remote CAS server.
- InlineBlobs []*GoogleDevtoolsRemoteworkersV1test2Blob `json:"inlineBlobs,omitempty"`
-
- // WorkingDirectory: Directory from which a command is executed. It is a
- // relative directory
- // with respect to the bot's working directory (i.e., "./"). If it
- // is
- // non-empty, then it must exist under "./". Otherwise, "./" will be
- // used.
- WorkingDirectory string `json:"workingDirectory,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Arguments") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Arguments") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable
- // : An environment variable required by this task.
- type GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable struct {
- // Name: The envvar name.
- Name string `json:"name,omitempty"`
-
- // Value: The envvar value.
- Value string `json:"value,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs: Describes the
- // expected outputs of the command.
- type GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs struct {
- // Directories: A list of expected directories, relative to the
- // execution root. All paths
- // MUST be delimited by forward slashes.
- Directories []string `json:"directories,omitempty"`
-
- // Files: A list of expected files, relative to the execution root. All
- // paths
- // MUST be delimited by forward slashes.
- Files []string `json:"files,omitempty"`
-
- // StderrDestination: The destination to which any stderr should be
- // sent. The method by which
- // the bot should send the stream contents to that destination is
- // not
- // defined in this API. As examples, the destination could be a
- // file
- // referenced in the `files` field in this message, or it could be a
- // URI
- // that must be written via the ByteStream API.
- StderrDestination string `json:"stderrDestination,omitempty"`
-
- // StdoutDestination: The destination to which any stdout should be
- // sent. The method by which
- // the bot should send the stream contents to that destination is
- // not
- // defined in this API. As examples, the destination could be a
- // file
- // referenced in the `files` field in this message, or it could be a
- // URI
- // that must be written via the ByteStream API.
- StdoutDestination string `json:"stdoutDestination,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Directories") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Directories") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts: Describes the
- // timeouts associated with this task.
- type GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts struct {
- // Execution: This specifies the maximum time that the task can run,
- // excluding the
- // time required to download inputs or upload outputs. That is, the
- // worker
- // will terminate the task if it runs longer than this.
- Execution string `json:"execution,omitempty"`
-
- // Idle: This specifies the maximum amount of time the task can be idle
- // - that is,
- // go without generating some output in either stdout or stderr. If
- // the
- // process is silent for more than the specified time, the worker
- // will
- // terminate the task.
- Idle string `json:"idle,omitempty"`
-
- // Shutdown: If the execution or IO timeouts are exceeded, the worker
- // will try to
- // gracefully terminate the task and return any existing logs.
- // However,
- // tasks may be hard-frozen in which case this process will fail.
- // This
- // timeout specifies how long to wait for a terminated task to shut
- // down
- // gracefully (e.g. via SIGTERM) before we bring down the hammer
- // (e.g.
- // SIGKILL on *nix, CTRL_BREAK_EVENT on Windows).
- Shutdown string `json:"shutdown,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Execution") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Execution") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2Digest: The CommandTask and
- // CommandResult messages assume the existence of a service
- // that can serve blobs of content, identified by a hash and size known
- // as a
- // "digest." The method by which these blobs may be retrieved is not
- // specified
- // here, but a model implementation is in the Remote Execution
- // API's
- // "ContentAddressibleStorage" interface.
- //
- // In the context of the RWAPI, a Digest will virtually always refer to
- // the
- // contents of a file or a directory. The latter is represented by
- // the
- // byte-encoded Directory message.
- type GoogleDevtoolsRemoteworkersV1test2Digest struct {
- // Hash: A string-encoded hash (eg "1a2b3c", not the byte array [0x1a,
- // 0x2b, 0x3c])
- // using an implementation-defined hash algorithm (eg SHA-256).
- Hash string `json:"hash,omitempty"`
-
- // SizeBytes: The size of the contents. While this is not strictly
- // required as part of an
- // identifier (after all, any given hash will have exactly one
- // canonical
- // size), it's useful in almost all cases when one might want to send
- // or
- // retrieve blobs of content and is included here for this reason.
- SizeBytes int64 `json:"sizeBytes,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "Hash") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Hash") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2Digest) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2Digest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2Directory: The contents of a
- // directory. Similar to the equivalent message in the Remote
- // Execution API.
- type GoogleDevtoolsRemoteworkersV1test2Directory struct {
- // Directories: Any subdirectories
- Directories []*GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata `json:"directories,omitempty"`
-
- // Files: The files in this directory
- Files []*GoogleDevtoolsRemoteworkersV1test2FileMetadata `json:"files,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Directories") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Directories") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2Directory) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2Directory
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata: The metadata for
- // a directory. Similar to the equivalent message in the
- // Remote
- // Execution API.
- type GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata struct {
- // Digest: A pointer to the contents of the directory, in the form of a
- // marshalled
- // Directory message.
- Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"`
-
- // Path: The path of the directory, as in FileMetadata.path.
- Path string `json:"path,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Digest") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Digest") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleDevtoolsRemoteworkersV1test2FileMetadata: The metadata for a
- // file. Similar to the equivalent message in the Remote
- // Execution API.
- type GoogleDevtoolsRemoteworkersV1test2FileMetadata struct {
- // Contents: If the file is small enough, its contents may also or
- // alternatively be
- // listed here.
- Contents string `json:"contents,omitempty"`
-
- // Digest: A pointer to the contents of the file. The method by which a
- // client
- // retrieves the contents from a CAS system is not defined here.
- Digest *GoogleDevtoolsRemoteworkersV1test2Digest `json:"digest,omitempty"`
-
- // IsExecutable: Properties of the file
- IsExecutable bool `json:"isExecutable,omitempty"`
-
- // Path: The path of this file. If this message is part of
- // the
- // CommandOutputs.outputs fields, the path is relative to the execution
- // root
- // and must correspond to an entry in CommandTask.outputs.files. If
- // this
- // message is part of a Directory message, then the path is relative to
- // the
- // root of that directory. All paths MUST be delimited by forward
- // slashes.
- Path string `json:"path,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Contents") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Contents") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleDevtoolsRemoteworkersV1test2FileMetadata) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleDevtoolsRemoteworkersV1test2FileMetadata
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleLongrunningOperation: This resource represents a long-running
- // operation that is the result of a
- // network API call.
- type GoogleLongrunningOperation struct {
- // Done: If the value is `false`, it means the operation is still in
- // progress.
- // If `true`, the operation is completed, and either `error` or
- // `response` is
- // available.
- Done bool `json:"done,omitempty"`
-
- // Error: The error result of the operation in case of failure or
- // cancellation.
- Error *GoogleRpcStatus `json:"error,omitempty"`
-
- // Metadata: Service-specific metadata associated with the operation.
- // It typically
- // contains progress information and common metadata such as create
- // time.
- // Some services might not provide such metadata. Any method that
- // returns a
- // long-running operation should document the metadata type, if any.
- Metadata googleapi.RawMessage `json:"metadata,omitempty"`
-
- // Name: The server-assigned name, which is only unique within the same
- // service that
- // originally returns it. If you use the default HTTP mapping,
- // the
- // `name` should have the format of `operations/some/unique/name`.
- Name string `json:"name,omitempty"`
-
- // Response: The normal response of the operation in case of success.
- // If the original
- // method returns no data on success, such as `Delete`, the response
- // is
- // `google.protobuf.Empty`. If the original method is
- // standard
- // `Get`/`Create`/`Update`, the response should be the resource. For
- // other
- // methods, the response should have the type `XxxResponse`, where
- // `Xxx`
- // is the original method name. For example, if the original method
- // name
- // is `TakeSnapshot()`, the inferred response type
- // is
- // `TakeSnapshotResponse`.
- Response googleapi.RawMessage `json:"response,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "Done") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Done") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleLongrunningOperation
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleRpcStatus: The `Status` type defines a logical error model that
- // is suitable for
- // different programming environments, including REST APIs and RPC APIs.
- // It is
- // used by [gRPC](https://github.com/grpc). The error model is designed
- // to be:
- //
- // - Simple to use and understand for most users
- // - Flexible enough to meet unexpected needs
- //
- // # Overview
- //
- // The `Status` message contains three pieces of data: error code,
- // error
- // message, and error details. The error code should be an enum value
- // of
- // google.rpc.Code, but it may accept additional error codes if needed.
- // The
- // error message should be a developer-facing English message that
- // helps
- // developers *understand* and *resolve* the error. If a localized
- // user-facing
- // error message is needed, put the localized message in the error
- // details or
- // localize it in the client. The optional error details may contain
- // arbitrary
- // information about the error. There is a predefined set of error
- // detail types
- // in the package `google.rpc` that can be used for common error
- // conditions.
- //
- // # Language mapping
- //
- // The `Status` message is the logical representation of the error
- // model, but it
- // is not necessarily the actual wire format. When the `Status` message
- // is
- // exposed in different client libraries and different wire protocols,
- // it can be
- // mapped differently. For example, it will likely be mapped to some
- // exceptions
- // in Java, but more likely mapped to some error codes in C.
- //
- // # Other uses
- //
- // The error model and the `Status` message can be used in a variety
- // of
- // environments, either with or without APIs, to provide a
- // consistent developer experience across different
- // environments.
- //
- // Example uses of this error model include:
- //
- // - Partial errors. If a service needs to return partial errors to the
- // client,
- // it may embed the `Status` in the normal response to indicate the
- // partial
- // errors.
- //
- // - Workflow errors. A typical workflow has multiple steps. Each step
- // may
- // have a `Status` message for error reporting.
- //
- // - Batch operations. If a client uses batch request and batch
- // response, the
- // `Status` message should be used directly inside batch response,
- // one for
- // each error sub-response.
- //
- // - Asynchronous operations. If an API call embeds asynchronous
- // operation
- // results in its response, the status of those operations should
- // be
- // represented directly using the `Status` message.
- //
- // - Logging. If some API errors are stored in logs, the message
- // `Status` could
- // be used directly after any stripping needed for security/privacy
- // reasons.
- type GoogleRpcStatus struct {
- // Code: The status code, which should be an enum value of
- // google.rpc.Code.
- Code int64 `json:"code,omitempty"`
-
- // Details: A list of messages that carry the error details. There is a
- // common set of
- // message types for APIs to use.
- Details []googleapi.RawMessage `json:"details,omitempty"`
-
- // Message: A developer-facing error message, which should be in
- // English. Any
- // user-facing error message should be localized and sent in
- // the
- // google.rpc.Status.details field, or localized by the client.
- Message string `json:"message,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Code") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Code") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleRpcStatus
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // method id "remotebuildexecution.projects.instances.create":
-
- type ProjectsInstancesCreateCall struct {
- s *Service
- parent string
- googledevtoolsremotebuildexecutionadminv1alphacreateinstancerequest *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Create: Creates a new instance in the specified region.
- // Returns a long running operation which contains an instance on
- // completion.
- // While the long running operation is in progress, any call to
- // `GetInstance`
- // returns an instance in state `CREATING`.
- func (r *ProjectsInstancesService) Create(parent string, googledevtoolsremotebuildexecutionadminv1alphacreateinstancerequest *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest) *ProjectsInstancesCreateCall {
- c := &ProjectsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- c.googledevtoolsremotebuildexecutionadminv1alphacreateinstancerequest = googledevtoolsremotebuildexecutionadminv1alphacreateinstancerequest
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *ProjectsInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsInstancesCreateCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *ProjectsInstancesCreateCall) Context(ctx context.Context) *ProjectsInstancesCreateCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *ProjectsInstancesCreateCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *ProjectsInstancesCreateCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.googledevtoolsremotebuildexecutionadminv1alphacreateinstancerequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- c.urlParams_.Set("prettyPrint", "false")
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/instances")
- urls += "?" + c.urlParams_.Encode()
- req, err := http.NewRequest("POST", urls, body)
- if err != nil {
- return nil, err
- }
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "remotebuildexecution.projects.instances.create" call.
- // Exactly one of *GoogleLongrunningOperation or error will be non-nil.
- // Any non-2xx status code is an error. Response headers are in either
- // *GoogleLongrunningOperation.ServerResponse.Header or (if a response
- // was returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *ProjectsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleLongrunningOperation{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Creates a new instance in the specified region.\nReturns a long running operation which contains an instance on completion.\nWhile the long running operation is in progress, any call to `GetInstance`\nreturns an instance in state `CREATING`.",
- // "flatPath": "v1alpha/projects/{projectsId}/instances",
- // "httpMethod": "POST",
- // "id": "remotebuildexecution.projects.instances.create",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "Resource name of the project containing the instance.\nFormat: `projects/[PROJECT_ID]`.",
- // "location": "path",
- // "pattern": "^projects/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha/{+parent}/instances",
- // "request": {
- // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest"
- // },
- // "response": {
- // "$ref": "GoogleLongrunningOperation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "remotebuildexecution.projects.instances.delete":
-
- type ProjectsInstancesDeleteCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Delete: Deletes the specified instance.
- // Returns a long running operation which contains a
- // `google.protobuf.Empty`
- // response on completion.
- // Deleting an instance with worker pools in it will delete these
- // worker
- // pools.
- func (r *ProjectsInstancesService) Delete(name string) *ProjectsInstancesDeleteCall {
- c := &ProjectsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *ProjectsInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsInstancesDeleteCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *ProjectsInstancesDeleteCall) Context(ctx context.Context) *ProjectsInstancesDeleteCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *ProjectsInstancesDeleteCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *ProjectsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- c.urlParams_.Set("prettyPrint", "false")
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, err := http.NewRequest("DELETE", urls, body)
- if err != nil {
- return nil, err
- }
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "remotebuildexecution.projects.instances.delete" call.
- // Exactly one of *GoogleLongrunningOperation or error will be non-nil.
- // Any non-2xx status code is an error. Response headers are in either
- // *GoogleLongrunningOperation.ServerResponse.Header or (if a response
- // was returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *ProjectsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleLongrunningOperation{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Deletes the specified instance.\nReturns a long running operation which contains a `google.protobuf.Empty`\nresponse on completion.\nDeleting an instance with worker pools in it will delete these worker\npools.",
- // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}",
- // "httpMethod": "DELETE",
- // "id": "remotebuildexecution.projects.instances.delete",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "Name of the instance to delete.\nFormat: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/instances/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha/{+name}",
- // "response": {
- // "$ref": "GoogleLongrunningOperation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "remotebuildexecution.projects.instances.get":
-
- type ProjectsInstancesGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
- }
-
- // Get: Returns the specified instance.
- func (r *ProjectsInstancesService) Get(name string) *ProjectsInstancesGetCall {
- c := &ProjectsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *ProjectsInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsInstancesGetCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // IfNoneMatch sets the optional parameter which makes the operation
- // fail if the object's ETag matches the given value. This is useful for
- // getting updates only after the object has changed since the last
- // request. Use googleapi.IsNotModified to check whether the response
- // error from Do is the result of In-None-Match.
- func (c *ProjectsInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsInstancesGetCall {
- c.ifNoneMatch_ = entityTag
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *ProjectsInstancesGetCall) Context(ctx context.Context) *ProjectsInstancesGetCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *ProjectsInstancesGetCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *ProjectsInstancesGetCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- c.urlParams_.Set("prettyPrint", "false")
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, err := http.NewRequest("GET", urls, body)
- if err != nil {
- return nil, err
- }
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "remotebuildexecution.projects.instances.get" call.
- // Exactly one of
- // *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance or error will
- // be non-nil. Any non-2xx status code is an error. Response headers are
- // in either
- // *GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance.ServerResponse
- // .Header or (if a response was returned at all) in
- // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
- // whether the returned error was because http.StatusNotModified was
- // returned.
- func (c *ProjectsInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Returns the specified instance.",
- // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}",
- // "httpMethod": "GET",
- // "id": "remotebuildexecution.projects.instances.get",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "Name of the instance to retrieve.\nFormat: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/instances/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha/{+name}",
- // "response": {
- // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "remotebuildexecution.projects.instances.list":
-
- type ProjectsInstancesListCall struct {
- s *Service
- parent string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
- }
-
- // List: Lists instances in a project.
- func (r *ProjectsInstancesService) List(parent string) *ProjectsInstancesListCall {
- c := &ProjectsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *ProjectsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsInstancesListCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // IfNoneMatch sets the optional parameter which makes the operation
- // fail if the object's ETag matches the given value. This is useful for
- // getting updates only after the object has changed since the last
- // request. Use googleapi.IsNotModified to check whether the response
- // error from Do is the result of In-None-Match.
- func (c *ProjectsInstancesListCall) IfNoneMatch(entityTag string) *ProjectsInstancesListCall {
- c.ifNoneMatch_ = entityTag
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *ProjectsInstancesListCall) Context(ctx context.Context) *ProjectsInstancesListCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *ProjectsInstancesListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *ProjectsInstancesListCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- c.urlParams_.Set("prettyPrint", "false")
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/instances")
- urls += "?" + c.urlParams_.Encode()
- req, err := http.NewRequest("GET", urls, body)
- if err != nil {
- return nil, err
- }
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "remotebuildexecution.projects.instances.list" call.
- // Exactly one of
- // *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse
- // or error will be non-nil. Any non-2xx status code is an error.
- // Response headers are in either
- // *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse.S
- // erverResponse.Header or (if a response was returned at all) in
- // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
- // whether the returned error was because http.StatusNotModified was
- // returned.
- func (c *ProjectsInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Lists instances in a project.",
- // "flatPath": "v1alpha/projects/{projectsId}/instances",
- // "httpMethod": "GET",
- // "id": "remotebuildexecution.projects.instances.list",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "Resource name of the project.\nFormat: `projects/[PROJECT_ID]`.",
- // "location": "path",
- // "pattern": "^projects/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha/{+parent}/instances",
- // "response": {
- // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "remotebuildexecution.projects.instances.workerpools.create":
-
- type ProjectsInstancesWorkerpoolsCreateCall struct {
- s *Service
- parent string
- googledevtoolsremotebuildexecutionadminv1alphacreateworkerpoolrequest *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Create: Creates a new worker pool with a specified size and
- // configuration.
- // Returns a long running operation which contains a worker pool
- // on
- // completion. While the long running operation is in progress, any call
- // to
- // `GetWorkerPool` returns a worker pool in state `CREATING`.
- func (r *ProjectsInstancesWorkerpoolsService) Create(parent string, googledevtoolsremotebuildexecutionadminv1alphacreateworkerpoolrequest *GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest) *ProjectsInstancesWorkerpoolsCreateCall {
- c := &ProjectsInstancesWorkerpoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- c.googledevtoolsremotebuildexecutionadminv1alphacreateworkerpoolrequest = googledevtoolsremotebuildexecutionadminv1alphacreateworkerpoolrequest
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *ProjectsInstancesWorkerpoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsInstancesWorkerpoolsCreateCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *ProjectsInstancesWorkerpoolsCreateCall) Context(ctx context.Context) *ProjectsInstancesWorkerpoolsCreateCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *ProjectsInstancesWorkerpoolsCreateCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *ProjectsInstancesWorkerpoolsCreateCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.googledevtoolsremotebuildexecutionadminv1alphacreateworkerpoolrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- c.urlParams_.Set("prettyPrint", "false")
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/workerpools")
- urls += "?" + c.urlParams_.Encode()
- req, err := http.NewRequest("POST", urls, body)
- if err != nil {
- return nil, err
- }
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "remotebuildexecution.projects.instances.workerpools.create" call.
- // Exactly one of *GoogleLongrunningOperation or error will be non-nil.
- // Any non-2xx status code is an error. Response headers are in either
- // *GoogleLongrunningOperation.ServerResponse.Header or (if a response
- // was returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *ProjectsInstancesWorkerpoolsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleLongrunningOperation{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Creates a new worker pool with a specified size and configuration.\nReturns a long running operation which contains a worker pool on\ncompletion. While the long running operation is in progress, any call to\n`GetWorkerPool` returns a worker pool in state `CREATING`.",
- // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}/workerpools",
- // "httpMethod": "POST",
- // "id": "remotebuildexecution.projects.instances.workerpools.create",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "Resource name of the instance in which to create the new worker pool.\nFormat: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/instances/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha/{+parent}/workerpools",
- // "request": {
- // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest"
- // },
- // "response": {
- // "$ref": "GoogleLongrunningOperation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "remotebuildexecution.projects.instances.workerpools.delete":
-
- type ProjectsInstancesWorkerpoolsDeleteCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Delete: Deletes the specified worker pool.
- // Returns a long running operation, which contains a
- // `google.protobuf.Empty`
- // response on completion.
- // While the long running operation is in progress, any call
- // to
- // `GetWorkerPool` returns a worker pool in state `DELETING`.
- func (r *ProjectsInstancesWorkerpoolsService) Delete(name string) *ProjectsInstancesWorkerpoolsDeleteCall {
- c := &ProjectsInstancesWorkerpoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *ProjectsInstancesWorkerpoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsInstancesWorkerpoolsDeleteCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *ProjectsInstancesWorkerpoolsDeleteCall) Context(ctx context.Context) *ProjectsInstancesWorkerpoolsDeleteCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *ProjectsInstancesWorkerpoolsDeleteCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *ProjectsInstancesWorkerpoolsDeleteCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- c.urlParams_.Set("prettyPrint", "false")
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, err := http.NewRequest("DELETE", urls, body)
- if err != nil {
- return nil, err
- }
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "remotebuildexecution.projects.instances.workerpools.delete" call.
- // Exactly one of *GoogleLongrunningOperation or error will be non-nil.
- // Any non-2xx status code is an error. Response headers are in either
- // *GoogleLongrunningOperation.ServerResponse.Header or (if a response
- // was returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *ProjectsInstancesWorkerpoolsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleLongrunningOperation{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Deletes the specified worker pool.\nReturns a long running operation, which contains a `google.protobuf.Empty`\nresponse on completion.\nWhile the long running operation is in progress, any call to\n`GetWorkerPool` returns a worker pool in state `DELETING`.",
- // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}/workerpools/{workerpoolsId}",
- // "httpMethod": "DELETE",
- // "id": "remotebuildexecution.projects.instances.workerpools.delete",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "Name of the worker pool to delete.\nFormat:\n`projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/instances/[^/]+/workerpools/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha/{+name}",
- // "response": {
- // "$ref": "GoogleLongrunningOperation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "remotebuildexecution.projects.instances.workerpools.get":
-
- type ProjectsInstancesWorkerpoolsGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
- }
-
- // Get: Returns the specified worker pool.
- func (r *ProjectsInstancesWorkerpoolsService) Get(name string) *ProjectsInstancesWorkerpoolsGetCall {
- c := &ProjectsInstancesWorkerpoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *ProjectsInstancesWorkerpoolsGetCall) Fields(s ...googleapi.Field) *ProjectsInstancesWorkerpoolsGetCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // IfNoneMatch sets the optional parameter which makes the operation
- // fail if the object's ETag matches the given value. This is useful for
- // getting updates only after the object has changed since the last
- // request. Use googleapi.IsNotModified to check whether the response
- // error from Do is the result of In-None-Match.
- func (c *ProjectsInstancesWorkerpoolsGetCall) IfNoneMatch(entityTag string) *ProjectsInstancesWorkerpoolsGetCall {
- c.ifNoneMatch_ = entityTag
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *ProjectsInstancesWorkerpoolsGetCall) Context(ctx context.Context) *ProjectsInstancesWorkerpoolsGetCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *ProjectsInstancesWorkerpoolsGetCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *ProjectsInstancesWorkerpoolsGetCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- c.urlParams_.Set("prettyPrint", "false")
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, err := http.NewRequest("GET", urls, body)
- if err != nil {
- return nil, err
- }
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "remotebuildexecution.projects.instances.workerpools.get" call.
- // Exactly one of
- // *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool or error
- // will be non-nil. Any non-2xx status code is an error. Response
- // headers are in either
- // *GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool.ServerRespon
- // se.Header or (if a response was returned at all) in
- // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
- // whether the returned error was because http.StatusNotModified was
- // returned.
- func (c *ProjectsInstancesWorkerpoolsGetCall) Do(opts ...googleapi.CallOption) (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Returns the specified worker pool.",
- // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}/workerpools/{workerpoolsId}",
- // "httpMethod": "GET",
- // "id": "remotebuildexecution.projects.instances.workerpools.get",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "Name of the worker pool to retrieve.\nFormat:\n`projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/instances/[^/]+/workerpools/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha/{+name}",
- // "response": {
- // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "remotebuildexecution.projects.instances.workerpools.list":
-
- type ProjectsInstancesWorkerpoolsListCall struct {
- s *Service
- parent string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
- }
-
- // List: Lists worker pools in an instance.
- func (r *ProjectsInstancesWorkerpoolsService) List(parent string) *ProjectsInstancesWorkerpoolsListCall {
- c := &ProjectsInstancesWorkerpoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.parent = parent
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *ProjectsInstancesWorkerpoolsListCall) Fields(s ...googleapi.Field) *ProjectsInstancesWorkerpoolsListCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // IfNoneMatch sets the optional parameter which makes the operation
- // fail if the object's ETag matches the given value. This is useful for
- // getting updates only after the object has changed since the last
- // request. Use googleapi.IsNotModified to check whether the response
- // error from Do is the result of In-None-Match.
- func (c *ProjectsInstancesWorkerpoolsListCall) IfNoneMatch(entityTag string) *ProjectsInstancesWorkerpoolsListCall {
- c.ifNoneMatch_ = entityTag
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *ProjectsInstancesWorkerpoolsListCall) Context(ctx context.Context) *ProjectsInstancesWorkerpoolsListCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *ProjectsInstancesWorkerpoolsListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *ProjectsInstancesWorkerpoolsListCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- c.urlParams_.Set("prettyPrint", "false")
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/workerpools")
- urls += "?" + c.urlParams_.Encode()
- req, err := http.NewRequest("GET", urls, body)
- if err != nil {
- return nil, err
- }
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "parent": c.parent,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "remotebuildexecution.projects.instances.workerpools.list" call.
- // Exactly one of
- // *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
- // or error will be non-nil. Any non-2xx status code is an error.
- // Response headers are in either
- // *GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse
- // .ServerResponse.Header or (if a response was returned at all) in
- // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
- // whether the returned error was because http.StatusNotModified was
- // returned.
- func (c *ProjectsInstancesWorkerpoolsListCall) Do(opts ...googleapi.CallOption) (*GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Lists worker pools in an instance.",
- // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}/workerpools",
- // "httpMethod": "GET",
- // "id": "remotebuildexecution.projects.instances.workerpools.list",
- // "parameterOrder": [
- // "parent"
- // ],
- // "parameters": {
- // "parent": {
- // "description": "Resource name of the instance.\nFormat: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/instances/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha/{+parent}/workerpools",
- // "response": {
- // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "remotebuildexecution.projects.instances.workerpools.patch":
-
- type ProjectsInstancesWorkerpoolsPatchCall struct {
- s *Service
- name string
- googledevtoolsremotebuildexecutionadminv1alphaupdateworkerpoolrequest *GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Patch: Updates an existing worker pool with a specified size and/or
- // configuration.
- // Returns a long running operation, which contains a worker pool
- // on
- // completion. While the long running operation is in progress, any call
- // to
- // `GetWorkerPool` returns a worker pool in state `UPDATING`.
- func (r *ProjectsInstancesWorkerpoolsService) Patch(name string, googledevtoolsremotebuildexecutionadminv1alphaupdateworkerpoolrequest *GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest) *ProjectsInstancesWorkerpoolsPatchCall {
- c := &ProjectsInstancesWorkerpoolsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- c.googledevtoolsremotebuildexecutionadminv1alphaupdateworkerpoolrequest = googledevtoolsremotebuildexecutionadminv1alphaupdateworkerpoolrequest
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *ProjectsInstancesWorkerpoolsPatchCall) Fields(s ...googleapi.Field) *ProjectsInstancesWorkerpoolsPatchCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *ProjectsInstancesWorkerpoolsPatchCall) Context(ctx context.Context) *ProjectsInstancesWorkerpoolsPatchCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *ProjectsInstancesWorkerpoolsPatchCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *ProjectsInstancesWorkerpoolsPatchCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.googledevtoolsremotebuildexecutionadminv1alphaupdateworkerpoolrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- c.urlParams_.Set("prettyPrint", "false")
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, err := http.NewRequest("PATCH", urls, body)
- if err != nil {
- return nil, err
- }
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "remotebuildexecution.projects.instances.workerpools.patch" call.
- // Exactly one of *GoogleLongrunningOperation or error will be non-nil.
- // Any non-2xx status code is an error. Response headers are in either
- // *GoogleLongrunningOperation.ServerResponse.Header or (if a response
- // was returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *ProjectsInstancesWorkerpoolsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleLongrunningOperation{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Updates an existing worker pool with a specified size and/or configuration.\nReturns a long running operation, which contains a worker pool on\ncompletion. While the long running operation is in progress, any call to\n`GetWorkerPool` returns a worker pool in state `UPDATING`.",
- // "flatPath": "v1alpha/projects/{projectsId}/instances/{instancesId}/workerpools/{workerpoolsId}",
- // "httpMethod": "PATCH",
- // "id": "remotebuildexecution.projects.instances.workerpools.patch",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "WorkerPool resource name formatted as:\n`projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.\nname should not be populated when creating a worker pool since it is\nprovided in the `poolId` field.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/instances/[^/]+/workerpools/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha/{+name}",
- // "request": {
- // "$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest"
- // },
- // "response": {
- // "$ref": "GoogleLongrunningOperation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "remotebuildexecution.projects.operations.get":
-
- type ProjectsOperationsGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
- }
-
- // Get: Gets the latest state of a long-running operation. Clients can
- // use this
- // method to poll the operation result at intervals as recommended by
- // the API
- // service.
- func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
- c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // IfNoneMatch sets the optional parameter which makes the operation
- // fail if the object's ETag matches the given value. This is useful for
- // getting updates only after the object has changed since the last
- // request. Use googleapi.IsNotModified to check whether the response
- // error from Do is the result of In-None-Match.
- func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
- c.ifNoneMatch_ = entityTag
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *ProjectsOperationsGetCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- c.urlParams_.Set("prettyPrint", "false")
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, err := http.NewRequest("GET", urls, body)
- if err != nil {
- return nil, err
- }
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "remotebuildexecution.projects.operations.get" call.
- // Exactly one of *GoogleLongrunningOperation or error will be non-nil.
- // Any non-2xx status code is an error. Response headers are in either
- // *GoogleLongrunningOperation.ServerResponse.Header or (if a response
- // was returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleLongrunningOperation{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
- // "flatPath": "v1alpha/projects/{projectsId}/operations/{operationsId}",
- // "httpMethod": "GET",
- // "id": "remotebuildexecution.projects.operations.get",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name of the operation resource.",
- // "location": "path",
- // "pattern": "^projects/[^/]+/operations/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v1alpha/{+name}",
- // "response": {
- // "$ref": "GoogleLongrunningOperation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
|