| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package codecommit
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
- )
- const opBatchGetRepositories = "BatchGetRepositories"
- // BatchGetRepositoriesRequest generates a "aws/request.Request" representing the
- // client's request for the BatchGetRepositories operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See BatchGetRepositories for more information on using the BatchGetRepositories
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the BatchGetRepositoriesRequest method.
- // req, resp := client.BatchGetRepositoriesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositories
- func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInput) (req *request.Request, output *BatchGetRepositoriesOutput) {
- op := &request.Operation{
- Name: opBatchGetRepositories,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &BatchGetRepositoriesInput{}
- }
- output = &BatchGetRepositoriesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // BatchGetRepositories API operation for AWS CodeCommit.
- //
- // Returns information about one or more repositories.
- //
- // The description field for a repository accepts all HTML characters and all
- // valid Unicode characters. Applications that do not HTML-encode the description
- // and display it in a web page could expose users to potentially malicious
- // code. Make sure that you HTML-encode the description field in any application
- // that uses this API to display the repository description on a web page.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation BatchGetRepositories for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNamesRequiredException "RepositoryNamesRequiredException"
- // A repository names object is required but was not specified.
- //
- // * ErrCodeMaximumRepositoryNamesExceededException "MaximumRepositoryNamesExceededException"
- // The maximum number of allowed repository names was exceeded. Currently, this
- // number is 25.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositories
- func (c *CodeCommit) BatchGetRepositories(input *BatchGetRepositoriesInput) (*BatchGetRepositoriesOutput, error) {
- req, out := c.BatchGetRepositoriesRequest(input)
- return out, req.Send()
- }
- // BatchGetRepositoriesWithContext is the same as BatchGetRepositories with the addition of
- // the ability to pass a context and additional request options.
- //
- // See BatchGetRepositories for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) BatchGetRepositoriesWithContext(ctx aws.Context, input *BatchGetRepositoriesInput, opts ...request.Option) (*BatchGetRepositoriesOutput, error) {
- req, out := c.BatchGetRepositoriesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateBranch = "CreateBranch"
- // CreateBranchRequest generates a "aws/request.Request" representing the
- // client's request for the CreateBranch operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateBranch for more information on using the CreateBranch
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateBranchRequest method.
- // req, resp := client.CreateBranchRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateBranch
- func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request.Request, output *CreateBranchOutput) {
- op := &request.Operation{
- Name: opCreateBranch,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateBranchInput{}
- }
- output = &CreateBranchOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // CreateBranch API operation for AWS CodeCommit.
- //
- // Creates a new branch in a repository and points the branch to a commit.
- //
- // Calling the create branch operation does not set a repository's default branch.
- // To do this, call the update default branch operation.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation CreateBranch for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeBranchNameRequiredException "BranchNameRequiredException"
- // A branch name is required but was not specified.
- //
- // * ErrCodeBranchNameExistsException "BranchNameExistsException"
- // The specified branch name already exists.
- //
- // * ErrCodeInvalidBranchNameException "InvalidBranchNameException"
- // The specified reference name is not valid.
- //
- // * ErrCodeCommitIdRequiredException "CommitIdRequiredException"
- // A commit ID was not specified.
- //
- // * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException"
- // The specified commit does not exist or no commit was specified, and the specified
- // repository has no default branch.
- //
- // * ErrCodeInvalidCommitIdException "InvalidCommitIdException"
- // The specified commit ID is not valid.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateBranch
- func (c *CodeCommit) CreateBranch(input *CreateBranchInput) (*CreateBranchOutput, error) {
- req, out := c.CreateBranchRequest(input)
- return out, req.Send()
- }
- // CreateBranchWithContext is the same as CreateBranch with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateBranch for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) CreateBranchWithContext(ctx aws.Context, input *CreateBranchInput, opts ...request.Option) (*CreateBranchOutput, error) {
- req, out := c.CreateBranchRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreatePullRequest = "CreatePullRequest"
- // CreatePullRequestRequest generates a "aws/request.Request" representing the
- // client's request for the CreatePullRequest operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreatePullRequest for more information on using the CreatePullRequest
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreatePullRequestRequest method.
- // req, resp := client.CreatePullRequestRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequest
- func (c *CodeCommit) CreatePullRequestRequest(input *CreatePullRequestInput) (req *request.Request, output *CreatePullRequestOutput) {
- op := &request.Operation{
- Name: opCreatePullRequest,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreatePullRequestInput{}
- }
- output = &CreatePullRequestOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreatePullRequest API operation for AWS CodeCommit.
- //
- // Creates a pull request in the specified repository.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation CreatePullRequest for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // * ErrCodeClientRequestTokenRequiredException "ClientRequestTokenRequiredException"
- // A client request token is required. A client request token is an unique,
- // client-generated idempotency token that when provided in a request, ensures
- // the request cannot be repeated with a changed parameter. If a request is
- // received with the same parameters and a token is included, the request will
- // return information about the initial request that used that token.
- //
- // * ErrCodeInvalidClientRequestTokenException "InvalidClientRequestTokenException"
- // The client request token is not valid.
- //
- // * ErrCodeIdempotencyParameterMismatchException "IdempotencyParameterMismatchException"
- // The client request token is not valid. Either the token is not in a valid
- // format, or the token has been used in a previous request and cannot be re-used.
- //
- // * ErrCodeReferenceNameRequiredException "ReferenceNameRequiredException"
- // A reference name is required, but none was provided.
- //
- // * ErrCodeInvalidReferenceNameException "InvalidReferenceNameException"
- // The specified reference name format is not valid. Reference names must conform
- // to the Git references format, for example refs/heads/master. For more information,
- // see Git Internals - Git References (https://git-scm.com/book/en/v2/Git-Internals-Git-References)
- // or consult your Git documentation.
- //
- // * ErrCodeReferenceDoesNotExistException "ReferenceDoesNotExistException"
- // The specified reference does not exist. You must provide a full commit ID.
- //
- // * ErrCodeReferenceTypeNotSupportedException "ReferenceTypeNotSupportedException"
- // The specified reference is not a supported type.
- //
- // * ErrCodeTitleRequiredException "TitleRequiredException"
- // A pull request title is required. It cannot be empty or null.
- //
- // * ErrCodeInvalidTitleException "InvalidTitleException"
- // The title of the pull request is not valid. Pull request titles cannot exceed
- // 100 characters in length.
- //
- // * ErrCodeInvalidDescriptionException "InvalidDescriptionException"
- // The pull request description is not valid. Descriptions are limited to 1,000
- // characters in length.
- //
- // * ErrCodeTargetsRequiredException "TargetsRequiredException"
- // An array of target objects is required. It cannot be empty or null.
- //
- // * ErrCodeInvalidTargetsException "InvalidTargetsException"
- // The targets for the pull request is not valid or not in a valid format. Targets
- // are a list of target objects. Each target object must contain the full values
- // for the repository name, source branch, and destination branch for a pull
- // request.
- //
- // * ErrCodeTargetRequiredException "TargetRequiredException"
- // A pull request target is required. It cannot be empty or null. A pull request
- // target must contain the full values for the repository name, source branch,
- // and destination branch for the pull request.
- //
- // * ErrCodeInvalidTargetException "InvalidTargetException"
- // The target for the pull request is not valid. A target must contain the full
- // values for the repository name, source branch, and destination branch for
- // the pull request.
- //
- // * ErrCodeMultipleRepositoriesInPullRequestException "MultipleRepositoriesInPullRequestException"
- // You cannot include more than one repository in a pull request. Make sure
- // you have specified only one repository name in your request, and then try
- // again.
- //
- // * ErrCodeMaximumOpenPullRequestsExceededException "MaximumOpenPullRequestsExceededException"
- // You cannot create the pull request because the repository has too many open
- // pull requests. The maximum number of open pull requests for a repository
- // is 1,000. Close one or more open pull requests, and then try again.
- //
- // * ErrCodeSourceAndDestinationAreSameException "SourceAndDestinationAreSameException"
- // The source branch and the destination branch for the pull request are the
- // same. You must specify different branches for the source and destination.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequest
- func (c *CodeCommit) CreatePullRequest(input *CreatePullRequestInput) (*CreatePullRequestOutput, error) {
- req, out := c.CreatePullRequestRequest(input)
- return out, req.Send()
- }
- // CreatePullRequestWithContext is the same as CreatePullRequest with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreatePullRequest for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) CreatePullRequestWithContext(ctx aws.Context, input *CreatePullRequestInput, opts ...request.Option) (*CreatePullRequestOutput, error) {
- req, out := c.CreatePullRequestRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateRepository = "CreateRepository"
- // CreateRepositoryRequest generates a "aws/request.Request" representing the
- // client's request for the CreateRepository operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateRepository for more information on using the CreateRepository
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateRepositoryRequest method.
- // req, resp := client.CreateRepositoryRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepository
- func (c *CodeCommit) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput) {
- op := &request.Operation{
- Name: opCreateRepository,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateRepositoryInput{}
- }
- output = &CreateRepositoryOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateRepository API operation for AWS CodeCommit.
- //
- // Creates a new, empty repository.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation CreateRepository for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameExistsException "RepositoryNameExistsException"
- // The specified repository name already exists.
- //
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeInvalidRepositoryDescriptionException "InvalidRepositoryDescriptionException"
- // The specified repository description is not valid.
- //
- // * ErrCodeRepositoryLimitExceededException "RepositoryLimitExceededException"
- // A repository resource limit was exceeded.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepository
- func (c *CodeCommit) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error) {
- req, out := c.CreateRepositoryRequest(input)
- return out, req.Send()
- }
- // CreateRepositoryWithContext is the same as CreateRepository with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateRepository for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) CreateRepositoryWithContext(ctx aws.Context, input *CreateRepositoryInput, opts ...request.Option) (*CreateRepositoryOutput, error) {
- req, out := c.CreateRepositoryRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteBranch = "DeleteBranch"
- // DeleteBranchRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteBranch operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteBranch for more information on using the DeleteBranch
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteBranchRequest method.
- // req, resp := client.DeleteBranchRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranch
- func (c *CodeCommit) DeleteBranchRequest(input *DeleteBranchInput) (req *request.Request, output *DeleteBranchOutput) {
- op := &request.Operation{
- Name: opDeleteBranch,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteBranchInput{}
- }
- output = &DeleteBranchOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DeleteBranch API operation for AWS CodeCommit.
- //
- // Deletes a branch from a repository, unless that branch is the default branch
- // for the repository.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation DeleteBranch for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeBranchNameRequiredException "BranchNameRequiredException"
- // A branch name is required but was not specified.
- //
- // * ErrCodeInvalidBranchNameException "InvalidBranchNameException"
- // The specified reference name is not valid.
- //
- // * ErrCodeDefaultBranchCannotBeDeletedException "DefaultBranchCannotBeDeletedException"
- // The specified branch is the default branch for the repository, and cannot
- // be deleted. To delete this branch, you must first set another branch as the
- // default branch.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranch
- func (c *CodeCommit) DeleteBranch(input *DeleteBranchInput) (*DeleteBranchOutput, error) {
- req, out := c.DeleteBranchRequest(input)
- return out, req.Send()
- }
- // DeleteBranchWithContext is the same as DeleteBranch with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteBranch for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) DeleteBranchWithContext(ctx aws.Context, input *DeleteBranchInput, opts ...request.Option) (*DeleteBranchOutput, error) {
- req, out := c.DeleteBranchRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteCommentContent = "DeleteCommentContent"
- // DeleteCommentContentRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteCommentContent operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteCommentContent for more information on using the DeleteCommentContent
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteCommentContentRequest method.
- // req, resp := client.DeleteCommentContentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteCommentContent
- func (c *CodeCommit) DeleteCommentContentRequest(input *DeleteCommentContentInput) (req *request.Request, output *DeleteCommentContentOutput) {
- op := &request.Operation{
- Name: opDeleteCommentContent,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteCommentContentInput{}
- }
- output = &DeleteCommentContentOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DeleteCommentContent API operation for AWS CodeCommit.
- //
- // Deletes the content of a comment made on a change, file, or commit in a repository.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation DeleteCommentContent for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeCommentDoesNotExistException "CommentDoesNotExistException"
- // No comment exists with the provided ID. Verify that you have provided the
- // correct ID, and then try again.
- //
- // * ErrCodeCommentIdRequiredException "CommentIdRequiredException"
- // The comment ID is missing or null. A comment ID is required.
- //
- // * ErrCodeInvalidCommentIdException "InvalidCommentIdException"
- // The comment ID is not in a valid format. Make sure that you have provided
- // the full comment ID.
- //
- // * ErrCodeCommentDeletedException "CommentDeletedException"
- // This comment has already been deleted. You cannot edit or delete a deleted
- // comment.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteCommentContent
- func (c *CodeCommit) DeleteCommentContent(input *DeleteCommentContentInput) (*DeleteCommentContentOutput, error) {
- req, out := c.DeleteCommentContentRequest(input)
- return out, req.Send()
- }
- // DeleteCommentContentWithContext is the same as DeleteCommentContent with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteCommentContent for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) DeleteCommentContentWithContext(ctx aws.Context, input *DeleteCommentContentInput, opts ...request.Option) (*DeleteCommentContentOutput, error) {
- req, out := c.DeleteCommentContentRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteFile = "DeleteFile"
- // DeleteFileRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteFile operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteFile for more information on using the DeleteFile
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteFileRequest method.
- // req, resp := client.DeleteFileRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFile
- func (c *CodeCommit) DeleteFileRequest(input *DeleteFileInput) (req *request.Request, output *DeleteFileOutput) {
- op := &request.Operation{
- Name: opDeleteFile,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteFileInput{}
- }
- output = &DeleteFileOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DeleteFile API operation for AWS CodeCommit.
- //
- // Deletes a specified file from a specified branch. A commit is created on
- // the branch that contains the revision. The file will still exist in the commits
- // prior to the commit that contains the deletion.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation DeleteFile for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeParentCommitIdRequiredException "ParentCommitIdRequiredException"
- // A parent commit ID is required. To view the full commit ID of a branch in
- // a repository, use GetBranch or a Git command (for example, git pull or git
- // log).
- //
- // * ErrCodeInvalidParentCommitIdException "InvalidParentCommitIdException"
- // The parent commit ID is not valid. The commit ID cannot be empty, and must
- // match the head commit ID for the branch of the repository where you want
- // to add or update a file.
- //
- // * ErrCodeParentCommitDoesNotExistException "ParentCommitDoesNotExistException"
- // The parent commit ID is not valid because it does not exist. The specified
- // parent commit ID does not exist in the specified branch of the repository.
- //
- // * ErrCodeParentCommitIdOutdatedException "ParentCommitIdOutdatedException"
- // The file could not be added because the provided parent commit ID is not
- // the current tip of the specified branch. To view the full commit ID of the
- // current head of the branch, use GetBranch.
- //
- // * ErrCodePathRequiredException "PathRequiredException"
- // The folderPath for a location cannot be null.
- //
- // * ErrCodeInvalidPathException "InvalidPathException"
- // The specified path is not valid.
- //
- // * ErrCodeFileDoesNotExistException "FileDoesNotExistException"
- // The specified file does not exist. Verify that you have provided the correct
- // name of the file, including its full path and extension.
- //
- // * ErrCodeBranchNameRequiredException "BranchNameRequiredException"
- // A branch name is required but was not specified.
- //
- // * ErrCodeInvalidBranchNameException "InvalidBranchNameException"
- // The specified reference name is not valid.
- //
- // * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException"
- // The specified branch does not exist.
- //
- // * ErrCodeBranchNameIsTagNameException "BranchNameIsTagNameException"
- // The specified branch name is not valid because it is a tag name. Type the
- // name of a current branch in the repository. For a list of valid branch names,
- // use ListBranches.
- //
- // * ErrCodeNameLengthExceededException "NameLengthExceededException"
- // The user name is not valid because it has exceeded the character limit for
- // file names. File names, including the path to the file, cannot exceed the
- // character limit.
- //
- // * ErrCodeInvalidEmailException "InvalidEmailException"
- // The specified email address either contains one or more characters that are
- // not allowed, or it exceeds the maximum number of characters allowed for an
- // email address.
- //
- // * ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException"
- // The commit message is too long. Provide a shorter string.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFile
- func (c *CodeCommit) DeleteFile(input *DeleteFileInput) (*DeleteFileOutput, error) {
- req, out := c.DeleteFileRequest(input)
- return out, req.Send()
- }
- // DeleteFileWithContext is the same as DeleteFile with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteFile for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) DeleteFileWithContext(ctx aws.Context, input *DeleteFileInput, opts ...request.Option) (*DeleteFileOutput, error) {
- req, out := c.DeleteFileRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteRepository = "DeleteRepository"
- // DeleteRepositoryRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteRepository operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteRepository for more information on using the DeleteRepository
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteRepositoryRequest method.
- // req, resp := client.DeleteRepositoryRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepository
- func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput) {
- op := &request.Operation{
- Name: opDeleteRepository,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteRepositoryInput{}
- }
- output = &DeleteRepositoryOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DeleteRepository API operation for AWS CodeCommit.
- //
- // Deletes a repository. If a specified repository was already deleted, a null
- // repository ID will be returned.
- //
- // Deleting a repository also deletes all associated objects and metadata. After
- // a repository is deleted, all future push calls to the deleted repository
- // will fail.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation DeleteRepository for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepository
- func (c *CodeCommit) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error) {
- req, out := c.DeleteRepositoryRequest(input)
- return out, req.Send()
- }
- // DeleteRepositoryWithContext is the same as DeleteRepository with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteRepository for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) DeleteRepositoryWithContext(ctx aws.Context, input *DeleteRepositoryInput, opts ...request.Option) (*DeleteRepositoryOutput, error) {
- req, out := c.DeleteRepositoryRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribePullRequestEvents = "DescribePullRequestEvents"
- // DescribePullRequestEventsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribePullRequestEvents operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribePullRequestEvents for more information on using the DescribePullRequestEvents
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribePullRequestEventsRequest method.
- // req, resp := client.DescribePullRequestEventsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribePullRequestEvents
- func (c *CodeCommit) DescribePullRequestEventsRequest(input *DescribePullRequestEventsInput) (req *request.Request, output *DescribePullRequestEventsOutput) {
- op := &request.Operation{
- Name: opDescribePullRequestEvents,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribePullRequestEventsInput{}
- }
- output = &DescribePullRequestEventsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribePullRequestEvents API operation for AWS CodeCommit.
- //
- // Returns information about one or more pull request events.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation DescribePullRequestEvents for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException"
- // The pull request ID could not be found. Make sure that you have specified
- // the correct repository name and pull request ID, and then try again.
- //
- // * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException"
- // The pull request ID is not valid. Make sure that you have provided the full
- // ID and that the pull request is in the specified repository, and then try
- // again.
- //
- // * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException"
- // A pull request ID is required, but none was provided.
- //
- // * ErrCodeInvalidPullRequestEventTypeException "InvalidPullRequestEventTypeException"
- // The pull request event type is not valid.
- //
- // * ErrCodeInvalidActorArnException "InvalidActorArnException"
- // The Amazon Resource Name (ARN) is not valid. Make sure that you have provided
- // the full ARN for the user who initiated the change for the pull request,
- // and then try again.
- //
- // * ErrCodeActorDoesNotExistException "ActorDoesNotExistException"
- // The specified Amazon Resource Name (ARN) does not exist in the AWS account.
- //
- // * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException"
- // The specified number of maximum results is not valid.
- //
- // * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException"
- // The specified continuation token is not valid.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribePullRequestEvents
- func (c *CodeCommit) DescribePullRequestEvents(input *DescribePullRequestEventsInput) (*DescribePullRequestEventsOutput, error) {
- req, out := c.DescribePullRequestEventsRequest(input)
- return out, req.Send()
- }
- // DescribePullRequestEventsWithContext is the same as DescribePullRequestEvents with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribePullRequestEvents for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) DescribePullRequestEventsWithContext(ctx aws.Context, input *DescribePullRequestEventsInput, opts ...request.Option) (*DescribePullRequestEventsOutput, error) {
- req, out := c.DescribePullRequestEventsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribePullRequestEventsPages iterates over the pages of a DescribePullRequestEvents operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribePullRequestEvents method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribePullRequestEvents operation.
- // pageNum := 0
- // err := client.DescribePullRequestEventsPages(params,
- // func(page *DescribePullRequestEventsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *CodeCommit) DescribePullRequestEventsPages(input *DescribePullRequestEventsInput, fn func(*DescribePullRequestEventsOutput, bool) bool) error {
- return c.DescribePullRequestEventsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribePullRequestEventsPagesWithContext same as DescribePullRequestEventsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) DescribePullRequestEventsPagesWithContext(ctx aws.Context, input *DescribePullRequestEventsInput, fn func(*DescribePullRequestEventsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribePullRequestEventsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribePullRequestEventsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribePullRequestEventsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opGetBlob = "GetBlob"
- // GetBlobRequest generates a "aws/request.Request" representing the
- // client's request for the GetBlob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetBlob for more information on using the GetBlob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetBlobRequest method.
- // req, resp := client.GetBlobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBlob
- func (c *CodeCommit) GetBlobRequest(input *GetBlobInput) (req *request.Request, output *GetBlobOutput) {
- op := &request.Operation{
- Name: opGetBlob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetBlobInput{}
- }
- output = &GetBlobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetBlob API operation for AWS CodeCommit.
- //
- // Returns the base-64 encoded content of an individual blob within a repository.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation GetBlob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeBlobIdRequiredException "BlobIdRequiredException"
- // A blob ID is required but was not specified.
- //
- // * ErrCodeInvalidBlobIdException "InvalidBlobIdException"
- // The specified blob is not valid.
- //
- // * ErrCodeBlobIdDoesNotExistException "BlobIdDoesNotExistException"
- // The specified blob does not exist.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // * ErrCodeFileTooLargeException "FileTooLargeException"
- // The specified file exceeds the file size limit for AWS CodeCommit. For more
- // information about limits in AWS CodeCommit, see AWS CodeCommit User Guide
- // (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBlob
- func (c *CodeCommit) GetBlob(input *GetBlobInput) (*GetBlobOutput, error) {
- req, out := c.GetBlobRequest(input)
- return out, req.Send()
- }
- // GetBlobWithContext is the same as GetBlob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetBlob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetBlobWithContext(ctx aws.Context, input *GetBlobInput, opts ...request.Option) (*GetBlobOutput, error) {
- req, out := c.GetBlobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetBranch = "GetBranch"
- // GetBranchRequest generates a "aws/request.Request" representing the
- // client's request for the GetBranch operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetBranch for more information on using the GetBranch
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetBranchRequest method.
- // req, resp := client.GetBranchRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBranch
- func (c *CodeCommit) GetBranchRequest(input *GetBranchInput) (req *request.Request, output *GetBranchOutput) {
- op := &request.Operation{
- Name: opGetBranch,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetBranchInput{}
- }
- output = &GetBranchOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetBranch API operation for AWS CodeCommit.
- //
- // Returns information about a repository branch, including its name and the
- // last commit ID.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation GetBranch for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeBranchNameRequiredException "BranchNameRequiredException"
- // A branch name is required but was not specified.
- //
- // * ErrCodeInvalidBranchNameException "InvalidBranchNameException"
- // The specified reference name is not valid.
- //
- // * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException"
- // The specified branch does not exist.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBranch
- func (c *CodeCommit) GetBranch(input *GetBranchInput) (*GetBranchOutput, error) {
- req, out := c.GetBranchRequest(input)
- return out, req.Send()
- }
- // GetBranchWithContext is the same as GetBranch with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetBranch for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetBranchWithContext(ctx aws.Context, input *GetBranchInput, opts ...request.Option) (*GetBranchOutput, error) {
- req, out := c.GetBranchRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetComment = "GetComment"
- // GetCommentRequest generates a "aws/request.Request" representing the
- // client's request for the GetComment operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetComment for more information on using the GetComment
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetCommentRequest method.
- // req, resp := client.GetCommentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetComment
- func (c *CodeCommit) GetCommentRequest(input *GetCommentInput) (req *request.Request, output *GetCommentOutput) {
- op := &request.Operation{
- Name: opGetComment,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetCommentInput{}
- }
- output = &GetCommentOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetComment API operation for AWS CodeCommit.
- //
- // Returns the content of a comment made on a change, file, or commit in a repository.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation GetComment for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeCommentDoesNotExistException "CommentDoesNotExistException"
- // No comment exists with the provided ID. Verify that you have provided the
- // correct ID, and then try again.
- //
- // * ErrCodeCommentIdRequiredException "CommentIdRequiredException"
- // The comment ID is missing or null. A comment ID is required.
- //
- // * ErrCodeInvalidCommentIdException "InvalidCommentIdException"
- // The comment ID is not in a valid format. Make sure that you have provided
- // the full comment ID.
- //
- // * ErrCodeCommentDeletedException "CommentDeletedException"
- // This comment has already been deleted. You cannot edit or delete a deleted
- // comment.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetComment
- func (c *CodeCommit) GetComment(input *GetCommentInput) (*GetCommentOutput, error) {
- req, out := c.GetCommentRequest(input)
- return out, req.Send()
- }
- // GetCommentWithContext is the same as GetComment with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetComment for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetCommentWithContext(ctx aws.Context, input *GetCommentInput, opts ...request.Option) (*GetCommentOutput, error) {
- req, out := c.GetCommentRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetCommentsForComparedCommit = "GetCommentsForComparedCommit"
- // GetCommentsForComparedCommitRequest generates a "aws/request.Request" representing the
- // client's request for the GetCommentsForComparedCommit operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetCommentsForComparedCommit for more information on using the GetCommentsForComparedCommit
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetCommentsForComparedCommitRequest method.
- // req, resp := client.GetCommentsForComparedCommitRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForComparedCommit
- func (c *CodeCommit) GetCommentsForComparedCommitRequest(input *GetCommentsForComparedCommitInput) (req *request.Request, output *GetCommentsForComparedCommitOutput) {
- op := &request.Operation{
- Name: opGetCommentsForComparedCommit,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetCommentsForComparedCommitInput{}
- }
- output = &GetCommentsForComparedCommitOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetCommentsForComparedCommit API operation for AWS CodeCommit.
- //
- // Returns information about comments made on the comparison between two commits.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation GetCommentsForComparedCommit for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeCommitIdRequiredException "CommitIdRequiredException"
- // A commit ID was not specified.
- //
- // * ErrCodeInvalidCommitIdException "InvalidCommitIdException"
- // The specified commit ID is not valid.
- //
- // * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException"
- // The specified commit does not exist or no commit was specified, and the specified
- // repository has no default branch.
- //
- // * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException"
- // The specified number of maximum results is not valid.
- //
- // * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException"
- // The specified continuation token is not valid.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForComparedCommit
- func (c *CodeCommit) GetCommentsForComparedCommit(input *GetCommentsForComparedCommitInput) (*GetCommentsForComparedCommitOutput, error) {
- req, out := c.GetCommentsForComparedCommitRequest(input)
- return out, req.Send()
- }
- // GetCommentsForComparedCommitWithContext is the same as GetCommentsForComparedCommit with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetCommentsForComparedCommit for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetCommentsForComparedCommitWithContext(ctx aws.Context, input *GetCommentsForComparedCommitInput, opts ...request.Option) (*GetCommentsForComparedCommitOutput, error) {
- req, out := c.GetCommentsForComparedCommitRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // GetCommentsForComparedCommitPages iterates over the pages of a GetCommentsForComparedCommit operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetCommentsForComparedCommit method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetCommentsForComparedCommit operation.
- // pageNum := 0
- // err := client.GetCommentsForComparedCommitPages(params,
- // func(page *GetCommentsForComparedCommitOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *CodeCommit) GetCommentsForComparedCommitPages(input *GetCommentsForComparedCommitInput, fn func(*GetCommentsForComparedCommitOutput, bool) bool) error {
- return c.GetCommentsForComparedCommitPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // GetCommentsForComparedCommitPagesWithContext same as GetCommentsForComparedCommitPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetCommentsForComparedCommitPagesWithContext(ctx aws.Context, input *GetCommentsForComparedCommitInput, fn func(*GetCommentsForComparedCommitOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *GetCommentsForComparedCommitInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.GetCommentsForComparedCommitRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*GetCommentsForComparedCommitOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opGetCommentsForPullRequest = "GetCommentsForPullRequest"
- // GetCommentsForPullRequestRequest generates a "aws/request.Request" representing the
- // client's request for the GetCommentsForPullRequest operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetCommentsForPullRequest for more information on using the GetCommentsForPullRequest
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetCommentsForPullRequestRequest method.
- // req, resp := client.GetCommentsForPullRequestRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForPullRequest
- func (c *CodeCommit) GetCommentsForPullRequestRequest(input *GetCommentsForPullRequestInput) (req *request.Request, output *GetCommentsForPullRequestOutput) {
- op := &request.Operation{
- Name: opGetCommentsForPullRequest,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetCommentsForPullRequestInput{}
- }
- output = &GetCommentsForPullRequestOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetCommentsForPullRequest API operation for AWS CodeCommit.
- //
- // Returns comments made on a pull request.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation GetCommentsForPullRequest for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException"
- // A pull request ID is required, but none was provided.
- //
- // * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException"
- // The pull request ID could not be found. Make sure that you have specified
- // the correct repository name and pull request ID, and then try again.
- //
- // * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException"
- // The pull request ID is not valid. Make sure that you have provided the full
- // ID and that the pull request is in the specified repository, and then try
- // again.
- //
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeCommitIdRequiredException "CommitIdRequiredException"
- // A commit ID was not specified.
- //
- // * ErrCodeInvalidCommitIdException "InvalidCommitIdException"
- // The specified commit ID is not valid.
- //
- // * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException"
- // The specified commit does not exist or no commit was specified, and the specified
- // repository has no default branch.
- //
- // * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException"
- // The specified number of maximum results is not valid.
- //
- // * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException"
- // The specified continuation token is not valid.
- //
- // * ErrCodeRepositoryNotAssociatedWithPullRequestException "RepositoryNotAssociatedWithPullRequestException"
- // The repository does not contain any pull requests with that pull request
- // ID. Check to make sure you have provided the correct repository name for
- // the pull request.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForPullRequest
- func (c *CodeCommit) GetCommentsForPullRequest(input *GetCommentsForPullRequestInput) (*GetCommentsForPullRequestOutput, error) {
- req, out := c.GetCommentsForPullRequestRequest(input)
- return out, req.Send()
- }
- // GetCommentsForPullRequestWithContext is the same as GetCommentsForPullRequest with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetCommentsForPullRequest for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetCommentsForPullRequestWithContext(ctx aws.Context, input *GetCommentsForPullRequestInput, opts ...request.Option) (*GetCommentsForPullRequestOutput, error) {
- req, out := c.GetCommentsForPullRequestRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // GetCommentsForPullRequestPages iterates over the pages of a GetCommentsForPullRequest operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetCommentsForPullRequest method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetCommentsForPullRequest operation.
- // pageNum := 0
- // err := client.GetCommentsForPullRequestPages(params,
- // func(page *GetCommentsForPullRequestOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *CodeCommit) GetCommentsForPullRequestPages(input *GetCommentsForPullRequestInput, fn func(*GetCommentsForPullRequestOutput, bool) bool) error {
- return c.GetCommentsForPullRequestPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // GetCommentsForPullRequestPagesWithContext same as GetCommentsForPullRequestPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetCommentsForPullRequestPagesWithContext(ctx aws.Context, input *GetCommentsForPullRequestInput, fn func(*GetCommentsForPullRequestOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *GetCommentsForPullRequestInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.GetCommentsForPullRequestRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*GetCommentsForPullRequestOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opGetCommit = "GetCommit"
- // GetCommitRequest generates a "aws/request.Request" representing the
- // client's request for the GetCommit operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetCommit for more information on using the GetCommit
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetCommitRequest method.
- // req, resp := client.GetCommitRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommit
- func (c *CodeCommit) GetCommitRequest(input *GetCommitInput) (req *request.Request, output *GetCommitOutput) {
- op := &request.Operation{
- Name: opGetCommit,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetCommitInput{}
- }
- output = &GetCommitOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetCommit API operation for AWS CodeCommit.
- //
- // Returns information about a commit, including commit message and committer
- // information.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation GetCommit for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeCommitIdRequiredException "CommitIdRequiredException"
- // A commit ID was not specified.
- //
- // * ErrCodeInvalidCommitIdException "InvalidCommitIdException"
- // The specified commit ID is not valid.
- //
- // * ErrCodeCommitIdDoesNotExistException "CommitIdDoesNotExistException"
- // The specified commit ID does not exist.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommit
- func (c *CodeCommit) GetCommit(input *GetCommitInput) (*GetCommitOutput, error) {
- req, out := c.GetCommitRequest(input)
- return out, req.Send()
- }
- // GetCommitWithContext is the same as GetCommit with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetCommit for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetCommitWithContext(ctx aws.Context, input *GetCommitInput, opts ...request.Option) (*GetCommitOutput, error) {
- req, out := c.GetCommitRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetDifferences = "GetDifferences"
- // GetDifferencesRequest generates a "aws/request.Request" representing the
- // client's request for the GetDifferences operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetDifferences for more information on using the GetDifferences
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetDifferencesRequest method.
- // req, resp := client.GetDifferencesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetDifferences
- func (c *CodeCommit) GetDifferencesRequest(input *GetDifferencesInput) (req *request.Request, output *GetDifferencesOutput) {
- op := &request.Operation{
- Name: opGetDifferences,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetDifferencesInput{}
- }
- output = &GetDifferencesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetDifferences API operation for AWS CodeCommit.
- //
- // Returns information about the differences in a valid commit specifier (such
- // as a branch, tag, HEAD, commit ID or other fully qualified reference). Results
- // can be limited to a specified path.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation GetDifferences for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException"
- // The specified continuation token is not valid.
- //
- // * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException"
- // The specified number of maximum results is not valid.
- //
- // * ErrCodeInvalidCommitIdException "InvalidCommitIdException"
- // The specified commit ID is not valid.
- //
- // * ErrCodeCommitRequiredException "CommitRequiredException"
- // A commit was not specified.
- //
- // * ErrCodeInvalidCommitException "InvalidCommitException"
- // The specified commit is not valid.
- //
- // * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException"
- // The specified commit does not exist or no commit was specified, and the specified
- // repository has no default branch.
- //
- // * ErrCodeInvalidPathException "InvalidPathException"
- // The specified path is not valid.
- //
- // * ErrCodePathDoesNotExistException "PathDoesNotExistException"
- // The specified path does not exist.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetDifferences
- func (c *CodeCommit) GetDifferences(input *GetDifferencesInput) (*GetDifferencesOutput, error) {
- req, out := c.GetDifferencesRequest(input)
- return out, req.Send()
- }
- // GetDifferencesWithContext is the same as GetDifferences with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetDifferences for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetDifferencesWithContext(ctx aws.Context, input *GetDifferencesInput, opts ...request.Option) (*GetDifferencesOutput, error) {
- req, out := c.GetDifferencesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // GetDifferencesPages iterates over the pages of a GetDifferences operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetDifferences method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetDifferences operation.
- // pageNum := 0
- // err := client.GetDifferencesPages(params,
- // func(page *GetDifferencesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *CodeCommit) GetDifferencesPages(input *GetDifferencesInput, fn func(*GetDifferencesOutput, bool) bool) error {
- return c.GetDifferencesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // GetDifferencesPagesWithContext same as GetDifferencesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetDifferencesPagesWithContext(ctx aws.Context, input *GetDifferencesInput, fn func(*GetDifferencesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *GetDifferencesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.GetDifferencesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*GetDifferencesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opGetFile = "GetFile"
- // GetFileRequest generates a "aws/request.Request" representing the
- // client's request for the GetFile operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetFile for more information on using the GetFile
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetFileRequest method.
- // req, resp := client.GetFileRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFile
- func (c *CodeCommit) GetFileRequest(input *GetFileInput) (req *request.Request, output *GetFileOutput) {
- op := &request.Operation{
- Name: opGetFile,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetFileInput{}
- }
- output = &GetFileOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetFile API operation for AWS CodeCommit.
- //
- // Returns the base-64 encoded contents of a specified file and its metadata.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation GetFile for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidCommitException "InvalidCommitException"
- // The specified commit is not valid.
- //
- // * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException"
- // The specified commit does not exist or no commit was specified, and the specified
- // repository has no default branch.
- //
- // * ErrCodePathRequiredException "PathRequiredException"
- // The folderPath for a location cannot be null.
- //
- // * ErrCodeInvalidPathException "InvalidPathException"
- // The specified path is not valid.
- //
- // * ErrCodeFileDoesNotExistException "FileDoesNotExistException"
- // The specified file does not exist. Verify that you have provided the correct
- // name of the file, including its full path and extension.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // * ErrCodeFileTooLargeException "FileTooLargeException"
- // The specified file exceeds the file size limit for AWS CodeCommit. For more
- // information about limits in AWS CodeCommit, see AWS CodeCommit User Guide
- // (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFile
- func (c *CodeCommit) GetFile(input *GetFileInput) (*GetFileOutput, error) {
- req, out := c.GetFileRequest(input)
- return out, req.Send()
- }
- // GetFileWithContext is the same as GetFile with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetFile for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetFileWithContext(ctx aws.Context, input *GetFileInput, opts ...request.Option) (*GetFileOutput, error) {
- req, out := c.GetFileRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetFolder = "GetFolder"
- // GetFolderRequest generates a "aws/request.Request" representing the
- // client's request for the GetFolder operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetFolder for more information on using the GetFolder
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetFolderRequest method.
- // req, resp := client.GetFolderRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFolder
- func (c *CodeCommit) GetFolderRequest(input *GetFolderInput) (req *request.Request, output *GetFolderOutput) {
- op := &request.Operation{
- Name: opGetFolder,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetFolderInput{}
- }
- output = &GetFolderOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetFolder API operation for AWS CodeCommit.
- //
- // Returns the contents of a specified folder in a repository.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation GetFolder for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidCommitException "InvalidCommitException"
- // The specified commit is not valid.
- //
- // * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException"
- // The specified commit does not exist or no commit was specified, and the specified
- // repository has no default branch.
- //
- // * ErrCodePathRequiredException "PathRequiredException"
- // The folderPath for a location cannot be null.
- //
- // * ErrCodeInvalidPathException "InvalidPathException"
- // The specified path is not valid.
- //
- // * ErrCodeFolderDoesNotExistException "FolderDoesNotExistException"
- // The specified folder does not exist. Either the folder name is not correct,
- // or you did not provide the full path to the folder.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFolder
- func (c *CodeCommit) GetFolder(input *GetFolderInput) (*GetFolderOutput, error) {
- req, out := c.GetFolderRequest(input)
- return out, req.Send()
- }
- // GetFolderWithContext is the same as GetFolder with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetFolder for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetFolderWithContext(ctx aws.Context, input *GetFolderInput, opts ...request.Option) (*GetFolderOutput, error) {
- req, out := c.GetFolderRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetMergeConflicts = "GetMergeConflicts"
- // GetMergeConflictsRequest generates a "aws/request.Request" representing the
- // client's request for the GetMergeConflicts operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetMergeConflicts for more information on using the GetMergeConflicts
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetMergeConflictsRequest method.
- // req, resp := client.GetMergeConflictsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflicts
- func (c *CodeCommit) GetMergeConflictsRequest(input *GetMergeConflictsInput) (req *request.Request, output *GetMergeConflictsOutput) {
- op := &request.Operation{
- Name: opGetMergeConflicts,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetMergeConflictsInput{}
- }
- output = &GetMergeConflictsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetMergeConflicts API operation for AWS CodeCommit.
- //
- // Returns information about merge conflicts between the before and after commit
- // IDs for a pull request in a repository.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation GetMergeConflicts for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeMergeOptionRequiredException "MergeOptionRequiredException"
- // A merge option or stategy is required, and none was provided.
- //
- // * ErrCodeInvalidMergeOptionException "InvalidMergeOptionException"
- // The specified merge option is not valid. The only valid value is FAST_FORWARD_MERGE.
- //
- // * ErrCodeInvalidDestinationCommitSpecifierException "InvalidDestinationCommitSpecifierException"
- // The destination commit specifier is not valid. You must provide a valid branch
- // name, tag, or full commit ID.
- //
- // * ErrCodeInvalidSourceCommitSpecifierException "InvalidSourceCommitSpecifierException"
- // The source commit specifier is not valid. You must provide a valid branch
- // name, tag, or full commit ID.
- //
- // * ErrCodeCommitRequiredException "CommitRequiredException"
- // A commit was not specified.
- //
- // * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException"
- // The specified commit does not exist or no commit was specified, and the specified
- // repository has no default branch.
- //
- // * ErrCodeInvalidCommitException "InvalidCommitException"
- // The specified commit is not valid.
- //
- // * ErrCodeTipsDivergenceExceededException "TipsDivergenceExceededException"
- // The divergence between the tips of the provided commit specifiers is too
- // great to determine whether there might be any merge conflicts. Locally compare
- // the specifiers using git diff or a diff tool.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflicts
- func (c *CodeCommit) GetMergeConflicts(input *GetMergeConflictsInput) (*GetMergeConflictsOutput, error) {
- req, out := c.GetMergeConflictsRequest(input)
- return out, req.Send()
- }
- // GetMergeConflictsWithContext is the same as GetMergeConflicts with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetMergeConflicts for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetMergeConflictsWithContext(ctx aws.Context, input *GetMergeConflictsInput, opts ...request.Option) (*GetMergeConflictsOutput, error) {
- req, out := c.GetMergeConflictsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetPullRequest = "GetPullRequest"
- // GetPullRequestRequest generates a "aws/request.Request" representing the
- // client's request for the GetPullRequest operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetPullRequest for more information on using the GetPullRequest
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetPullRequestRequest method.
- // req, resp := client.GetPullRequestRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest
- func (c *CodeCommit) GetPullRequestRequest(input *GetPullRequestInput) (req *request.Request, output *GetPullRequestOutput) {
- op := &request.Operation{
- Name: opGetPullRequest,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetPullRequestInput{}
- }
- output = &GetPullRequestOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetPullRequest API operation for AWS CodeCommit.
- //
- // Gets information about a pull request in a specified repository.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation GetPullRequest for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException"
- // The pull request ID could not be found. Make sure that you have specified
- // the correct repository name and pull request ID, and then try again.
- //
- // * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException"
- // The pull request ID is not valid. Make sure that you have provided the full
- // ID and that the pull request is in the specified repository, and then try
- // again.
- //
- // * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException"
- // A pull request ID is required, but none was provided.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest
- func (c *CodeCommit) GetPullRequest(input *GetPullRequestInput) (*GetPullRequestOutput, error) {
- req, out := c.GetPullRequestRequest(input)
- return out, req.Send()
- }
- // GetPullRequestWithContext is the same as GetPullRequest with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetPullRequest for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetPullRequestWithContext(ctx aws.Context, input *GetPullRequestInput, opts ...request.Option) (*GetPullRequestOutput, error) {
- req, out := c.GetPullRequestRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetRepository = "GetRepository"
- // GetRepositoryRequest generates a "aws/request.Request" representing the
- // client's request for the GetRepository operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetRepository for more information on using the GetRepository
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetRepositoryRequest method.
- // req, resp := client.GetRepositoryRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepository
- func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *request.Request, output *GetRepositoryOutput) {
- op := &request.Operation{
- Name: opGetRepository,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetRepositoryInput{}
- }
- output = &GetRepositoryOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetRepository API operation for AWS CodeCommit.
- //
- // Returns information about a repository.
- //
- // The description field for a repository accepts all HTML characters and all
- // valid Unicode characters. Applications that do not HTML-encode the description
- // and display it in a web page could expose users to potentially malicious
- // code. Make sure that you HTML-encode the description field in any application
- // that uses this API to display the repository description on a web page.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation GetRepository for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepository
- func (c *CodeCommit) GetRepository(input *GetRepositoryInput) (*GetRepositoryOutput, error) {
- req, out := c.GetRepositoryRequest(input)
- return out, req.Send()
- }
- // GetRepositoryWithContext is the same as GetRepository with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetRepository for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetRepositoryWithContext(ctx aws.Context, input *GetRepositoryInput, opts ...request.Option) (*GetRepositoryOutput, error) {
- req, out := c.GetRepositoryRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetRepositoryTriggers = "GetRepositoryTriggers"
- // GetRepositoryTriggersRequest generates a "aws/request.Request" representing the
- // client's request for the GetRepositoryTriggers operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetRepositoryTriggers for more information on using the GetRepositoryTriggers
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetRepositoryTriggersRequest method.
- // req, resp := client.GetRepositoryTriggersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepositoryTriggers
- func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersInput) (req *request.Request, output *GetRepositoryTriggersOutput) {
- op := &request.Operation{
- Name: opGetRepositoryTriggers,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetRepositoryTriggersInput{}
- }
- output = &GetRepositoryTriggersOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetRepositoryTriggers API operation for AWS CodeCommit.
- //
- // Gets information about triggers configured for a repository.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation GetRepositoryTriggers for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepositoryTriggers
- func (c *CodeCommit) GetRepositoryTriggers(input *GetRepositoryTriggersInput) (*GetRepositoryTriggersOutput, error) {
- req, out := c.GetRepositoryTriggersRequest(input)
- return out, req.Send()
- }
- // GetRepositoryTriggersWithContext is the same as GetRepositoryTriggers with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetRepositoryTriggers for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) GetRepositoryTriggersWithContext(ctx aws.Context, input *GetRepositoryTriggersInput, opts ...request.Option) (*GetRepositoryTriggersOutput, error) {
- req, out := c.GetRepositoryTriggersRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListBranches = "ListBranches"
- // ListBranchesRequest generates a "aws/request.Request" representing the
- // client's request for the ListBranches operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListBranches for more information on using the ListBranches
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListBranchesRequest method.
- // req, resp := client.ListBranchesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListBranches
- func (c *CodeCommit) ListBranchesRequest(input *ListBranchesInput) (req *request.Request, output *ListBranchesOutput) {
- op := &request.Operation{
- Name: opListBranches,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListBranchesInput{}
- }
- output = &ListBranchesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListBranches API operation for AWS CodeCommit.
- //
- // Gets information about one or more branches in a repository.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation ListBranches for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException"
- // The specified continuation token is not valid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListBranches
- func (c *CodeCommit) ListBranches(input *ListBranchesInput) (*ListBranchesOutput, error) {
- req, out := c.ListBranchesRequest(input)
- return out, req.Send()
- }
- // ListBranchesWithContext is the same as ListBranches with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListBranches for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) ListBranchesWithContext(ctx aws.Context, input *ListBranchesInput, opts ...request.Option) (*ListBranchesOutput, error) {
- req, out := c.ListBranchesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListBranchesPages iterates over the pages of a ListBranches operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListBranches method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListBranches operation.
- // pageNum := 0
- // err := client.ListBranchesPages(params,
- // func(page *ListBranchesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *CodeCommit) ListBranchesPages(input *ListBranchesInput, fn func(*ListBranchesOutput, bool) bool) error {
- return c.ListBranchesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListBranchesPagesWithContext same as ListBranchesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) ListBranchesPagesWithContext(ctx aws.Context, input *ListBranchesInput, fn func(*ListBranchesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListBranchesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListBranchesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListBranchesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListPullRequests = "ListPullRequests"
- // ListPullRequestsRequest generates a "aws/request.Request" representing the
- // client's request for the ListPullRequests operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListPullRequests for more information on using the ListPullRequests
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListPullRequestsRequest method.
- // req, resp := client.ListPullRequestsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListPullRequests
- func (c *CodeCommit) ListPullRequestsRequest(input *ListPullRequestsInput) (req *request.Request, output *ListPullRequestsOutput) {
- op := &request.Operation{
- Name: opListPullRequests,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListPullRequestsInput{}
- }
- output = &ListPullRequestsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListPullRequests API operation for AWS CodeCommit.
- //
- // Returns a list of pull requests for a specified repository. The return list
- // can be refined by pull request status or pull request author ARN.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation ListPullRequests for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidPullRequestStatusException "InvalidPullRequestStatusException"
- // The pull request status is not valid. The only valid values are OPEN and
- // CLOSED.
- //
- // * ErrCodeInvalidAuthorArnException "InvalidAuthorArnException"
- // The Amazon Resource Name (ARN) is not valid. Make sure that you have provided
- // the full ARN for the author of the pull request, and then try again.
- //
- // * ErrCodeAuthorDoesNotExistException "AuthorDoesNotExistException"
- // The specified Amazon Resource Name (ARN) does not exist in the AWS account.
- //
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException"
- // The specified number of maximum results is not valid.
- //
- // * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException"
- // The specified continuation token is not valid.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListPullRequests
- func (c *CodeCommit) ListPullRequests(input *ListPullRequestsInput) (*ListPullRequestsOutput, error) {
- req, out := c.ListPullRequestsRequest(input)
- return out, req.Send()
- }
- // ListPullRequestsWithContext is the same as ListPullRequests with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListPullRequests for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) ListPullRequestsWithContext(ctx aws.Context, input *ListPullRequestsInput, opts ...request.Option) (*ListPullRequestsOutput, error) {
- req, out := c.ListPullRequestsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListPullRequestsPages iterates over the pages of a ListPullRequests operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListPullRequests method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListPullRequests operation.
- // pageNum := 0
- // err := client.ListPullRequestsPages(params,
- // func(page *ListPullRequestsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *CodeCommit) ListPullRequestsPages(input *ListPullRequestsInput, fn func(*ListPullRequestsOutput, bool) bool) error {
- return c.ListPullRequestsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListPullRequestsPagesWithContext same as ListPullRequestsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) ListPullRequestsPagesWithContext(ctx aws.Context, input *ListPullRequestsInput, fn func(*ListPullRequestsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListPullRequestsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListPullRequestsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListPullRequestsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListRepositories = "ListRepositories"
- // ListRepositoriesRequest generates a "aws/request.Request" representing the
- // client's request for the ListRepositories operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListRepositories for more information on using the ListRepositories
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListRepositoriesRequest method.
- // req, resp := client.ListRepositoriesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositories
- func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req *request.Request, output *ListRepositoriesOutput) {
- op := &request.Operation{
- Name: opListRepositories,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListRepositoriesInput{}
- }
- output = &ListRepositoriesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListRepositories API operation for AWS CodeCommit.
- //
- // Gets information about one or more repositories.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation ListRepositories for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidSortByException "InvalidSortByException"
- // The specified sort by value is not valid.
- //
- // * ErrCodeInvalidOrderException "InvalidOrderException"
- // The specified sort order is not valid.
- //
- // * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException"
- // The specified continuation token is not valid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositories
- func (c *CodeCommit) ListRepositories(input *ListRepositoriesInput) (*ListRepositoriesOutput, error) {
- req, out := c.ListRepositoriesRequest(input)
- return out, req.Send()
- }
- // ListRepositoriesWithContext is the same as ListRepositories with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListRepositories for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) ListRepositoriesWithContext(ctx aws.Context, input *ListRepositoriesInput, opts ...request.Option) (*ListRepositoriesOutput, error) {
- req, out := c.ListRepositoriesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListRepositoriesPages iterates over the pages of a ListRepositories operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListRepositories method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListRepositories operation.
- // pageNum := 0
- // err := client.ListRepositoriesPages(params,
- // func(page *ListRepositoriesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *CodeCommit) ListRepositoriesPages(input *ListRepositoriesInput, fn func(*ListRepositoriesOutput, bool) bool) error {
- return c.ListRepositoriesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListRepositoriesPagesWithContext same as ListRepositoriesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) ListRepositoriesPagesWithContext(ctx aws.Context, input *ListRepositoriesInput, fn func(*ListRepositoriesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListRepositoriesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListRepositoriesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListRepositoriesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opMergePullRequestByFastForward = "MergePullRequestByFastForward"
- // MergePullRequestByFastForwardRequest generates a "aws/request.Request" representing the
- // client's request for the MergePullRequestByFastForward operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See MergePullRequestByFastForward for more information on using the MergePullRequestByFastForward
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the MergePullRequestByFastForwardRequest method.
- // req, resp := client.MergePullRequestByFastForwardRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByFastForward
- func (c *CodeCommit) MergePullRequestByFastForwardRequest(input *MergePullRequestByFastForwardInput) (req *request.Request, output *MergePullRequestByFastForwardOutput) {
- op := &request.Operation{
- Name: opMergePullRequestByFastForward,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &MergePullRequestByFastForwardInput{}
- }
- output = &MergePullRequestByFastForwardOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // MergePullRequestByFastForward API operation for AWS CodeCommit.
- //
- // Closes a pull request and attempts to merge the source commit of a pull request
- // into the specified destination branch for that pull request at the specified
- // commit using the fast-forward merge option.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation MergePullRequestByFastForward for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeManualMergeRequiredException "ManualMergeRequiredException"
- // The pull request cannot be merged automatically into the destination branch.
- // You must manually merge the branches and resolve any conflicts.
- //
- // * ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException"
- // The pull request status cannot be updated because it is already closed.
- //
- // * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException"
- // The pull request ID could not be found. Make sure that you have specified
- // the correct repository name and pull request ID, and then try again.
- //
- // * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException"
- // The pull request ID is not valid. Make sure that you have provided the full
- // ID and that the pull request is in the specified repository, and then try
- // again.
- //
- // * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException"
- // A pull request ID is required, but none was provided.
- //
- // * ErrCodeTipOfSourceReferenceIsDifferentException "TipOfSourceReferenceIsDifferentException"
- // The tip of the source branch in the destination repository does not match
- // the tip of the source branch specified in your request. The pull request
- // might have been updated. Make sure that you have the latest changes.
- //
- // * ErrCodeReferenceDoesNotExistException "ReferenceDoesNotExistException"
- // The specified reference does not exist. You must provide a full commit ID.
- //
- // * ErrCodeInvalidCommitIdException "InvalidCommitIdException"
- // The specified commit ID is not valid.
- //
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByFastForward
- func (c *CodeCommit) MergePullRequestByFastForward(input *MergePullRequestByFastForwardInput) (*MergePullRequestByFastForwardOutput, error) {
- req, out := c.MergePullRequestByFastForwardRequest(input)
- return out, req.Send()
- }
- // MergePullRequestByFastForwardWithContext is the same as MergePullRequestByFastForward with the addition of
- // the ability to pass a context and additional request options.
- //
- // See MergePullRequestByFastForward for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) MergePullRequestByFastForwardWithContext(ctx aws.Context, input *MergePullRequestByFastForwardInput, opts ...request.Option) (*MergePullRequestByFastForwardOutput, error) {
- req, out := c.MergePullRequestByFastForwardRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPostCommentForComparedCommit = "PostCommentForComparedCommit"
- // PostCommentForComparedCommitRequest generates a "aws/request.Request" representing the
- // client's request for the PostCommentForComparedCommit operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PostCommentForComparedCommit for more information on using the PostCommentForComparedCommit
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PostCommentForComparedCommitRequest method.
- // req, resp := client.PostCommentForComparedCommitRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForComparedCommit
- func (c *CodeCommit) PostCommentForComparedCommitRequest(input *PostCommentForComparedCommitInput) (req *request.Request, output *PostCommentForComparedCommitOutput) {
- op := &request.Operation{
- Name: opPostCommentForComparedCommit,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PostCommentForComparedCommitInput{}
- }
- output = &PostCommentForComparedCommitOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // PostCommentForComparedCommit API operation for AWS CodeCommit.
- //
- // Posts a comment on the comparison between two commits.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation PostCommentForComparedCommit for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeClientRequestTokenRequiredException "ClientRequestTokenRequiredException"
- // A client request token is required. A client request token is an unique,
- // client-generated idempotency token that when provided in a request, ensures
- // the request cannot be repeated with a changed parameter. If a request is
- // received with the same parameters and a token is included, the request will
- // return information about the initial request that used that token.
- //
- // * ErrCodeInvalidClientRequestTokenException "InvalidClientRequestTokenException"
- // The client request token is not valid.
- //
- // * ErrCodeIdempotencyParameterMismatchException "IdempotencyParameterMismatchException"
- // The client request token is not valid. Either the token is not in a valid
- // format, or the token has been used in a previous request and cannot be re-used.
- //
- // * ErrCodeCommentContentRequiredException "CommentContentRequiredException"
- // The comment is empty. You must provide some content for a comment. The content
- // cannot be null.
- //
- // * ErrCodeCommentContentSizeLimitExceededException "CommentContentSizeLimitExceededException"
- // The comment is too large. Comments are limited to 1,000 characters.
- //
- // * ErrCodeInvalidFileLocationException "InvalidFileLocationException"
- // The location of the file is not valid. Make sure that you include the extension
- // of the file as well as the file name.
- //
- // * ErrCodeInvalidRelativeFileVersionEnumException "InvalidRelativeFileVersionEnumException"
- // Either the enum is not in a valid format, or the specified file version enum
- // is not valid in respect to the current file version.
- //
- // * ErrCodePathRequiredException "PathRequiredException"
- // The folderPath for a location cannot be null.
- //
- // * ErrCodeInvalidFilePositionException "InvalidFilePositionException"
- // The position is not valid. Make sure that the line number exists in the version
- // of the file you want to comment on.
- //
- // * ErrCodeCommitIdRequiredException "CommitIdRequiredException"
- // A commit ID was not specified.
- //
- // * ErrCodeInvalidCommitIdException "InvalidCommitIdException"
- // The specified commit ID is not valid.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // * ErrCodeBeforeCommitIdAndAfterCommitIdAreSameException "BeforeCommitIdAndAfterCommitIdAreSameException"
- // The before commit ID and the after commit ID are the same, which is not valid.
- // The before commit ID and the after commit ID must be different commit IDs.
- //
- // * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException"
- // The specified commit does not exist or no commit was specified, and the specified
- // repository has no default branch.
- //
- // * ErrCodeInvalidPathException "InvalidPathException"
- // The specified path is not valid.
- //
- // * ErrCodePathDoesNotExistException "PathDoesNotExistException"
- // The specified path does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForComparedCommit
- func (c *CodeCommit) PostCommentForComparedCommit(input *PostCommentForComparedCommitInput) (*PostCommentForComparedCommitOutput, error) {
- req, out := c.PostCommentForComparedCommitRequest(input)
- return out, req.Send()
- }
- // PostCommentForComparedCommitWithContext is the same as PostCommentForComparedCommit with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PostCommentForComparedCommit for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) PostCommentForComparedCommitWithContext(ctx aws.Context, input *PostCommentForComparedCommitInput, opts ...request.Option) (*PostCommentForComparedCommitOutput, error) {
- req, out := c.PostCommentForComparedCommitRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPostCommentForPullRequest = "PostCommentForPullRequest"
- // PostCommentForPullRequestRequest generates a "aws/request.Request" representing the
- // client's request for the PostCommentForPullRequest operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PostCommentForPullRequest for more information on using the PostCommentForPullRequest
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PostCommentForPullRequestRequest method.
- // req, resp := client.PostCommentForPullRequestRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForPullRequest
- func (c *CodeCommit) PostCommentForPullRequestRequest(input *PostCommentForPullRequestInput) (req *request.Request, output *PostCommentForPullRequestOutput) {
- op := &request.Operation{
- Name: opPostCommentForPullRequest,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PostCommentForPullRequestInput{}
- }
- output = &PostCommentForPullRequestOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // PostCommentForPullRequest API operation for AWS CodeCommit.
- //
- // Posts a comment on a pull request.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation PostCommentForPullRequest for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException"
- // The pull request ID could not be found. Make sure that you have specified
- // the correct repository name and pull request ID, and then try again.
- //
- // * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException"
- // The pull request ID is not valid. Make sure that you have provided the full
- // ID and that the pull request is in the specified repository, and then try
- // again.
- //
- // * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException"
- // A pull request ID is required, but none was provided.
- //
- // * ErrCodeRepositoryNotAssociatedWithPullRequestException "RepositoryNotAssociatedWithPullRequestException"
- // The repository does not contain any pull requests with that pull request
- // ID. Check to make sure you have provided the correct repository name for
- // the pull request.
- //
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeClientRequestTokenRequiredException "ClientRequestTokenRequiredException"
- // A client request token is required. A client request token is an unique,
- // client-generated idempotency token that when provided in a request, ensures
- // the request cannot be repeated with a changed parameter. If a request is
- // received with the same parameters and a token is included, the request will
- // return information about the initial request that used that token.
- //
- // * ErrCodeInvalidClientRequestTokenException "InvalidClientRequestTokenException"
- // The client request token is not valid.
- //
- // * ErrCodeIdempotencyParameterMismatchException "IdempotencyParameterMismatchException"
- // The client request token is not valid. Either the token is not in a valid
- // format, or the token has been used in a previous request and cannot be re-used.
- //
- // * ErrCodeCommentContentRequiredException "CommentContentRequiredException"
- // The comment is empty. You must provide some content for a comment. The content
- // cannot be null.
- //
- // * ErrCodeCommentContentSizeLimitExceededException "CommentContentSizeLimitExceededException"
- // The comment is too large. Comments are limited to 1,000 characters.
- //
- // * ErrCodeInvalidFileLocationException "InvalidFileLocationException"
- // The location of the file is not valid. Make sure that you include the extension
- // of the file as well as the file name.
- //
- // * ErrCodeInvalidRelativeFileVersionEnumException "InvalidRelativeFileVersionEnumException"
- // Either the enum is not in a valid format, or the specified file version enum
- // is not valid in respect to the current file version.
- //
- // * ErrCodePathRequiredException "PathRequiredException"
- // The folderPath for a location cannot be null.
- //
- // * ErrCodeInvalidFilePositionException "InvalidFilePositionException"
- // The position is not valid. Make sure that the line number exists in the version
- // of the file you want to comment on.
- //
- // * ErrCodeCommitIdRequiredException "CommitIdRequiredException"
- // A commit ID was not specified.
- //
- // * ErrCodeInvalidCommitIdException "InvalidCommitIdException"
- // The specified commit ID is not valid.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException"
- // The specified commit does not exist or no commit was specified, and the specified
- // repository has no default branch.
- //
- // * ErrCodeInvalidPathException "InvalidPathException"
- // The specified path is not valid.
- //
- // * ErrCodePathDoesNotExistException "PathDoesNotExistException"
- // The specified path does not exist.
- //
- // * ErrCodePathRequiredException "PathRequiredException"
- // The folderPath for a location cannot be null.
- //
- // * ErrCodeBeforeCommitIdAndAfterCommitIdAreSameException "BeforeCommitIdAndAfterCommitIdAreSameException"
- // The before commit ID and the after commit ID are the same, which is not valid.
- // The before commit ID and the after commit ID must be different commit IDs.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForPullRequest
- func (c *CodeCommit) PostCommentForPullRequest(input *PostCommentForPullRequestInput) (*PostCommentForPullRequestOutput, error) {
- req, out := c.PostCommentForPullRequestRequest(input)
- return out, req.Send()
- }
- // PostCommentForPullRequestWithContext is the same as PostCommentForPullRequest with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PostCommentForPullRequest for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) PostCommentForPullRequestWithContext(ctx aws.Context, input *PostCommentForPullRequestInput, opts ...request.Option) (*PostCommentForPullRequestOutput, error) {
- req, out := c.PostCommentForPullRequestRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPostCommentReply = "PostCommentReply"
- // PostCommentReplyRequest generates a "aws/request.Request" representing the
- // client's request for the PostCommentReply operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PostCommentReply for more information on using the PostCommentReply
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PostCommentReplyRequest method.
- // req, resp := client.PostCommentReplyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentReply
- func (c *CodeCommit) PostCommentReplyRequest(input *PostCommentReplyInput) (req *request.Request, output *PostCommentReplyOutput) {
- op := &request.Operation{
- Name: opPostCommentReply,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PostCommentReplyInput{}
- }
- output = &PostCommentReplyOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // PostCommentReply API operation for AWS CodeCommit.
- //
- // Posts a comment in reply to an existing comment on a comparison between commits
- // or a pull request.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation PostCommentReply for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClientRequestTokenRequiredException "ClientRequestTokenRequiredException"
- // A client request token is required. A client request token is an unique,
- // client-generated idempotency token that when provided in a request, ensures
- // the request cannot be repeated with a changed parameter. If a request is
- // received with the same parameters and a token is included, the request will
- // return information about the initial request that used that token.
- //
- // * ErrCodeInvalidClientRequestTokenException "InvalidClientRequestTokenException"
- // The client request token is not valid.
- //
- // * ErrCodeIdempotencyParameterMismatchException "IdempotencyParameterMismatchException"
- // The client request token is not valid. Either the token is not in a valid
- // format, or the token has been used in a previous request and cannot be re-used.
- //
- // * ErrCodeCommentContentRequiredException "CommentContentRequiredException"
- // The comment is empty. You must provide some content for a comment. The content
- // cannot be null.
- //
- // * ErrCodeCommentContentSizeLimitExceededException "CommentContentSizeLimitExceededException"
- // The comment is too large. Comments are limited to 1,000 characters.
- //
- // * ErrCodeCommentDoesNotExistException "CommentDoesNotExistException"
- // No comment exists with the provided ID. Verify that you have provided the
- // correct ID, and then try again.
- //
- // * ErrCodeCommentIdRequiredException "CommentIdRequiredException"
- // The comment ID is missing or null. A comment ID is required.
- //
- // * ErrCodeInvalidCommentIdException "InvalidCommentIdException"
- // The comment ID is not in a valid format. Make sure that you have provided
- // the full comment ID.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentReply
- func (c *CodeCommit) PostCommentReply(input *PostCommentReplyInput) (*PostCommentReplyOutput, error) {
- req, out := c.PostCommentReplyRequest(input)
- return out, req.Send()
- }
- // PostCommentReplyWithContext is the same as PostCommentReply with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PostCommentReply for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) PostCommentReplyWithContext(ctx aws.Context, input *PostCommentReplyInput, opts ...request.Option) (*PostCommentReplyOutput, error) {
- req, out := c.PostCommentReplyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPutFile = "PutFile"
- // PutFileRequest generates a "aws/request.Request" representing the
- // client's request for the PutFile operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PutFile for more information on using the PutFile
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PutFileRequest method.
- // req, resp := client.PutFileRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutFile
- func (c *CodeCommit) PutFileRequest(input *PutFileInput) (req *request.Request, output *PutFileOutput) {
- op := &request.Operation{
- Name: opPutFile,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutFileInput{}
- }
- output = &PutFileOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // PutFile API operation for AWS CodeCommit.
- //
- // Adds or updates a file in a branch in an AWS CodeCommit repository, and generates
- // a commit for the addition in the specified branch.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation PutFile for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeParentCommitIdRequiredException "ParentCommitIdRequiredException"
- // A parent commit ID is required. To view the full commit ID of a branch in
- // a repository, use GetBranch or a Git command (for example, git pull or git
- // log).
- //
- // * ErrCodeInvalidParentCommitIdException "InvalidParentCommitIdException"
- // The parent commit ID is not valid. The commit ID cannot be empty, and must
- // match the head commit ID for the branch of the repository where you want
- // to add or update a file.
- //
- // * ErrCodeParentCommitDoesNotExistException "ParentCommitDoesNotExistException"
- // The parent commit ID is not valid because it does not exist. The specified
- // parent commit ID does not exist in the specified branch of the repository.
- //
- // * ErrCodeParentCommitIdOutdatedException "ParentCommitIdOutdatedException"
- // The file could not be added because the provided parent commit ID is not
- // the current tip of the specified branch. To view the full commit ID of the
- // current head of the branch, use GetBranch.
- //
- // * ErrCodeFileContentRequiredException "FileContentRequiredException"
- // The file cannot be added because it is empty. Empty files cannot be added
- // to the repository with this API.
- //
- // * ErrCodeFileContentSizeLimitExceededException "FileContentSizeLimitExceededException"
- // The file cannot be added because it is too large. The maximum file size that
- // can be added using PutFile is 6 MB. For files larger than 6 MB but smaller
- // than 2 GB, add them using a Git client.
- //
- // * ErrCodePathRequiredException "PathRequiredException"
- // The folderPath for a location cannot be null.
- //
- // * ErrCodeInvalidPathException "InvalidPathException"
- // The specified path is not valid.
- //
- // * ErrCodeBranchNameRequiredException "BranchNameRequiredException"
- // A branch name is required but was not specified.
- //
- // * ErrCodeInvalidBranchNameException "InvalidBranchNameException"
- // The specified reference name is not valid.
- //
- // * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException"
- // The specified branch does not exist.
- //
- // * ErrCodeBranchNameIsTagNameException "BranchNameIsTagNameException"
- // The specified branch name is not valid because it is a tag name. Type the
- // name of a current branch in the repository. For a list of valid branch names,
- // use ListBranches.
- //
- // * ErrCodeInvalidFileModeException "InvalidFileModeException"
- // The specified file mode permission is not valid. For a list of valid file
- // mode permissions, see PutFile.
- //
- // * ErrCodeNameLengthExceededException "NameLengthExceededException"
- // The user name is not valid because it has exceeded the character limit for
- // file names. File names, including the path to the file, cannot exceed the
- // character limit.
- //
- // * ErrCodeInvalidEmailException "InvalidEmailException"
- // The specified email address either contains one or more characters that are
- // not allowed, or it exceeds the maximum number of characters allowed for an
- // email address.
- //
- // * ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException"
- // The commit message is too long. Provide a shorter string.
- //
- // * ErrCodeInvalidDeletionParameterException "InvalidDeletionParameterException"
- // The specified deletion parameter is not valid.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // * ErrCodeSameFileContentException "SameFileContentException"
- // The file was not added or updated because the content of the file is exactly
- // the same as the content of that file in the repository and branch that you
- // specified.
- //
- // * ErrCodeFileNameConflictsWithDirectoryNameException "FileNameConflictsWithDirectoryNameException"
- // A file cannot be added to the repository because the specified file name
- // has the same name as a directory in this repository. Either provide another
- // name for the file, or add the file in a directory that does not match the
- // file name.
- //
- // * ErrCodeDirectoryNameConflictsWithFileNameException "DirectoryNameConflictsWithFileNameException"
- // A file cannot be added to the repository because the specified path name
- // has the same name as a file that already exists in this repository. Either
- // provide a different name for the file, or specify a different path for the
- // file.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutFile
- func (c *CodeCommit) PutFile(input *PutFileInput) (*PutFileOutput, error) {
- req, out := c.PutFileRequest(input)
- return out, req.Send()
- }
- // PutFileWithContext is the same as PutFile with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PutFile for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) PutFileWithContext(ctx aws.Context, input *PutFileInput, opts ...request.Option) (*PutFileOutput, error) {
- req, out := c.PutFileRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPutRepositoryTriggers = "PutRepositoryTriggers"
- // PutRepositoryTriggersRequest generates a "aws/request.Request" representing the
- // client's request for the PutRepositoryTriggers operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PutRepositoryTriggers for more information on using the PutRepositoryTriggers
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PutRepositoryTriggersRequest method.
- // req, resp := client.PutRepositoryTriggersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutRepositoryTriggers
- func (c *CodeCommit) PutRepositoryTriggersRequest(input *PutRepositoryTriggersInput) (req *request.Request, output *PutRepositoryTriggersOutput) {
- op := &request.Operation{
- Name: opPutRepositoryTriggers,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutRepositoryTriggersInput{}
- }
- output = &PutRepositoryTriggersOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // PutRepositoryTriggers API operation for AWS CodeCommit.
- //
- // Replaces all triggers for a repository. This can be used to create or delete
- // triggers.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation PutRepositoryTriggers for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryTriggersListRequiredException "RepositoryTriggersListRequiredException"
- // The list of triggers for the repository is required but was not specified.
- //
- // * ErrCodeMaximumRepositoryTriggersExceededException "MaximumRepositoryTriggersExceededException"
- // The number of triggers allowed for the repository was exceeded.
- //
- // * ErrCodeInvalidRepositoryTriggerNameException "InvalidRepositoryTriggerNameException"
- // The name of the trigger is not valid.
- //
- // * ErrCodeInvalidRepositoryTriggerDestinationArnException "InvalidRepositoryTriggerDestinationArnException"
- // The Amazon Resource Name (ARN) for the trigger is not valid for the specified
- // destination. The most common reason for this error is that the ARN does not
- // meet the requirements for the service type.
- //
- // * ErrCodeInvalidRepositoryTriggerRegionException "InvalidRepositoryTriggerRegionException"
- // The region for the trigger target does not match the region for the repository.
- // Triggers must be created in the same region as the target for the trigger.
- //
- // * ErrCodeInvalidRepositoryTriggerCustomDataException "InvalidRepositoryTriggerCustomDataException"
- // The custom data provided for the trigger is not valid.
- //
- // * ErrCodeMaximumBranchesExceededException "MaximumBranchesExceededException"
- // The number of branches for the trigger was exceeded.
- //
- // * ErrCodeInvalidRepositoryTriggerBranchNameException "InvalidRepositoryTriggerBranchNameException"
- // One or more branch names specified for the trigger is not valid.
- //
- // * ErrCodeInvalidRepositoryTriggerEventsException "InvalidRepositoryTriggerEventsException"
- // One or more events specified for the trigger is not valid. Check to make
- // sure that all events specified match the requirements for allowed events.
- //
- // * ErrCodeRepositoryTriggerNameRequiredException "RepositoryTriggerNameRequiredException"
- // A name for the trigger is required but was not specified.
- //
- // * ErrCodeRepositoryTriggerDestinationArnRequiredException "RepositoryTriggerDestinationArnRequiredException"
- // A destination ARN for the target service for the trigger is required but
- // was not specified.
- //
- // * ErrCodeRepositoryTriggerBranchNameListRequiredException "RepositoryTriggerBranchNameListRequiredException"
- // At least one branch name is required but was not specified in the trigger
- // configuration.
- //
- // * ErrCodeRepositoryTriggerEventsListRequiredException "RepositoryTriggerEventsListRequiredException"
- // At least one event for the trigger is required but was not specified.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutRepositoryTriggers
- func (c *CodeCommit) PutRepositoryTriggers(input *PutRepositoryTriggersInput) (*PutRepositoryTriggersOutput, error) {
- req, out := c.PutRepositoryTriggersRequest(input)
- return out, req.Send()
- }
- // PutRepositoryTriggersWithContext is the same as PutRepositoryTriggers with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PutRepositoryTriggers for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) PutRepositoryTriggersWithContext(ctx aws.Context, input *PutRepositoryTriggersInput, opts ...request.Option) (*PutRepositoryTriggersOutput, error) {
- req, out := c.PutRepositoryTriggersRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opTestRepositoryTriggers = "TestRepositoryTriggers"
- // TestRepositoryTriggersRequest generates a "aws/request.Request" representing the
- // client's request for the TestRepositoryTriggers operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See TestRepositoryTriggers for more information on using the TestRepositoryTriggers
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the TestRepositoryTriggersRequest method.
- // req, resp := client.TestRepositoryTriggersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TestRepositoryTriggers
- func (c *CodeCommit) TestRepositoryTriggersRequest(input *TestRepositoryTriggersInput) (req *request.Request, output *TestRepositoryTriggersOutput) {
- op := &request.Operation{
- Name: opTestRepositoryTriggers,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &TestRepositoryTriggersInput{}
- }
- output = &TestRepositoryTriggersOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // TestRepositoryTriggers API operation for AWS CodeCommit.
- //
- // Tests the functionality of repository triggers by sending information to
- // the trigger target. If real data is available in the repository, the test
- // will send data from the last commit. If no data is available, sample data
- // will be generated.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation TestRepositoryTriggers for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeRepositoryTriggersListRequiredException "RepositoryTriggersListRequiredException"
- // The list of triggers for the repository is required but was not specified.
- //
- // * ErrCodeMaximumRepositoryTriggersExceededException "MaximumRepositoryTriggersExceededException"
- // The number of triggers allowed for the repository was exceeded.
- //
- // * ErrCodeInvalidRepositoryTriggerNameException "InvalidRepositoryTriggerNameException"
- // The name of the trigger is not valid.
- //
- // * ErrCodeInvalidRepositoryTriggerDestinationArnException "InvalidRepositoryTriggerDestinationArnException"
- // The Amazon Resource Name (ARN) for the trigger is not valid for the specified
- // destination. The most common reason for this error is that the ARN does not
- // meet the requirements for the service type.
- //
- // * ErrCodeInvalidRepositoryTriggerRegionException "InvalidRepositoryTriggerRegionException"
- // The region for the trigger target does not match the region for the repository.
- // Triggers must be created in the same region as the target for the trigger.
- //
- // * ErrCodeInvalidRepositoryTriggerCustomDataException "InvalidRepositoryTriggerCustomDataException"
- // The custom data provided for the trigger is not valid.
- //
- // * ErrCodeMaximumBranchesExceededException "MaximumBranchesExceededException"
- // The number of branches for the trigger was exceeded.
- //
- // * ErrCodeInvalidRepositoryTriggerBranchNameException "InvalidRepositoryTriggerBranchNameException"
- // One or more branch names specified for the trigger is not valid.
- //
- // * ErrCodeInvalidRepositoryTriggerEventsException "InvalidRepositoryTriggerEventsException"
- // One or more events specified for the trigger is not valid. Check to make
- // sure that all events specified match the requirements for allowed events.
- //
- // * ErrCodeRepositoryTriggerNameRequiredException "RepositoryTriggerNameRequiredException"
- // A name for the trigger is required but was not specified.
- //
- // * ErrCodeRepositoryTriggerDestinationArnRequiredException "RepositoryTriggerDestinationArnRequiredException"
- // A destination ARN for the target service for the trigger is required but
- // was not specified.
- //
- // * ErrCodeRepositoryTriggerBranchNameListRequiredException "RepositoryTriggerBranchNameListRequiredException"
- // At least one branch name is required but was not specified in the trigger
- // configuration.
- //
- // * ErrCodeRepositoryTriggerEventsListRequiredException "RepositoryTriggerEventsListRequiredException"
- // At least one event for the trigger is required but was not specified.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TestRepositoryTriggers
- func (c *CodeCommit) TestRepositoryTriggers(input *TestRepositoryTriggersInput) (*TestRepositoryTriggersOutput, error) {
- req, out := c.TestRepositoryTriggersRequest(input)
- return out, req.Send()
- }
- // TestRepositoryTriggersWithContext is the same as TestRepositoryTriggers with the addition of
- // the ability to pass a context and additional request options.
- //
- // See TestRepositoryTriggers for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) TestRepositoryTriggersWithContext(ctx aws.Context, input *TestRepositoryTriggersInput, opts ...request.Option) (*TestRepositoryTriggersOutput, error) {
- req, out := c.TestRepositoryTriggersRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateComment = "UpdateComment"
- // UpdateCommentRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateComment operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateComment for more information on using the UpdateComment
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateCommentRequest method.
- // req, resp := client.UpdateCommentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateComment
- func (c *CodeCommit) UpdateCommentRequest(input *UpdateCommentInput) (req *request.Request, output *UpdateCommentOutput) {
- op := &request.Operation{
- Name: opUpdateComment,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateCommentInput{}
- }
- output = &UpdateCommentOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateComment API operation for AWS CodeCommit.
- //
- // Replaces the contents of a comment.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation UpdateComment for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeCommentContentRequiredException "CommentContentRequiredException"
- // The comment is empty. You must provide some content for a comment. The content
- // cannot be null.
- //
- // * ErrCodeCommentContentSizeLimitExceededException "CommentContentSizeLimitExceededException"
- // The comment is too large. Comments are limited to 1,000 characters.
- //
- // * ErrCodeCommentDoesNotExistException "CommentDoesNotExistException"
- // No comment exists with the provided ID. Verify that you have provided the
- // correct ID, and then try again.
- //
- // * ErrCodeCommentIdRequiredException "CommentIdRequiredException"
- // The comment ID is missing or null. A comment ID is required.
- //
- // * ErrCodeInvalidCommentIdException "InvalidCommentIdException"
- // The comment ID is not in a valid format. Make sure that you have provided
- // the full comment ID.
- //
- // * ErrCodeCommentNotCreatedByCallerException "CommentNotCreatedByCallerException"
- // You cannot modify or delete this comment. Only comment authors can modify
- // or delete their comments.
- //
- // * ErrCodeCommentDeletedException "CommentDeletedException"
- // This comment has already been deleted. You cannot edit or delete a deleted
- // comment.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateComment
- func (c *CodeCommit) UpdateComment(input *UpdateCommentInput) (*UpdateCommentOutput, error) {
- req, out := c.UpdateCommentRequest(input)
- return out, req.Send()
- }
- // UpdateCommentWithContext is the same as UpdateComment with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateComment for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) UpdateCommentWithContext(ctx aws.Context, input *UpdateCommentInput, opts ...request.Option) (*UpdateCommentOutput, error) {
- req, out := c.UpdateCommentRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateDefaultBranch = "UpdateDefaultBranch"
- // UpdateDefaultBranchRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateDefaultBranch operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateDefaultBranch for more information on using the UpdateDefaultBranch
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateDefaultBranchRequest method.
- // req, resp := client.UpdateDefaultBranchRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateDefaultBranch
- func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput) (req *request.Request, output *UpdateDefaultBranchOutput) {
- op := &request.Operation{
- Name: opUpdateDefaultBranch,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateDefaultBranchInput{}
- }
- output = &UpdateDefaultBranchOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateDefaultBranch API operation for AWS CodeCommit.
- //
- // Sets or changes the default branch name for the specified repository.
- //
- // If you use this operation to change the default branch name to the current
- // default branch name, a success message is returned even though the default
- // branch did not change.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation UpdateDefaultBranch for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeBranchNameRequiredException "BranchNameRequiredException"
- // A branch name is required but was not specified.
- //
- // * ErrCodeInvalidBranchNameException "InvalidBranchNameException"
- // The specified reference name is not valid.
- //
- // * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException"
- // The specified branch does not exist.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateDefaultBranch
- func (c *CodeCommit) UpdateDefaultBranch(input *UpdateDefaultBranchInput) (*UpdateDefaultBranchOutput, error) {
- req, out := c.UpdateDefaultBranchRequest(input)
- return out, req.Send()
- }
- // UpdateDefaultBranchWithContext is the same as UpdateDefaultBranch with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateDefaultBranch for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) UpdateDefaultBranchWithContext(ctx aws.Context, input *UpdateDefaultBranchInput, opts ...request.Option) (*UpdateDefaultBranchOutput, error) {
- req, out := c.UpdateDefaultBranchRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdatePullRequestDescription = "UpdatePullRequestDescription"
- // UpdatePullRequestDescriptionRequest generates a "aws/request.Request" representing the
- // client's request for the UpdatePullRequestDescription operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdatePullRequestDescription for more information on using the UpdatePullRequestDescription
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdatePullRequestDescriptionRequest method.
- // req, resp := client.UpdatePullRequestDescriptionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestDescription
- func (c *CodeCommit) UpdatePullRequestDescriptionRequest(input *UpdatePullRequestDescriptionInput) (req *request.Request, output *UpdatePullRequestDescriptionOutput) {
- op := &request.Operation{
- Name: opUpdatePullRequestDescription,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdatePullRequestDescriptionInput{}
- }
- output = &UpdatePullRequestDescriptionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdatePullRequestDescription API operation for AWS CodeCommit.
- //
- // Replaces the contents of the description of a pull request.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation UpdatePullRequestDescription for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException"
- // The pull request ID could not be found. Make sure that you have specified
- // the correct repository name and pull request ID, and then try again.
- //
- // * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException"
- // The pull request ID is not valid. Make sure that you have provided the full
- // ID and that the pull request is in the specified repository, and then try
- // again.
- //
- // * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException"
- // A pull request ID is required, but none was provided.
- //
- // * ErrCodeInvalidDescriptionException "InvalidDescriptionException"
- // The pull request description is not valid. Descriptions are limited to 1,000
- // characters in length.
- //
- // * ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException"
- // The pull request status cannot be updated because it is already closed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestDescription
- func (c *CodeCommit) UpdatePullRequestDescription(input *UpdatePullRequestDescriptionInput) (*UpdatePullRequestDescriptionOutput, error) {
- req, out := c.UpdatePullRequestDescriptionRequest(input)
- return out, req.Send()
- }
- // UpdatePullRequestDescriptionWithContext is the same as UpdatePullRequestDescription with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdatePullRequestDescription for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) UpdatePullRequestDescriptionWithContext(ctx aws.Context, input *UpdatePullRequestDescriptionInput, opts ...request.Option) (*UpdatePullRequestDescriptionOutput, error) {
- req, out := c.UpdatePullRequestDescriptionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdatePullRequestStatus = "UpdatePullRequestStatus"
- // UpdatePullRequestStatusRequest generates a "aws/request.Request" representing the
- // client's request for the UpdatePullRequestStatus operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdatePullRequestStatus for more information on using the UpdatePullRequestStatus
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdatePullRequestStatusRequest method.
- // req, resp := client.UpdatePullRequestStatusRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestStatus
- func (c *CodeCommit) UpdatePullRequestStatusRequest(input *UpdatePullRequestStatusInput) (req *request.Request, output *UpdatePullRequestStatusOutput) {
- op := &request.Operation{
- Name: opUpdatePullRequestStatus,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdatePullRequestStatusInput{}
- }
- output = &UpdatePullRequestStatusOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdatePullRequestStatus API operation for AWS CodeCommit.
- //
- // Updates the status of a pull request.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation UpdatePullRequestStatus for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException"
- // The pull request ID could not be found. Make sure that you have specified
- // the correct repository name and pull request ID, and then try again.
- //
- // * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException"
- // The pull request ID is not valid. Make sure that you have provided the full
- // ID and that the pull request is in the specified repository, and then try
- // again.
- //
- // * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException"
- // A pull request ID is required, but none was provided.
- //
- // * ErrCodeInvalidPullRequestStatusUpdateException "InvalidPullRequestStatusUpdateException"
- // The pull request status update is not valid. The only valid update is from
- // OPEN to CLOSED.
- //
- // * ErrCodeInvalidPullRequestStatusException "InvalidPullRequestStatusException"
- // The pull request status is not valid. The only valid values are OPEN and
- // CLOSED.
- //
- // * ErrCodePullRequestStatusRequiredException "PullRequestStatusRequiredException"
- // A pull request status is required, but none was provided.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestStatus
- func (c *CodeCommit) UpdatePullRequestStatus(input *UpdatePullRequestStatusInput) (*UpdatePullRequestStatusOutput, error) {
- req, out := c.UpdatePullRequestStatusRequest(input)
- return out, req.Send()
- }
- // UpdatePullRequestStatusWithContext is the same as UpdatePullRequestStatus with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdatePullRequestStatus for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) UpdatePullRequestStatusWithContext(ctx aws.Context, input *UpdatePullRequestStatusInput, opts ...request.Option) (*UpdatePullRequestStatusOutput, error) {
- req, out := c.UpdatePullRequestStatusRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdatePullRequestTitle = "UpdatePullRequestTitle"
- // UpdatePullRequestTitleRequest generates a "aws/request.Request" representing the
- // client's request for the UpdatePullRequestTitle operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdatePullRequestTitle for more information on using the UpdatePullRequestTitle
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdatePullRequestTitleRequest method.
- // req, resp := client.UpdatePullRequestTitleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestTitle
- func (c *CodeCommit) UpdatePullRequestTitleRequest(input *UpdatePullRequestTitleInput) (req *request.Request, output *UpdatePullRequestTitleOutput) {
- op := &request.Operation{
- Name: opUpdatePullRequestTitle,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdatePullRequestTitleInput{}
- }
- output = &UpdatePullRequestTitleOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdatePullRequestTitle API operation for AWS CodeCommit.
- //
- // Replaces the title of a pull request.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation UpdatePullRequestTitle for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException"
- // The pull request ID could not be found. Make sure that you have specified
- // the correct repository name and pull request ID, and then try again.
- //
- // * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException"
- // The pull request ID is not valid. Make sure that you have provided the full
- // ID and that the pull request is in the specified repository, and then try
- // again.
- //
- // * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException"
- // A pull request ID is required, but none was provided.
- //
- // * ErrCodeTitleRequiredException "TitleRequiredException"
- // A pull request title is required. It cannot be empty or null.
- //
- // * ErrCodeInvalidTitleException "InvalidTitleException"
- // The title of the pull request is not valid. Pull request titles cannot exceed
- // 100 characters in length.
- //
- // * ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException"
- // The pull request status cannot be updated because it is already closed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestTitle
- func (c *CodeCommit) UpdatePullRequestTitle(input *UpdatePullRequestTitleInput) (*UpdatePullRequestTitleOutput, error) {
- req, out := c.UpdatePullRequestTitleRequest(input)
- return out, req.Send()
- }
- // UpdatePullRequestTitleWithContext is the same as UpdatePullRequestTitle with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdatePullRequestTitle for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) UpdatePullRequestTitleWithContext(ctx aws.Context, input *UpdatePullRequestTitleInput, opts ...request.Option) (*UpdatePullRequestTitleOutput, error) {
- req, out := c.UpdatePullRequestTitleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateRepositoryDescription = "UpdateRepositoryDescription"
- // UpdateRepositoryDescriptionRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateRepositoryDescription operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateRepositoryDescription for more information on using the UpdateRepositoryDescription
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateRepositoryDescriptionRequest method.
- // req, resp := client.UpdateRepositoryDescriptionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryDescription
- func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryDescriptionInput) (req *request.Request, output *UpdateRepositoryDescriptionOutput) {
- op := &request.Operation{
- Name: opUpdateRepositoryDescription,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateRepositoryDescriptionInput{}
- }
- output = &UpdateRepositoryDescriptionOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateRepositoryDescription API operation for AWS CodeCommit.
- //
- // Sets or changes the comment or description for a repository.
- //
- // The description field for a repository accepts all HTML characters and all
- // valid Unicode characters. Applications that do not HTML-encode the description
- // and display it in a web page could expose users to potentially malicious
- // code. Make sure that you HTML-encode the description field in any application
- // that uses this API to display the repository description on a web page.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation UpdateRepositoryDescription for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // * ErrCodeInvalidRepositoryDescriptionException "InvalidRepositoryDescriptionException"
- // The specified repository description is not valid.
- //
- // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
- // An encryption integrity check failed.
- //
- // * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
- // An encryption key could not be accessed.
- //
- // * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
- // The encryption key is disabled.
- //
- // * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
- // No encryption key was found.
- //
- // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
- // The encryption key is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryDescription
- func (c *CodeCommit) UpdateRepositoryDescription(input *UpdateRepositoryDescriptionInput) (*UpdateRepositoryDescriptionOutput, error) {
- req, out := c.UpdateRepositoryDescriptionRequest(input)
- return out, req.Send()
- }
- // UpdateRepositoryDescriptionWithContext is the same as UpdateRepositoryDescription with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateRepositoryDescription for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) UpdateRepositoryDescriptionWithContext(ctx aws.Context, input *UpdateRepositoryDescriptionInput, opts ...request.Option) (*UpdateRepositoryDescriptionOutput, error) {
- req, out := c.UpdateRepositoryDescriptionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateRepositoryName = "UpdateRepositoryName"
- // UpdateRepositoryNameRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateRepositoryName operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateRepositoryName for more information on using the UpdateRepositoryName
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateRepositoryNameRequest method.
- // req, resp := client.UpdateRepositoryNameRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryName
- func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInput) (req *request.Request, output *UpdateRepositoryNameOutput) {
- op := &request.Operation{
- Name: opUpdateRepositoryName,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateRepositoryNameInput{}
- }
- output = &UpdateRepositoryNameOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateRepositoryName API operation for AWS CodeCommit.
- //
- // Renames a repository. The repository name must be unique across the calling
- // AWS account. In addition, repository names are limited to 100 alphanumeric,
- // dash, and underscore characters, and cannot include certain characters. The
- // suffix ".git" is prohibited. For a full description of the limits on repository
- // names, see Limits (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html)
- // in the AWS CodeCommit User Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodeCommit's
- // API operation UpdateRepositoryName for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
- // The specified repository does not exist.
- //
- // * ErrCodeRepositoryNameExistsException "RepositoryNameExistsException"
- // The specified repository name already exists.
- //
- // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
- // A repository name is required but was not specified.
- //
- // * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
- // At least one specified repository name is not valid.
- //
- // This exception only occurs when a specified repository name is not valid.
- // Other exceptions occur when a required repository parameter is missing, or
- // when a specified repository does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryName
- func (c *CodeCommit) UpdateRepositoryName(input *UpdateRepositoryNameInput) (*UpdateRepositoryNameOutput, error) {
- req, out := c.UpdateRepositoryNameRequest(input)
- return out, req.Send()
- }
- // UpdateRepositoryNameWithContext is the same as UpdateRepositoryName with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateRepositoryName for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodeCommit) UpdateRepositoryNameWithContext(ctx aws.Context, input *UpdateRepositoryNameInput, opts ...request.Option) (*UpdateRepositoryNameOutput, error) {
- req, out := c.UpdateRepositoryNameRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // Represents the input of a batch get repositories operation.
- type BatchGetRepositoriesInput struct {
- _ struct{} `type:"structure"`
- // The names of the repositories to get information about.
- //
- // RepositoryNames is a required field
- RepositoryNames []*string `locationName:"repositoryNames" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s BatchGetRepositoriesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetRepositoriesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *BatchGetRepositoriesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BatchGetRepositoriesInput"}
- if s.RepositoryNames == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryNames"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRepositoryNames sets the RepositoryNames field's value.
- func (s *BatchGetRepositoriesInput) SetRepositoryNames(v []*string) *BatchGetRepositoriesInput {
- s.RepositoryNames = v
- return s
- }
- // Represents the output of a batch get repositories operation.
- type BatchGetRepositoriesOutput struct {
- _ struct{} `type:"structure"`
- // A list of repositories returned by the batch get repositories operation.
- Repositories []*RepositoryMetadata `locationName:"repositories" type:"list"`
- // Returns a list of repository names for which information could not be found.
- RepositoriesNotFound []*string `locationName:"repositoriesNotFound" type:"list"`
- }
- // String returns the string representation
- func (s BatchGetRepositoriesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetRepositoriesOutput) GoString() string {
- return s.String()
- }
- // SetRepositories sets the Repositories field's value.
- func (s *BatchGetRepositoriesOutput) SetRepositories(v []*RepositoryMetadata) *BatchGetRepositoriesOutput {
- s.Repositories = v
- return s
- }
- // SetRepositoriesNotFound sets the RepositoriesNotFound field's value.
- func (s *BatchGetRepositoriesOutput) SetRepositoriesNotFound(v []*string) *BatchGetRepositoriesOutput {
- s.RepositoriesNotFound = v
- return s
- }
- // Returns information about a specific Git blob object.
- type BlobMetadata struct {
- _ struct{} `type:"structure"`
- // The full ID of the blob.
- BlobId *string `locationName:"blobId" type:"string"`
- // The file mode permissions of the blob. File mode permission codes include:
- //
- // * 100644 indicates read/write
- //
- // * 100755 indicates read/write/execute
- //
- // * 160000 indicates a submodule
- //
- // * 120000 indicates a symlink
- Mode *string `locationName:"mode" type:"string"`
- // The path to the blob and any associated file name, if any.
- Path *string `locationName:"path" type:"string"`
- }
- // String returns the string representation
- func (s BlobMetadata) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BlobMetadata) GoString() string {
- return s.String()
- }
- // SetBlobId sets the BlobId field's value.
- func (s *BlobMetadata) SetBlobId(v string) *BlobMetadata {
- s.BlobId = &v
- return s
- }
- // SetMode sets the Mode field's value.
- func (s *BlobMetadata) SetMode(v string) *BlobMetadata {
- s.Mode = &v
- return s
- }
- // SetPath sets the Path field's value.
- func (s *BlobMetadata) SetPath(v string) *BlobMetadata {
- s.Path = &v
- return s
- }
- // Returns information about a branch.
- type BranchInfo struct {
- _ struct{} `type:"structure"`
- // The name of the branch.
- BranchName *string `locationName:"branchName" min:"1" type:"string"`
- // The ID of the last commit made to the branch.
- CommitId *string `locationName:"commitId" type:"string"`
- }
- // String returns the string representation
- func (s BranchInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BranchInfo) GoString() string {
- return s.String()
- }
- // SetBranchName sets the BranchName field's value.
- func (s *BranchInfo) SetBranchName(v string) *BranchInfo {
- s.BranchName = &v
- return s
- }
- // SetCommitId sets the CommitId field's value.
- func (s *BranchInfo) SetCommitId(v string) *BranchInfo {
- s.CommitId = &v
- return s
- }
- // Returns information about a specific comment.
- type Comment struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the person who posted the comment.
- AuthorArn *string `locationName:"authorArn" type:"string"`
- // A unique, client-generated idempotency token that when provided in a request,
- // ensures the request cannot be repeated with a changed parameter. If a request
- // is received with the same parameters and a token is included, the request
- // will return information about the initial request that used that token.
- ClientRequestToken *string `locationName:"clientRequestToken" type:"string"`
- // The system-generated comment ID.
- CommentId *string `locationName:"commentId" type:"string"`
- // The content of the comment.
- Content *string `locationName:"content" type:"string"`
- // The date and time the comment was created, in timestamp format.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // A Boolean value indicating whether the comment has been deleted.
- Deleted *bool `locationName:"deleted" type:"boolean"`
- // The ID of the comment for which this comment is a reply, if any.
- InReplyTo *string `locationName:"inReplyTo" type:"string"`
- // The date and time the comment was most recently modified, in timestamp format.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
- }
- // String returns the string representation
- func (s Comment) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Comment) GoString() string {
- return s.String()
- }
- // SetAuthorArn sets the AuthorArn field's value.
- func (s *Comment) SetAuthorArn(v string) *Comment {
- s.AuthorArn = &v
- return s
- }
- // SetClientRequestToken sets the ClientRequestToken field's value.
- func (s *Comment) SetClientRequestToken(v string) *Comment {
- s.ClientRequestToken = &v
- return s
- }
- // SetCommentId sets the CommentId field's value.
- func (s *Comment) SetCommentId(v string) *Comment {
- s.CommentId = &v
- return s
- }
- // SetContent sets the Content field's value.
- func (s *Comment) SetContent(v string) *Comment {
- s.Content = &v
- return s
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *Comment) SetCreationDate(v time.Time) *Comment {
- s.CreationDate = &v
- return s
- }
- // SetDeleted sets the Deleted field's value.
- func (s *Comment) SetDeleted(v bool) *Comment {
- s.Deleted = &v
- return s
- }
- // SetInReplyTo sets the InReplyTo field's value.
- func (s *Comment) SetInReplyTo(v string) *Comment {
- s.InReplyTo = &v
- return s
- }
- // SetLastModifiedDate sets the LastModifiedDate field's value.
- func (s *Comment) SetLastModifiedDate(v time.Time) *Comment {
- s.LastModifiedDate = &v
- return s
- }
- // Returns information about comments on the comparison between two commits.
- type CommentsForComparedCommit struct {
- _ struct{} `type:"structure"`
- // The full blob ID of the commit used to establish the 'after' of the comparison.
- AfterBlobId *string `locationName:"afterBlobId" type:"string"`
- // The full commit ID of the commit used to establish the 'after' of the comparison.
- AfterCommitId *string `locationName:"afterCommitId" type:"string"`
- // The full blob ID of the commit used to establish the 'before' of the comparison.
- BeforeBlobId *string `locationName:"beforeBlobId" type:"string"`
- // The full commit ID of the commit used to establish the 'before' of the comparison.
- BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
- // An array of comment objects. Each comment object contains information about
- // a comment on the comparison between commits.
- Comments []*Comment `locationName:"comments" type:"list"`
- // Location information about the comment on the comparison, including the file
- // name, line number, and whether the version of the file where the comment
- // was made is 'BEFORE' or 'AFTER'.
- Location *Location `locationName:"location" type:"structure"`
- // The name of the repository that contains the compared commits.
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CommentsForComparedCommit) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CommentsForComparedCommit) GoString() string {
- return s.String()
- }
- // SetAfterBlobId sets the AfterBlobId field's value.
- func (s *CommentsForComparedCommit) SetAfterBlobId(v string) *CommentsForComparedCommit {
- s.AfterBlobId = &v
- return s
- }
- // SetAfterCommitId sets the AfterCommitId field's value.
- func (s *CommentsForComparedCommit) SetAfterCommitId(v string) *CommentsForComparedCommit {
- s.AfterCommitId = &v
- return s
- }
- // SetBeforeBlobId sets the BeforeBlobId field's value.
- func (s *CommentsForComparedCommit) SetBeforeBlobId(v string) *CommentsForComparedCommit {
- s.BeforeBlobId = &v
- return s
- }
- // SetBeforeCommitId sets the BeforeCommitId field's value.
- func (s *CommentsForComparedCommit) SetBeforeCommitId(v string) *CommentsForComparedCommit {
- s.BeforeCommitId = &v
- return s
- }
- // SetComments sets the Comments field's value.
- func (s *CommentsForComparedCommit) SetComments(v []*Comment) *CommentsForComparedCommit {
- s.Comments = v
- return s
- }
- // SetLocation sets the Location field's value.
- func (s *CommentsForComparedCommit) SetLocation(v *Location) *CommentsForComparedCommit {
- s.Location = v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *CommentsForComparedCommit) SetRepositoryName(v string) *CommentsForComparedCommit {
- s.RepositoryName = &v
- return s
- }
- // Returns information about comments on a pull request.
- type CommentsForPullRequest struct {
- _ struct{} `type:"structure"`
- // The full blob ID of the file on which you want to comment on the source commit.
- AfterBlobId *string `locationName:"afterBlobId" type:"string"`
- // he full commit ID of the commit that was the tip of the source branch at
- // the time the comment was made.
- AfterCommitId *string `locationName:"afterCommitId" type:"string"`
- // The full blob ID of the file on which you want to comment on the destination
- // commit.
- BeforeBlobId *string `locationName:"beforeBlobId" type:"string"`
- // The full commit ID of the commit that was the tip of the destination branch
- // when the pull request was created. This commit will be superceded by the
- // after commit in the source branch when and if you merge the source branch
- // into the destination branch.
- BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
- // An array of comment objects. Each comment object contains information about
- // a comment on the pull request.
- Comments []*Comment `locationName:"comments" type:"list"`
- // Location information about the comment on the pull request, including the
- // file name, line number, and whether the version of the file where the comment
- // was made is 'BEFORE' (destination branch) or 'AFTER' (source branch).
- Location *Location `locationName:"location" type:"structure"`
- // The system-generated ID of the pull request.
- PullRequestId *string `locationName:"pullRequestId" type:"string"`
- // The name of the repository that contains the pull request.
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CommentsForPullRequest) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CommentsForPullRequest) GoString() string {
- return s.String()
- }
- // SetAfterBlobId sets the AfterBlobId field's value.
- func (s *CommentsForPullRequest) SetAfterBlobId(v string) *CommentsForPullRequest {
- s.AfterBlobId = &v
- return s
- }
- // SetAfterCommitId sets the AfterCommitId field's value.
- func (s *CommentsForPullRequest) SetAfterCommitId(v string) *CommentsForPullRequest {
- s.AfterCommitId = &v
- return s
- }
- // SetBeforeBlobId sets the BeforeBlobId field's value.
- func (s *CommentsForPullRequest) SetBeforeBlobId(v string) *CommentsForPullRequest {
- s.BeforeBlobId = &v
- return s
- }
- // SetBeforeCommitId sets the BeforeCommitId field's value.
- func (s *CommentsForPullRequest) SetBeforeCommitId(v string) *CommentsForPullRequest {
- s.BeforeCommitId = &v
- return s
- }
- // SetComments sets the Comments field's value.
- func (s *CommentsForPullRequest) SetComments(v []*Comment) *CommentsForPullRequest {
- s.Comments = v
- return s
- }
- // SetLocation sets the Location field's value.
- func (s *CommentsForPullRequest) SetLocation(v *Location) *CommentsForPullRequest {
- s.Location = v
- return s
- }
- // SetPullRequestId sets the PullRequestId field's value.
- func (s *CommentsForPullRequest) SetPullRequestId(v string) *CommentsForPullRequest {
- s.PullRequestId = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *CommentsForPullRequest) SetRepositoryName(v string) *CommentsForPullRequest {
- s.RepositoryName = &v
- return s
- }
- // Returns information about a specific commit.
- type Commit struct {
- _ struct{} `type:"structure"`
- // Any additional data associated with the specified commit.
- AdditionalData *string `locationName:"additionalData" type:"string"`
- // Information about the author of the specified commit. Information includes
- // the date in timestamp format with GMT offset, the name of the author, and
- // the email address for the author, as configured in Git.
- Author *UserInfo `locationName:"author" type:"structure"`
- // The full SHA of the specified commit.
- CommitId *string `locationName:"commitId" type:"string"`
- // Information about the person who committed the specified commit, also known
- // as the committer. Information includes the date in timestamp format with
- // GMT offset, the name of the committer, and the email address for the committer,
- // as configured in Git.
- //
- // For more information about the difference between an author and a committer
- // in Git, see Viewing the Commit History (http://git-scm.com/book/ch2-3.html)
- // in Pro Git by Scott Chacon and Ben Straub.
- Committer *UserInfo `locationName:"committer" type:"structure"`
- // The commit message associated with the specified commit.
- Message *string `locationName:"message" type:"string"`
- // A list of parent commits for the specified commit. Each parent commit ID
- // is the full commit ID.
- Parents []*string `locationName:"parents" type:"list"`
- // Tree information for the specified commit.
- TreeId *string `locationName:"treeId" type:"string"`
- }
- // String returns the string representation
- func (s Commit) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Commit) GoString() string {
- return s.String()
- }
- // SetAdditionalData sets the AdditionalData field's value.
- func (s *Commit) SetAdditionalData(v string) *Commit {
- s.AdditionalData = &v
- return s
- }
- // SetAuthor sets the Author field's value.
- func (s *Commit) SetAuthor(v *UserInfo) *Commit {
- s.Author = v
- return s
- }
- // SetCommitId sets the CommitId field's value.
- func (s *Commit) SetCommitId(v string) *Commit {
- s.CommitId = &v
- return s
- }
- // SetCommitter sets the Committer field's value.
- func (s *Commit) SetCommitter(v *UserInfo) *Commit {
- s.Committer = v
- return s
- }
- // SetMessage sets the Message field's value.
- func (s *Commit) SetMessage(v string) *Commit {
- s.Message = &v
- return s
- }
- // SetParents sets the Parents field's value.
- func (s *Commit) SetParents(v []*string) *Commit {
- s.Parents = v
- return s
- }
- // SetTreeId sets the TreeId field's value.
- func (s *Commit) SetTreeId(v string) *Commit {
- s.TreeId = &v
- return s
- }
- // Represents the input of a create branch operation.
- type CreateBranchInput struct {
- _ struct{} `type:"structure"`
- // The name of the new branch to create.
- //
- // BranchName is a required field
- BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
- // The ID of the commit to point the new branch to.
- //
- // CommitId is a required field
- CommitId *string `locationName:"commitId" type:"string" required:"true"`
- // The name of the repository in which you want to create the new branch.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateBranchInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateBranchInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateBranchInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateBranchInput"}
- if s.BranchName == nil {
- invalidParams.Add(request.NewErrParamRequired("BranchName"))
- }
- if s.BranchName != nil && len(*s.BranchName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
- }
- if s.CommitId == nil {
- invalidParams.Add(request.NewErrParamRequired("CommitId"))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBranchName sets the BranchName field's value.
- func (s *CreateBranchInput) SetBranchName(v string) *CreateBranchInput {
- s.BranchName = &v
- return s
- }
- // SetCommitId sets the CommitId field's value.
- func (s *CreateBranchInput) SetCommitId(v string) *CreateBranchInput {
- s.CommitId = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *CreateBranchInput) SetRepositoryName(v string) *CreateBranchInput {
- s.RepositoryName = &v
- return s
- }
- type CreateBranchOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CreateBranchOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateBranchOutput) GoString() string {
- return s.String()
- }
- type CreatePullRequestInput struct {
- _ struct{} `type:"structure"`
- // A unique, client-generated idempotency token that when provided in a request,
- // ensures the request cannot be repeated with a changed parameter. If a request
- // is received with the same parameters and a token is included, the request
- // will return information about the initial request that used that token.
- //
- // The AWS SDKs prepopulate client request tokens. If using an AWS SDK, you
- // do not have to generate an idempotency token, as this will be done for you.
- ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
- // A description of the pull request.
- Description *string `locationName:"description" type:"string"`
- // The targets for the pull request, including the source of the code to be
- // reviewed (the source branch), and the destination where the creator of the
- // pull request intends the code to be merged after the pull request is closed
- // (the destination branch).
- //
- // Targets is a required field
- Targets []*Target `locationName:"targets" type:"list" required:"true"`
- // The title of the pull request. This title will be used to identify the pull
- // request to other users in the repository.
- //
- // Title is a required field
- Title *string `locationName:"title" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreatePullRequestInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePullRequestInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreatePullRequestInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreatePullRequestInput"}
- if s.Targets == nil {
- invalidParams.Add(request.NewErrParamRequired("Targets"))
- }
- if s.Title == nil {
- invalidParams.Add(request.NewErrParamRequired("Title"))
- }
- if s.Targets != nil {
- for i, v := range s.Targets {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClientRequestToken sets the ClientRequestToken field's value.
- func (s *CreatePullRequestInput) SetClientRequestToken(v string) *CreatePullRequestInput {
- s.ClientRequestToken = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *CreatePullRequestInput) SetDescription(v string) *CreatePullRequestInput {
- s.Description = &v
- return s
- }
- // SetTargets sets the Targets field's value.
- func (s *CreatePullRequestInput) SetTargets(v []*Target) *CreatePullRequestInput {
- s.Targets = v
- return s
- }
- // SetTitle sets the Title field's value.
- func (s *CreatePullRequestInput) SetTitle(v string) *CreatePullRequestInput {
- s.Title = &v
- return s
- }
- type CreatePullRequestOutput struct {
- _ struct{} `type:"structure"`
- // Information about the newly created pull request.
- //
- // PullRequest is a required field
- PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreatePullRequestOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePullRequestOutput) GoString() string {
- return s.String()
- }
- // SetPullRequest sets the PullRequest field's value.
- func (s *CreatePullRequestOutput) SetPullRequest(v *PullRequest) *CreatePullRequestOutput {
- s.PullRequest = v
- return s
- }
- // Represents the input of a create repository operation.
- type CreateRepositoryInput struct {
- _ struct{} `type:"structure"`
- // A comment or description about the new repository.
- //
- // The description field for a repository accepts all HTML characters and all
- // valid Unicode characters. Applications that do not HTML-encode the description
- // and display it in a web page could expose users to potentially malicious
- // code. Make sure that you HTML-encode the description field in any application
- // that uses this API to display the repository description on a web page.
- RepositoryDescription *string `locationName:"repositoryDescription" type:"string"`
- // The name of the new repository to be created.
- //
- // The repository name must be unique across the calling AWS account. In addition,
- // repository names are limited to 100 alphanumeric, dash, and underscore characters,
- // and cannot include certain characters. For a full description of the limits
- // on repository names, see Limits (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html)
- // in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateRepositoryInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateRepositoryInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateRepositoryInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateRepositoryInput"}
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRepositoryDescription sets the RepositoryDescription field's value.
- func (s *CreateRepositoryInput) SetRepositoryDescription(v string) *CreateRepositoryInput {
- s.RepositoryDescription = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *CreateRepositoryInput) SetRepositoryName(v string) *CreateRepositoryInput {
- s.RepositoryName = &v
- return s
- }
- // Represents the output of a create repository operation.
- type CreateRepositoryOutput struct {
- _ struct{} `type:"structure"`
- // Information about the newly created repository.
- RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"`
- }
- // String returns the string representation
- func (s CreateRepositoryOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateRepositoryOutput) GoString() string {
- return s.String()
- }
- // SetRepositoryMetadata sets the RepositoryMetadata field's value.
- func (s *CreateRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *CreateRepositoryOutput {
- s.RepositoryMetadata = v
- return s
- }
- // Represents the input of a delete branch operation.
- type DeleteBranchInput struct {
- _ struct{} `type:"structure"`
- // The name of the branch to delete.
- //
- // BranchName is a required field
- BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
- // The name of the repository that contains the branch to be deleted.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteBranchInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteBranchInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteBranchInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteBranchInput"}
- if s.BranchName == nil {
- invalidParams.Add(request.NewErrParamRequired("BranchName"))
- }
- if s.BranchName != nil && len(*s.BranchName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBranchName sets the BranchName field's value.
- func (s *DeleteBranchInput) SetBranchName(v string) *DeleteBranchInput {
- s.BranchName = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *DeleteBranchInput) SetRepositoryName(v string) *DeleteBranchInput {
- s.RepositoryName = &v
- return s
- }
- // Represents the output of a delete branch operation.
- type DeleteBranchOutput struct {
- _ struct{} `type:"structure"`
- // Information about the branch deleted by the operation, including the branch
- // name and the commit ID that was the tip of the branch.
- DeletedBranch *BranchInfo `locationName:"deletedBranch" type:"structure"`
- }
- // String returns the string representation
- func (s DeleteBranchOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteBranchOutput) GoString() string {
- return s.String()
- }
- // SetDeletedBranch sets the DeletedBranch field's value.
- func (s *DeleteBranchOutput) SetDeletedBranch(v *BranchInfo) *DeleteBranchOutput {
- s.DeletedBranch = v
- return s
- }
- type DeleteCommentContentInput struct {
- _ struct{} `type:"structure"`
- // The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit
- // or GetCommentsForPullRequest.
- //
- // CommentId is a required field
- CommentId *string `locationName:"commentId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteCommentContentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCommentContentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteCommentContentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteCommentContentInput"}
- if s.CommentId == nil {
- invalidParams.Add(request.NewErrParamRequired("CommentId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCommentId sets the CommentId field's value.
- func (s *DeleteCommentContentInput) SetCommentId(v string) *DeleteCommentContentInput {
- s.CommentId = &v
- return s
- }
- type DeleteCommentContentOutput struct {
- _ struct{} `type:"structure"`
- // Information about the comment you just deleted.
- Comment *Comment `locationName:"comment" type:"structure"`
- }
- // String returns the string representation
- func (s DeleteCommentContentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCommentContentOutput) GoString() string {
- return s.String()
- }
- // SetComment sets the Comment field's value.
- func (s *DeleteCommentContentOutput) SetComment(v *Comment) *DeleteCommentContentOutput {
- s.Comment = v
- return s
- }
- type DeleteFileInput struct {
- _ struct{} `type:"structure"`
- // The name of the branch where the commit will be made deleting the file.
- //
- // BranchName is a required field
- BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
- // The commit message you want to include as part of deleting the file. Commit
- // messages are limited to 256 KB. If no message is specified, a default message
- // will be used.
- CommitMessage *string `locationName:"commitMessage" type:"string"`
- // The email address for the commit that deletes the file. If no email address
- // is specified, the email address will be left blank.
- Email *string `locationName:"email" type:"string"`
- // The fully-qualified path to the file that will be deleted, including the
- // full name and extension of that file. For example, /examples/file.md is a
- // fully qualified path to a file named file.md in a folder named examples.
- //
- // FilePath is a required field
- FilePath *string `locationName:"filePath" type:"string" required:"true"`
- // Specifies whether to delete the folder or directory that contains the file
- // you want to delete if that file is the only object in the folder or directory.
- // By default, empty folders will be deleted. This includes empty folders that
- // are part of the directory structure. For example, if the path to a file is
- // dir1/dir2/dir3/dir4, and dir2 and dir3 are empty, deleting the last file
- // in dir4 will also delete the empty folders dir4, dir3, and dir2.
- KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"`
- // The name of the author of the commit that deletes the file. If no name is
- // specified, the user's ARN will be used as the author name and committer name.
- Name *string `locationName:"name" type:"string"`
- // The ID of the commit that is the tip of the branch where you want to create
- // the commit that will delete the file. This must be the HEAD commit for the
- // branch. The commit that deletes the file will be created from this commit
- // ID.
- //
- // ParentCommitId is a required field
- ParentCommitId *string `locationName:"parentCommitId" type:"string" required:"true"`
- // The name of the repository that contains the file to delete.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteFileInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteFileInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteFileInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteFileInput"}
- if s.BranchName == nil {
- invalidParams.Add(request.NewErrParamRequired("BranchName"))
- }
- if s.BranchName != nil && len(*s.BranchName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
- }
- if s.FilePath == nil {
- invalidParams.Add(request.NewErrParamRequired("FilePath"))
- }
- if s.ParentCommitId == nil {
- invalidParams.Add(request.NewErrParamRequired("ParentCommitId"))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBranchName sets the BranchName field's value.
- func (s *DeleteFileInput) SetBranchName(v string) *DeleteFileInput {
- s.BranchName = &v
- return s
- }
- // SetCommitMessage sets the CommitMessage field's value.
- func (s *DeleteFileInput) SetCommitMessage(v string) *DeleteFileInput {
- s.CommitMessage = &v
- return s
- }
- // SetEmail sets the Email field's value.
- func (s *DeleteFileInput) SetEmail(v string) *DeleteFileInput {
- s.Email = &v
- return s
- }
- // SetFilePath sets the FilePath field's value.
- func (s *DeleteFileInput) SetFilePath(v string) *DeleteFileInput {
- s.FilePath = &v
- return s
- }
- // SetKeepEmptyFolders sets the KeepEmptyFolders field's value.
- func (s *DeleteFileInput) SetKeepEmptyFolders(v bool) *DeleteFileInput {
- s.KeepEmptyFolders = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *DeleteFileInput) SetName(v string) *DeleteFileInput {
- s.Name = &v
- return s
- }
- // SetParentCommitId sets the ParentCommitId field's value.
- func (s *DeleteFileInput) SetParentCommitId(v string) *DeleteFileInput {
- s.ParentCommitId = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *DeleteFileInput) SetRepositoryName(v string) *DeleteFileInput {
- s.RepositoryName = &v
- return s
- }
- type DeleteFileOutput struct {
- _ struct{} `type:"structure"`
- // The blob ID removed from the tree as part of deleting the file.
- //
- // BlobId is a required field
- BlobId *string `locationName:"blobId" type:"string" required:"true"`
- // The full commit ID of the commit that contains the change that deletes the
- // file.
- //
- // CommitId is a required field
- CommitId *string `locationName:"commitId" type:"string" required:"true"`
- // The fully-qualified path to the file that will be deleted, including the
- // full name and extension of that file.
- //
- // FilePath is a required field
- FilePath *string `locationName:"filePath" type:"string" required:"true"`
- // The full SHA-1 pointer of the tree information for the commit that contains
- // the delete file change.
- //
- // TreeId is a required field
- TreeId *string `locationName:"treeId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteFileOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteFileOutput) GoString() string {
- return s.String()
- }
- // SetBlobId sets the BlobId field's value.
- func (s *DeleteFileOutput) SetBlobId(v string) *DeleteFileOutput {
- s.BlobId = &v
- return s
- }
- // SetCommitId sets the CommitId field's value.
- func (s *DeleteFileOutput) SetCommitId(v string) *DeleteFileOutput {
- s.CommitId = &v
- return s
- }
- // SetFilePath sets the FilePath field's value.
- func (s *DeleteFileOutput) SetFilePath(v string) *DeleteFileOutput {
- s.FilePath = &v
- return s
- }
- // SetTreeId sets the TreeId field's value.
- func (s *DeleteFileOutput) SetTreeId(v string) *DeleteFileOutput {
- s.TreeId = &v
- return s
- }
- // Represents the input of a delete repository operation.
- type DeleteRepositoryInput struct {
- _ struct{} `type:"structure"`
- // The name of the repository to delete.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteRepositoryInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteRepositoryInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteRepositoryInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteRepositoryInput"}
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *DeleteRepositoryInput) SetRepositoryName(v string) *DeleteRepositoryInput {
- s.RepositoryName = &v
- return s
- }
- // Represents the output of a delete repository operation.
- type DeleteRepositoryOutput struct {
- _ struct{} `type:"structure"`
- // The ID of the repository that was deleted.
- RepositoryId *string `locationName:"repositoryId" type:"string"`
- }
- // String returns the string representation
- func (s DeleteRepositoryOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteRepositoryOutput) GoString() string {
- return s.String()
- }
- // SetRepositoryId sets the RepositoryId field's value.
- func (s *DeleteRepositoryOutput) SetRepositoryId(v string) *DeleteRepositoryOutput {
- s.RepositoryId = &v
- return s
- }
- type DescribePullRequestEventsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the user whose actions resulted in the
- // event. Examples include updating the pull request with additional commits
- // or changing the status of a pull request.
- ActorArn *string `locationName:"actorArn" type:"string"`
- // A non-negative integer used to limit the number of returned results. The
- // default is 100 events, which is also the maximum number of events that can
- // be returned in a result.
- MaxResults *int64 `locationName:"maxResults" type:"integer"`
- // An enumeration token that when provided in a request, returns the next batch
- // of the results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // Optional. The pull request event type about which you want to return information.
- PullRequestEventType *string `locationName:"pullRequestEventType" type:"string" enum:"PullRequestEventType"`
- // The system-generated ID of the pull request. To get this ID, use ListPullRequests.
- //
- // PullRequestId is a required field
- PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribePullRequestEventsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribePullRequestEventsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribePullRequestEventsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribePullRequestEventsInput"}
- if s.PullRequestId == nil {
- invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActorArn sets the ActorArn field's value.
- func (s *DescribePullRequestEventsInput) SetActorArn(v string) *DescribePullRequestEventsInput {
- s.ActorArn = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *DescribePullRequestEventsInput) SetMaxResults(v int64) *DescribePullRequestEventsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribePullRequestEventsInput) SetNextToken(v string) *DescribePullRequestEventsInput {
- s.NextToken = &v
- return s
- }
- // SetPullRequestEventType sets the PullRequestEventType field's value.
- func (s *DescribePullRequestEventsInput) SetPullRequestEventType(v string) *DescribePullRequestEventsInput {
- s.PullRequestEventType = &v
- return s
- }
- // SetPullRequestId sets the PullRequestId field's value.
- func (s *DescribePullRequestEventsInput) SetPullRequestId(v string) *DescribePullRequestEventsInput {
- s.PullRequestId = &v
- return s
- }
- type DescribePullRequestEventsOutput struct {
- _ struct{} `type:"structure"`
- // An enumeration token that can be used in a request to return the next batch
- // of the results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // Information about the pull request events.
- //
- // PullRequestEvents is a required field
- PullRequestEvents []*PullRequestEvent `locationName:"pullRequestEvents" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DescribePullRequestEventsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribePullRequestEventsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribePullRequestEventsOutput) SetNextToken(v string) *DescribePullRequestEventsOutput {
- s.NextToken = &v
- return s
- }
- // SetPullRequestEvents sets the PullRequestEvents field's value.
- func (s *DescribePullRequestEventsOutput) SetPullRequestEvents(v []*PullRequestEvent) *DescribePullRequestEventsOutput {
- s.PullRequestEvents = v
- return s
- }
- // Returns information about a set of differences for a commit specifier.
- type Difference struct {
- _ struct{} `type:"structure"`
- // Information about an afterBlob data type object, including the ID, the file
- // mode permission code, and the path.
- AfterBlob *BlobMetadata `locationName:"afterBlob" type:"structure"`
- // Information about a beforeBlob data type object, including the ID, the file
- // mode permission code, and the path.
- BeforeBlob *BlobMetadata `locationName:"beforeBlob" type:"structure"`
- // Whether the change type of the difference is an addition (A), deletion (D),
- // or modification (M).
- ChangeType *string `locationName:"changeType" type:"string" enum:"ChangeTypeEnum"`
- }
- // String returns the string representation
- func (s Difference) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Difference) GoString() string {
- return s.String()
- }
- // SetAfterBlob sets the AfterBlob field's value.
- func (s *Difference) SetAfterBlob(v *BlobMetadata) *Difference {
- s.AfterBlob = v
- return s
- }
- // SetBeforeBlob sets the BeforeBlob field's value.
- func (s *Difference) SetBeforeBlob(v *BlobMetadata) *Difference {
- s.BeforeBlob = v
- return s
- }
- // SetChangeType sets the ChangeType field's value.
- func (s *Difference) SetChangeType(v string) *Difference {
- s.ChangeType = &v
- return s
- }
- // Returns information about a file in a repository.
- type File struct {
- _ struct{} `type:"structure"`
- // The fully-qualified path to the file in the repository.
- AbsolutePath *string `locationName:"absolutePath" type:"string"`
- // The blob ID that contains the file information.
- BlobId *string `locationName:"blobId" type:"string"`
- // The extrapolated file mode permissions for the file. Valid values include
- // EXECUTABLE and NORMAL.
- FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
- // The relative path of the file from the folder where the query originated.
- RelativePath *string `locationName:"relativePath" type:"string"`
- }
- // String returns the string representation
- func (s File) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s File) GoString() string {
- return s.String()
- }
- // SetAbsolutePath sets the AbsolutePath field's value.
- func (s *File) SetAbsolutePath(v string) *File {
- s.AbsolutePath = &v
- return s
- }
- // SetBlobId sets the BlobId field's value.
- func (s *File) SetBlobId(v string) *File {
- s.BlobId = &v
- return s
- }
- // SetFileMode sets the FileMode field's value.
- func (s *File) SetFileMode(v string) *File {
- s.FileMode = &v
- return s
- }
- // SetRelativePath sets the RelativePath field's value.
- func (s *File) SetRelativePath(v string) *File {
- s.RelativePath = &v
- return s
- }
- // Returns information about a folder in a repository.
- type Folder struct {
- _ struct{} `type:"structure"`
- // The fully-qualified path of the folder in the repository.
- AbsolutePath *string `locationName:"absolutePath" type:"string"`
- // The relative path of the specified folder from the folder where the query
- // originated.
- RelativePath *string `locationName:"relativePath" type:"string"`
- // The full SHA-1 pointer of the tree information for the commit that contains
- // the folder.
- TreeId *string `locationName:"treeId" type:"string"`
- }
- // String returns the string representation
- func (s Folder) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Folder) GoString() string {
- return s.String()
- }
- // SetAbsolutePath sets the AbsolutePath field's value.
- func (s *Folder) SetAbsolutePath(v string) *Folder {
- s.AbsolutePath = &v
- return s
- }
- // SetRelativePath sets the RelativePath field's value.
- func (s *Folder) SetRelativePath(v string) *Folder {
- s.RelativePath = &v
- return s
- }
- // SetTreeId sets the TreeId field's value.
- func (s *Folder) SetTreeId(v string) *Folder {
- s.TreeId = &v
- return s
- }
- // Represents the input of a get blob operation.
- type GetBlobInput struct {
- _ struct{} `type:"structure"`
- // The ID of the blob, which is its SHA-1 pointer.
- //
- // BlobId is a required field
- BlobId *string `locationName:"blobId" type:"string" required:"true"`
- // The name of the repository that contains the blob.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetBlobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetBlobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetBlobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetBlobInput"}
- if s.BlobId == nil {
- invalidParams.Add(request.NewErrParamRequired("BlobId"))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBlobId sets the BlobId field's value.
- func (s *GetBlobInput) SetBlobId(v string) *GetBlobInput {
- s.BlobId = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *GetBlobInput) SetRepositoryName(v string) *GetBlobInput {
- s.RepositoryName = &v
- return s
- }
- // Represents the output of a get blob operation.
- type GetBlobOutput struct {
- _ struct{} `type:"structure"`
- // The content of the blob, usually a file.
- //
- // Content is automatically base64 encoded/decoded by the SDK.
- //
- // Content is a required field
- Content []byte `locationName:"content" type:"blob" required:"true"`
- }
- // String returns the string representation
- func (s GetBlobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetBlobOutput) GoString() string {
- return s.String()
- }
- // SetContent sets the Content field's value.
- func (s *GetBlobOutput) SetContent(v []byte) *GetBlobOutput {
- s.Content = v
- return s
- }
- // Represents the input of a get branch operation.
- type GetBranchInput struct {
- _ struct{} `type:"structure"`
- // The name of the branch for which you want to retrieve information.
- BranchName *string `locationName:"branchName" min:"1" type:"string"`
- // The name of the repository that contains the branch for which you want to
- // retrieve information.
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s GetBranchInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetBranchInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetBranchInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetBranchInput"}
- if s.BranchName != nil && len(*s.BranchName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBranchName sets the BranchName field's value.
- func (s *GetBranchInput) SetBranchName(v string) *GetBranchInput {
- s.BranchName = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *GetBranchInput) SetRepositoryName(v string) *GetBranchInput {
- s.RepositoryName = &v
- return s
- }
- // Represents the output of a get branch operation.
- type GetBranchOutput struct {
- _ struct{} `type:"structure"`
- // The name of the branch.
- Branch *BranchInfo `locationName:"branch" type:"structure"`
- }
- // String returns the string representation
- func (s GetBranchOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetBranchOutput) GoString() string {
- return s.String()
- }
- // SetBranch sets the Branch field's value.
- func (s *GetBranchOutput) SetBranch(v *BranchInfo) *GetBranchOutput {
- s.Branch = v
- return s
- }
- type GetCommentInput struct {
- _ struct{} `type:"structure"`
- // The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit
- // or GetCommentsForPullRequest.
- //
- // CommentId is a required field
- CommentId *string `locationName:"commentId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetCommentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCommentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetCommentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetCommentInput"}
- if s.CommentId == nil {
- invalidParams.Add(request.NewErrParamRequired("CommentId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCommentId sets the CommentId field's value.
- func (s *GetCommentInput) SetCommentId(v string) *GetCommentInput {
- s.CommentId = &v
- return s
- }
- type GetCommentOutput struct {
- _ struct{} `type:"structure"`
- // The contents of the comment.
- Comment *Comment `locationName:"comment" type:"structure"`
- }
- // String returns the string representation
- func (s GetCommentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCommentOutput) GoString() string {
- return s.String()
- }
- // SetComment sets the Comment field's value.
- func (s *GetCommentOutput) SetComment(v *Comment) *GetCommentOutput {
- s.Comment = v
- return s
- }
- type GetCommentsForComparedCommitInput struct {
- _ struct{} `type:"structure"`
- // To establish the directionality of the comparison, the full commit ID of
- // the 'after' commit.
- //
- // AfterCommitId is a required field
- AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"`
- // To establish the directionality of the comparison, the full commit ID of
- // the 'before' commit.
- BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
- // A non-negative integer used to limit the number of returned results. The
- // default is 100 comments, and is configurable up to 500.
- MaxResults *int64 `locationName:"maxResults" type:"integer"`
- // An enumeration token that when provided in a request, returns the next batch
- // of the results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The name of the repository where you want to compare commits.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetCommentsForComparedCommitInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCommentsForComparedCommitInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetCommentsForComparedCommitInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetCommentsForComparedCommitInput"}
- if s.AfterCommitId == nil {
- invalidParams.Add(request.NewErrParamRequired("AfterCommitId"))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAfterCommitId sets the AfterCommitId field's value.
- func (s *GetCommentsForComparedCommitInput) SetAfterCommitId(v string) *GetCommentsForComparedCommitInput {
- s.AfterCommitId = &v
- return s
- }
- // SetBeforeCommitId sets the BeforeCommitId field's value.
- func (s *GetCommentsForComparedCommitInput) SetBeforeCommitId(v string) *GetCommentsForComparedCommitInput {
- s.BeforeCommitId = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *GetCommentsForComparedCommitInput) SetMaxResults(v int64) *GetCommentsForComparedCommitInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetCommentsForComparedCommitInput) SetNextToken(v string) *GetCommentsForComparedCommitInput {
- s.NextToken = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *GetCommentsForComparedCommitInput) SetRepositoryName(v string) *GetCommentsForComparedCommitInput {
- s.RepositoryName = &v
- return s
- }
- type GetCommentsForComparedCommitOutput struct {
- _ struct{} `type:"structure"`
- // A list of comment objects on the compared commit.
- CommentsForComparedCommitData []*CommentsForComparedCommit `locationName:"commentsForComparedCommitData" type:"list"`
- // An enumeration token that can be used in a request to return the next batch
- // of the results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s GetCommentsForComparedCommitOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCommentsForComparedCommitOutput) GoString() string {
- return s.String()
- }
- // SetCommentsForComparedCommitData sets the CommentsForComparedCommitData field's value.
- func (s *GetCommentsForComparedCommitOutput) SetCommentsForComparedCommitData(v []*CommentsForComparedCommit) *GetCommentsForComparedCommitOutput {
- s.CommentsForComparedCommitData = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetCommentsForComparedCommitOutput) SetNextToken(v string) *GetCommentsForComparedCommitOutput {
- s.NextToken = &v
- return s
- }
- type GetCommentsForPullRequestInput struct {
- _ struct{} `type:"structure"`
- // The full commit ID of the commit in the source branch that was the tip of
- // the branch at the time the comment was made.
- AfterCommitId *string `locationName:"afterCommitId" type:"string"`
- // The full commit ID of the commit in the destination branch that was the tip
- // of the branch at the time the pull request was created.
- BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
- // A non-negative integer used to limit the number of returned results. The
- // default is 100 comments. You can return up to 500 comments with a single
- // request.
- MaxResults *int64 `locationName:"maxResults" type:"integer"`
- // An enumeration token that when provided in a request, returns the next batch
- // of the results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The system-generated ID of the pull request. To get this ID, use ListPullRequests.
- //
- // PullRequestId is a required field
- PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
- // The name of the repository that contains the pull request.
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s GetCommentsForPullRequestInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCommentsForPullRequestInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetCommentsForPullRequestInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetCommentsForPullRequestInput"}
- if s.PullRequestId == nil {
- invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAfterCommitId sets the AfterCommitId field's value.
- func (s *GetCommentsForPullRequestInput) SetAfterCommitId(v string) *GetCommentsForPullRequestInput {
- s.AfterCommitId = &v
- return s
- }
- // SetBeforeCommitId sets the BeforeCommitId field's value.
- func (s *GetCommentsForPullRequestInput) SetBeforeCommitId(v string) *GetCommentsForPullRequestInput {
- s.BeforeCommitId = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *GetCommentsForPullRequestInput) SetMaxResults(v int64) *GetCommentsForPullRequestInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetCommentsForPullRequestInput) SetNextToken(v string) *GetCommentsForPullRequestInput {
- s.NextToken = &v
- return s
- }
- // SetPullRequestId sets the PullRequestId field's value.
- func (s *GetCommentsForPullRequestInput) SetPullRequestId(v string) *GetCommentsForPullRequestInput {
- s.PullRequestId = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *GetCommentsForPullRequestInput) SetRepositoryName(v string) *GetCommentsForPullRequestInput {
- s.RepositoryName = &v
- return s
- }
- type GetCommentsForPullRequestOutput struct {
- _ struct{} `type:"structure"`
- // An array of comment objects on the pull request.
- CommentsForPullRequestData []*CommentsForPullRequest `locationName:"commentsForPullRequestData" type:"list"`
- // An enumeration token that can be used in a request to return the next batch
- // of the results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s GetCommentsForPullRequestOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCommentsForPullRequestOutput) GoString() string {
- return s.String()
- }
- // SetCommentsForPullRequestData sets the CommentsForPullRequestData field's value.
- func (s *GetCommentsForPullRequestOutput) SetCommentsForPullRequestData(v []*CommentsForPullRequest) *GetCommentsForPullRequestOutput {
- s.CommentsForPullRequestData = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetCommentsForPullRequestOutput) SetNextToken(v string) *GetCommentsForPullRequestOutput {
- s.NextToken = &v
- return s
- }
- // Represents the input of a get commit operation.
- type GetCommitInput struct {
- _ struct{} `type:"structure"`
- // The commit ID. Commit IDs are the full SHA of the commit.
- //
- // CommitId is a required field
- CommitId *string `locationName:"commitId" type:"string" required:"true"`
- // The name of the repository to which the commit was made.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetCommitInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCommitInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetCommitInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetCommitInput"}
- if s.CommitId == nil {
- invalidParams.Add(request.NewErrParamRequired("CommitId"))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCommitId sets the CommitId field's value.
- func (s *GetCommitInput) SetCommitId(v string) *GetCommitInput {
- s.CommitId = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *GetCommitInput) SetRepositoryName(v string) *GetCommitInput {
- s.RepositoryName = &v
- return s
- }
- // Represents the output of a get commit operation.
- type GetCommitOutput struct {
- _ struct{} `type:"structure"`
- // A commit data type object that contains information about the specified commit.
- //
- // Commit is a required field
- Commit *Commit `locationName:"commit" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s GetCommitOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCommitOutput) GoString() string {
- return s.String()
- }
- // SetCommit sets the Commit field's value.
- func (s *GetCommitOutput) SetCommit(v *Commit) *GetCommitOutput {
- s.Commit = v
- return s
- }
- type GetDifferencesInput struct {
- _ struct{} `type:"structure"`
- // The branch, tag, HEAD, or other fully qualified reference used to identify
- // a commit.
- //
- // AfterCommitSpecifier is a required field
- AfterCommitSpecifier *string `locationName:"afterCommitSpecifier" type:"string" required:"true"`
- // The file path in which to check differences. Limits the results to this path.
- // Can also be used to specify the changed name of a directory or folder, if
- // it has changed. If not specified, differences will be shown for all paths.
- AfterPath *string `locationName:"afterPath" type:"string"`
- // The branch, tag, HEAD, or other fully qualified reference used to identify
- // a commit. For example, the full commit ID. Optional. If not specified, all
- // changes prior to the afterCommitSpecifier value will be shown. If you do
- // not use beforeCommitSpecifier in your request, consider limiting the results
- // with maxResults.
- BeforeCommitSpecifier *string `locationName:"beforeCommitSpecifier" type:"string"`
- // The file path in which to check for differences. Limits the results to this
- // path. Can also be used to specify the previous name of a directory or folder.
- // If beforePath and afterPath are not specified, differences will be shown
- // for all paths.
- BeforePath *string `locationName:"beforePath" type:"string"`
- // A non-negative integer used to limit the number of returned results.
- MaxResults *int64 `type:"integer"`
- // An enumeration token that when provided in a request, returns the next batch
- // of the results.
- NextToken *string `type:"string"`
- // The name of the repository where you want to get differences.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetDifferencesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDifferencesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetDifferencesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetDifferencesInput"}
- if s.AfterCommitSpecifier == nil {
- invalidParams.Add(request.NewErrParamRequired("AfterCommitSpecifier"))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAfterCommitSpecifier sets the AfterCommitSpecifier field's value.
- func (s *GetDifferencesInput) SetAfterCommitSpecifier(v string) *GetDifferencesInput {
- s.AfterCommitSpecifier = &v
- return s
- }
- // SetAfterPath sets the AfterPath field's value.
- func (s *GetDifferencesInput) SetAfterPath(v string) *GetDifferencesInput {
- s.AfterPath = &v
- return s
- }
- // SetBeforeCommitSpecifier sets the BeforeCommitSpecifier field's value.
- func (s *GetDifferencesInput) SetBeforeCommitSpecifier(v string) *GetDifferencesInput {
- s.BeforeCommitSpecifier = &v
- return s
- }
- // SetBeforePath sets the BeforePath field's value.
- func (s *GetDifferencesInput) SetBeforePath(v string) *GetDifferencesInput {
- s.BeforePath = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *GetDifferencesInput) SetMaxResults(v int64) *GetDifferencesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetDifferencesInput) SetNextToken(v string) *GetDifferencesInput {
- s.NextToken = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *GetDifferencesInput) SetRepositoryName(v string) *GetDifferencesInput {
- s.RepositoryName = &v
- return s
- }
- type GetDifferencesOutput struct {
- _ struct{} `type:"structure"`
- // A differences data type object that contains information about the differences,
- // including whether the difference is added, modified, or deleted (A, D, M).
- Differences []*Difference `locationName:"differences" type:"list"`
- // An enumeration token that can be used in a request to return the next batch
- // of the results.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s GetDifferencesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDifferencesOutput) GoString() string {
- return s.String()
- }
- // SetDifferences sets the Differences field's value.
- func (s *GetDifferencesOutput) SetDifferences(v []*Difference) *GetDifferencesOutput {
- s.Differences = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetDifferencesOutput) SetNextToken(v string) *GetDifferencesOutput {
- s.NextToken = &v
- return s
- }
- type GetFileInput struct {
- _ struct{} `type:"structure"`
- // The fully-quaified reference that identifies the commit that contains the
- // file. For example, you could specify a full commit ID, a tag, a branch name,
- // or a reference such as refs/heads/master. If none is provided, then the head
- // commit will be used.
- CommitSpecifier *string `locationName:"commitSpecifier" type:"string"`
- // The fully-qualified path to the file, including the full name and extension
- // of the file. For example, /examples/file.md is the fully-qualified path to
- // a file named file.md in a folder named examples.
- //
- // FilePath is a required field
- FilePath *string `locationName:"filePath" type:"string" required:"true"`
- // The name of the repository that contains the file.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetFileInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetFileInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetFileInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetFileInput"}
- if s.FilePath == nil {
- invalidParams.Add(request.NewErrParamRequired("FilePath"))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCommitSpecifier sets the CommitSpecifier field's value.
- func (s *GetFileInput) SetCommitSpecifier(v string) *GetFileInput {
- s.CommitSpecifier = &v
- return s
- }
- // SetFilePath sets the FilePath field's value.
- func (s *GetFileInput) SetFilePath(v string) *GetFileInput {
- s.FilePath = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *GetFileInput) SetRepositoryName(v string) *GetFileInput {
- s.RepositoryName = &v
- return s
- }
- type GetFileOutput struct {
- _ struct{} `type:"structure"`
- // The blob ID of the object that represents the file content.
- //
- // BlobId is a required field
- BlobId *string `locationName:"blobId" type:"string" required:"true"`
- // The full commit ID of the commit that contains the content returned by GetFile.
- //
- // CommitId is a required field
- CommitId *string `locationName:"commitId" type:"string" required:"true"`
- // The base-64 encoded binary data object that represents the content of the
- // file.
- //
- // FileContent is automatically base64 encoded/decoded by the SDK.
- //
- // FileContent is a required field
- FileContent []byte `locationName:"fileContent" type:"blob" required:"true"`
- // The extrapolated file mode permissions of the blob. Valid values include
- // strings such as EXECUTABLE and not numeric values.
- //
- // The file mode permissions returned by this API are not the standard file
- // mode permission values, such as 100644, but rather extrapolated values. See
- // below for a full list of supported return values.
- //
- // FileMode is a required field
- FileMode *string `locationName:"fileMode" type:"string" required:"true" enum:"FileModeTypeEnum"`
- // The fully qualified path to the specified file. This returns the name and
- // extension of the file.
- //
- // FilePath is a required field
- FilePath *string `locationName:"filePath" type:"string" required:"true"`
- // The size of the contents of the file, in bytes.
- //
- // FileSize is a required field
- FileSize *int64 `locationName:"fileSize" type:"long" required:"true"`
- }
- // String returns the string representation
- func (s GetFileOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetFileOutput) GoString() string {
- return s.String()
- }
- // SetBlobId sets the BlobId field's value.
- func (s *GetFileOutput) SetBlobId(v string) *GetFileOutput {
- s.BlobId = &v
- return s
- }
- // SetCommitId sets the CommitId field's value.
- func (s *GetFileOutput) SetCommitId(v string) *GetFileOutput {
- s.CommitId = &v
- return s
- }
- // SetFileContent sets the FileContent field's value.
- func (s *GetFileOutput) SetFileContent(v []byte) *GetFileOutput {
- s.FileContent = v
- return s
- }
- // SetFileMode sets the FileMode field's value.
- func (s *GetFileOutput) SetFileMode(v string) *GetFileOutput {
- s.FileMode = &v
- return s
- }
- // SetFilePath sets the FilePath field's value.
- func (s *GetFileOutput) SetFilePath(v string) *GetFileOutput {
- s.FilePath = &v
- return s
- }
- // SetFileSize sets the FileSize field's value.
- func (s *GetFileOutput) SetFileSize(v int64) *GetFileOutput {
- s.FileSize = &v
- return s
- }
- type GetFolderInput struct {
- _ struct{} `type:"structure"`
- // A fully-qualified reference used to identify a commit that contains the version
- // of the folder's content to return. A fully-qualified reference can be a commit
- // ID, branch name, tag, or reference such as HEAD. If no specifier is provided,
- // the folder content will be returned as it exists in the HEAD commit.
- CommitSpecifier *string `locationName:"commitSpecifier" type:"string"`
- // The fully-qualified path to the folder whose contents will be returned, including
- // the folder name. For example, /examples is a fully-qualified path to a folder
- // named examples that was created off of the root directory (/) of a repository.
- //
- // FolderPath is a required field
- FolderPath *string `locationName:"folderPath" type:"string" required:"true"`
- // The name of the repository.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetFolderInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetFolderInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetFolderInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetFolderInput"}
- if s.FolderPath == nil {
- invalidParams.Add(request.NewErrParamRequired("FolderPath"))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCommitSpecifier sets the CommitSpecifier field's value.
- func (s *GetFolderInput) SetCommitSpecifier(v string) *GetFolderInput {
- s.CommitSpecifier = &v
- return s
- }
- // SetFolderPath sets the FolderPath field's value.
- func (s *GetFolderInput) SetFolderPath(v string) *GetFolderInput {
- s.FolderPath = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *GetFolderInput) SetRepositoryName(v string) *GetFolderInput {
- s.RepositoryName = &v
- return s
- }
- type GetFolderOutput struct {
- _ struct{} `type:"structure"`
- // The full commit ID used as a reference for which version of the folder content
- // is returned.
- //
- // CommitId is a required field
- CommitId *string `locationName:"commitId" type:"string" required:"true"`
- // The list of files that exist in the specified folder, if any.
- Files []*File `locationName:"files" type:"list"`
- // The fully-qualified path of the folder whose contents are returned.
- //
- // FolderPath is a required field
- FolderPath *string `locationName:"folderPath" type:"string" required:"true"`
- // The list of folders that exist beneath the specified folder, if any.
- SubFolders []*Folder `locationName:"subFolders" type:"list"`
- // The list of submodules that exist in the specified folder, if any.
- SubModules []*SubModule `locationName:"subModules" type:"list"`
- // The list of symbolic links to other files and folders that exist in the specified
- // folder, if any.
- SymbolicLinks []*SymbolicLink `locationName:"symbolicLinks" type:"list"`
- // The full SHA-1 pointer of the tree information for the commit that contains
- // the folder.
- TreeId *string `locationName:"treeId" type:"string"`
- }
- // String returns the string representation
- func (s GetFolderOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetFolderOutput) GoString() string {
- return s.String()
- }
- // SetCommitId sets the CommitId field's value.
- func (s *GetFolderOutput) SetCommitId(v string) *GetFolderOutput {
- s.CommitId = &v
- return s
- }
- // SetFiles sets the Files field's value.
- func (s *GetFolderOutput) SetFiles(v []*File) *GetFolderOutput {
- s.Files = v
- return s
- }
- // SetFolderPath sets the FolderPath field's value.
- func (s *GetFolderOutput) SetFolderPath(v string) *GetFolderOutput {
- s.FolderPath = &v
- return s
- }
- // SetSubFolders sets the SubFolders field's value.
- func (s *GetFolderOutput) SetSubFolders(v []*Folder) *GetFolderOutput {
- s.SubFolders = v
- return s
- }
- // SetSubModules sets the SubModules field's value.
- func (s *GetFolderOutput) SetSubModules(v []*SubModule) *GetFolderOutput {
- s.SubModules = v
- return s
- }
- // SetSymbolicLinks sets the SymbolicLinks field's value.
- func (s *GetFolderOutput) SetSymbolicLinks(v []*SymbolicLink) *GetFolderOutput {
- s.SymbolicLinks = v
- return s
- }
- // SetTreeId sets the TreeId field's value.
- func (s *GetFolderOutput) SetTreeId(v string) *GetFolderOutput {
- s.TreeId = &v
- return s
- }
- type GetMergeConflictsInput struct {
- _ struct{} `type:"structure"`
- // The branch, tag, HEAD, or other fully qualified reference used to identify
- // a commit. For example, a branch name or a full commit ID.
- //
- // DestinationCommitSpecifier is a required field
- DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"`
- // The merge option or strategy you want to use to merge the code. The only
- // valid value is FAST_FORWARD_MERGE.
- //
- // MergeOption is a required field
- MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"`
- // The name of the repository where the pull request was created.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- // The branch, tag, HEAD, or other fully qualified reference used to identify
- // a commit. For example, a branch name or a full commit ID.
- //
- // SourceCommitSpecifier is a required field
- SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetMergeConflictsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetMergeConflictsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetMergeConflictsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetMergeConflictsInput"}
- if s.DestinationCommitSpecifier == nil {
- invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier"))
- }
- if s.MergeOption == nil {
- invalidParams.Add(request.NewErrParamRequired("MergeOption"))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if s.SourceCommitSpecifier == nil {
- invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value.
- func (s *GetMergeConflictsInput) SetDestinationCommitSpecifier(v string) *GetMergeConflictsInput {
- s.DestinationCommitSpecifier = &v
- return s
- }
- // SetMergeOption sets the MergeOption field's value.
- func (s *GetMergeConflictsInput) SetMergeOption(v string) *GetMergeConflictsInput {
- s.MergeOption = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *GetMergeConflictsInput) SetRepositoryName(v string) *GetMergeConflictsInput {
- s.RepositoryName = &v
- return s
- }
- // SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value.
- func (s *GetMergeConflictsInput) SetSourceCommitSpecifier(v string) *GetMergeConflictsInput {
- s.SourceCommitSpecifier = &v
- return s
- }
- type GetMergeConflictsOutput struct {
- _ struct{} `type:"structure"`
- // The commit ID of the destination commit specifier that was used in the merge
- // evaluation.
- //
- // DestinationCommitId is a required field
- DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"`
- // A Boolean value that indicates whether the code is mergable by the specified
- // merge option.
- //
- // Mergeable is a required field
- Mergeable *bool `locationName:"mergeable" type:"boolean" required:"true"`
- // The commit ID of the source commit specifier that was used in the merge evaluation.
- //
- // SourceCommitId is a required field
- SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetMergeConflictsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetMergeConflictsOutput) GoString() string {
- return s.String()
- }
- // SetDestinationCommitId sets the DestinationCommitId field's value.
- func (s *GetMergeConflictsOutput) SetDestinationCommitId(v string) *GetMergeConflictsOutput {
- s.DestinationCommitId = &v
- return s
- }
- // SetMergeable sets the Mergeable field's value.
- func (s *GetMergeConflictsOutput) SetMergeable(v bool) *GetMergeConflictsOutput {
- s.Mergeable = &v
- return s
- }
- // SetSourceCommitId sets the SourceCommitId field's value.
- func (s *GetMergeConflictsOutput) SetSourceCommitId(v string) *GetMergeConflictsOutput {
- s.SourceCommitId = &v
- return s
- }
- type GetPullRequestInput struct {
- _ struct{} `type:"structure"`
- // The system-generated ID of the pull request. To get this ID, use ListPullRequests.
- //
- // PullRequestId is a required field
- PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetPullRequestInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPullRequestInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetPullRequestInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetPullRequestInput"}
- if s.PullRequestId == nil {
- invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPullRequestId sets the PullRequestId field's value.
- func (s *GetPullRequestInput) SetPullRequestId(v string) *GetPullRequestInput {
- s.PullRequestId = &v
- return s
- }
- type GetPullRequestOutput struct {
- _ struct{} `type:"structure"`
- // Information about the specified pull request.
- //
- // PullRequest is a required field
- PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s GetPullRequestOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPullRequestOutput) GoString() string {
- return s.String()
- }
- // SetPullRequest sets the PullRequest field's value.
- func (s *GetPullRequestOutput) SetPullRequest(v *PullRequest) *GetPullRequestOutput {
- s.PullRequest = v
- return s
- }
- // Represents the input of a get repository operation.
- type GetRepositoryInput struct {
- _ struct{} `type:"structure"`
- // The name of the repository to get information about.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetRepositoryInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetRepositoryInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetRepositoryInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetRepositoryInput"}
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *GetRepositoryInput) SetRepositoryName(v string) *GetRepositoryInput {
- s.RepositoryName = &v
- return s
- }
- // Represents the output of a get repository operation.
- type GetRepositoryOutput struct {
- _ struct{} `type:"structure"`
- // Information about the repository.
- RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"`
- }
- // String returns the string representation
- func (s GetRepositoryOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetRepositoryOutput) GoString() string {
- return s.String()
- }
- // SetRepositoryMetadata sets the RepositoryMetadata field's value.
- func (s *GetRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *GetRepositoryOutput {
- s.RepositoryMetadata = v
- return s
- }
- // Represents the input of a get repository triggers operation.
- type GetRepositoryTriggersInput struct {
- _ struct{} `type:"structure"`
- // The name of the repository for which the trigger is configured.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetRepositoryTriggersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetRepositoryTriggersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetRepositoryTriggersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetRepositoryTriggersInput"}
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *GetRepositoryTriggersInput) SetRepositoryName(v string) *GetRepositoryTriggersInput {
- s.RepositoryName = &v
- return s
- }
- // Represents the output of a get repository triggers operation.
- type GetRepositoryTriggersOutput struct {
- _ struct{} `type:"structure"`
- // The system-generated unique ID for the trigger.
- ConfigurationId *string `locationName:"configurationId" type:"string"`
- // The JSON block of configuration information for each trigger.
- Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"`
- }
- // String returns the string representation
- func (s GetRepositoryTriggersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetRepositoryTriggersOutput) GoString() string {
- return s.String()
- }
- // SetConfigurationId sets the ConfigurationId field's value.
- func (s *GetRepositoryTriggersOutput) SetConfigurationId(v string) *GetRepositoryTriggersOutput {
- s.ConfigurationId = &v
- return s
- }
- // SetTriggers sets the Triggers field's value.
- func (s *GetRepositoryTriggersOutput) SetTriggers(v []*RepositoryTrigger) *GetRepositoryTriggersOutput {
- s.Triggers = v
- return s
- }
- // Represents the input of a list branches operation.
- type ListBranchesInput struct {
- _ struct{} `type:"structure"`
- // An enumeration token that allows the operation to batch the results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The name of the repository that contains the branches.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListBranchesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListBranchesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListBranchesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListBranchesInput"}
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListBranchesInput) SetNextToken(v string) *ListBranchesInput {
- s.NextToken = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *ListBranchesInput) SetRepositoryName(v string) *ListBranchesInput {
- s.RepositoryName = &v
- return s
- }
- // Represents the output of a list branches operation.
- type ListBranchesOutput struct {
- _ struct{} `type:"structure"`
- // The list of branch names.
- Branches []*string `locationName:"branches" type:"list"`
- // An enumeration token that returns the batch of the results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListBranchesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListBranchesOutput) GoString() string {
- return s.String()
- }
- // SetBranches sets the Branches field's value.
- func (s *ListBranchesOutput) SetBranches(v []*string) *ListBranchesOutput {
- s.Branches = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListBranchesOutput) SetNextToken(v string) *ListBranchesOutput {
- s.NextToken = &v
- return s
- }
- type ListPullRequestsInput struct {
- _ struct{} `type:"structure"`
- // Optional. The Amazon Resource Name (ARN) of the user who created the pull
- // request. If used, this filters the results to pull requests created by that
- // user.
- AuthorArn *string `locationName:"authorArn" type:"string"`
- // A non-negative integer used to limit the number of returned results.
- MaxResults *int64 `locationName:"maxResults" type:"integer"`
- // An enumeration token that when provided in a request, returns the next batch
- // of the results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // Optional. The status of the pull request. If used, this refines the results
- // to the pull requests that match the specified status.
- PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"`
- // The name of the repository for which you want to list pull requests.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListPullRequestsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPullRequestsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListPullRequestsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListPullRequestsInput"}
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthorArn sets the AuthorArn field's value.
- func (s *ListPullRequestsInput) SetAuthorArn(v string) *ListPullRequestsInput {
- s.AuthorArn = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListPullRequestsInput) SetMaxResults(v int64) *ListPullRequestsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListPullRequestsInput) SetNextToken(v string) *ListPullRequestsInput {
- s.NextToken = &v
- return s
- }
- // SetPullRequestStatus sets the PullRequestStatus field's value.
- func (s *ListPullRequestsInput) SetPullRequestStatus(v string) *ListPullRequestsInput {
- s.PullRequestStatus = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *ListPullRequestsInput) SetRepositoryName(v string) *ListPullRequestsInput {
- s.RepositoryName = &v
- return s
- }
- type ListPullRequestsOutput struct {
- _ struct{} `type:"structure"`
- // An enumeration token that when provided in a request, returns the next batch
- // of the results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The system-generated IDs of the pull requests.
- //
- // PullRequestIds is a required field
- PullRequestIds []*string `locationName:"pullRequestIds" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListPullRequestsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPullRequestsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListPullRequestsOutput) SetNextToken(v string) *ListPullRequestsOutput {
- s.NextToken = &v
- return s
- }
- // SetPullRequestIds sets the PullRequestIds field's value.
- func (s *ListPullRequestsOutput) SetPullRequestIds(v []*string) *ListPullRequestsOutput {
- s.PullRequestIds = v
- return s
- }
- // Represents the input of a list repositories operation.
- type ListRepositoriesInput struct {
- _ struct{} `type:"structure"`
- // An enumeration token that allows the operation to batch the results of the
- // operation. Batch sizes are 1,000 for list repository operations. When the
- // client sends the token back to AWS CodeCommit, another page of 1,000 records
- // is retrieved.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The order in which to sort the results of a list repositories operation.
- Order *string `locationName:"order" type:"string" enum:"OrderEnum"`
- // The criteria used to sort the results of a list repositories operation.
- SortBy *string `locationName:"sortBy" type:"string" enum:"SortByEnum"`
- }
- // String returns the string representation
- func (s ListRepositoriesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListRepositoriesInput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListRepositoriesInput) SetNextToken(v string) *ListRepositoriesInput {
- s.NextToken = &v
- return s
- }
- // SetOrder sets the Order field's value.
- func (s *ListRepositoriesInput) SetOrder(v string) *ListRepositoriesInput {
- s.Order = &v
- return s
- }
- // SetSortBy sets the SortBy field's value.
- func (s *ListRepositoriesInput) SetSortBy(v string) *ListRepositoriesInput {
- s.SortBy = &v
- return s
- }
- // Represents the output of a list repositories operation.
- type ListRepositoriesOutput struct {
- _ struct{} `type:"structure"`
- // An enumeration token that allows the operation to batch the results of the
- // operation. Batch sizes are 1,000 for list repository operations. When the
- // client sends the token back to AWS CodeCommit, another page of 1,000 records
- // is retrieved.
- NextToken *string `locationName:"nextToken" type:"string"`
- // Lists the repositories called by the list repositories operation.
- Repositories []*RepositoryNameIdPair `locationName:"repositories" type:"list"`
- }
- // String returns the string representation
- func (s ListRepositoriesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListRepositoriesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListRepositoriesOutput) SetNextToken(v string) *ListRepositoriesOutput {
- s.NextToken = &v
- return s
- }
- // SetRepositories sets the Repositories field's value.
- func (s *ListRepositoriesOutput) SetRepositories(v []*RepositoryNameIdPair) *ListRepositoriesOutput {
- s.Repositories = v
- return s
- }
- // Returns information about the location of a change or comment in the comparison
- // between two commits or a pull request.
- type Location struct {
- _ struct{} `type:"structure"`
- // The name of the file being compared, including its extension and subdirectory,
- // if any.
- FilePath *string `locationName:"filePath" type:"string"`
- // The position of a change within a compared file, in line number format.
- FilePosition *int64 `locationName:"filePosition" type:"long"`
- // In a comparison of commits or a pull request, whether the change is in the
- // 'before' or 'after' of that comparison.
- RelativeFileVersion *string `locationName:"relativeFileVersion" type:"string" enum:"RelativeFileVersionEnum"`
- }
- // String returns the string representation
- func (s Location) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Location) GoString() string {
- return s.String()
- }
- // SetFilePath sets the FilePath field's value.
- func (s *Location) SetFilePath(v string) *Location {
- s.FilePath = &v
- return s
- }
- // SetFilePosition sets the FilePosition field's value.
- func (s *Location) SetFilePosition(v int64) *Location {
- s.FilePosition = &v
- return s
- }
- // SetRelativeFileVersion sets the RelativeFileVersion field's value.
- func (s *Location) SetRelativeFileVersion(v string) *Location {
- s.RelativeFileVersion = &v
- return s
- }
- // Returns information about a merge or potential merge between a source reference
- // and a destination reference in a pull request.
- type MergeMetadata struct {
- _ struct{} `type:"structure"`
- // A Boolean value indicating whether the merge has been made.
- IsMerged *bool `locationName:"isMerged" type:"boolean"`
- // The Amazon Resource Name (ARN) of the user who merged the branches.
- MergedBy *string `locationName:"mergedBy" type:"string"`
- }
- // String returns the string representation
- func (s MergeMetadata) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MergeMetadata) GoString() string {
- return s.String()
- }
- // SetIsMerged sets the IsMerged field's value.
- func (s *MergeMetadata) SetIsMerged(v bool) *MergeMetadata {
- s.IsMerged = &v
- return s
- }
- // SetMergedBy sets the MergedBy field's value.
- func (s *MergeMetadata) SetMergedBy(v string) *MergeMetadata {
- s.MergedBy = &v
- return s
- }
- type MergePullRequestByFastForwardInput struct {
- _ struct{} `type:"structure"`
- // The system-generated ID of the pull request. To get this ID, use ListPullRequests.
- //
- // PullRequestId is a required field
- PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
- // The name of the repository where the pull request was created.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- // The full commit ID of the original or updated commit in the pull request
- // source branch. Pass this value if you want an exception thrown if the current
- // commit ID of the tip of the source branch does not match this commit ID.
- SourceCommitId *string `locationName:"sourceCommitId" type:"string"`
- }
- // String returns the string representation
- func (s MergePullRequestByFastForwardInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MergePullRequestByFastForwardInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *MergePullRequestByFastForwardInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "MergePullRequestByFastForwardInput"}
- if s.PullRequestId == nil {
- invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPullRequestId sets the PullRequestId field's value.
- func (s *MergePullRequestByFastForwardInput) SetPullRequestId(v string) *MergePullRequestByFastForwardInput {
- s.PullRequestId = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *MergePullRequestByFastForwardInput) SetRepositoryName(v string) *MergePullRequestByFastForwardInput {
- s.RepositoryName = &v
- return s
- }
- // SetSourceCommitId sets the SourceCommitId field's value.
- func (s *MergePullRequestByFastForwardInput) SetSourceCommitId(v string) *MergePullRequestByFastForwardInput {
- s.SourceCommitId = &v
- return s
- }
- type MergePullRequestByFastForwardOutput struct {
- _ struct{} `type:"structure"`
- // Information about the specified pull request, including information about
- // the merge.
- PullRequest *PullRequest `locationName:"pullRequest" type:"structure"`
- }
- // String returns the string representation
- func (s MergePullRequestByFastForwardOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MergePullRequestByFastForwardOutput) GoString() string {
- return s.String()
- }
- // SetPullRequest sets the PullRequest field's value.
- func (s *MergePullRequestByFastForwardOutput) SetPullRequest(v *PullRequest) *MergePullRequestByFastForwardOutput {
- s.PullRequest = v
- return s
- }
- type PostCommentForComparedCommitInput struct {
- _ struct{} `type:"structure"`
- // To establish the directionality of the comparison, the full commit ID of
- // the 'after' commit.
- //
- // AfterCommitId is a required field
- AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"`
- // To establish the directionality of the comparison, the full commit ID of
- // the 'before' commit.
- BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
- // A unique, client-generated idempotency token that when provided in a request,
- // ensures the request cannot be repeated with a changed parameter. If a request
- // is received with the same parameters and a token is included, the request
- // will return information about the initial request that used that token.
- ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
- // The content of the comment you want to make.
- //
- // Content is a required field
- Content *string `locationName:"content" type:"string" required:"true"`
- // The location of the comparison where you want to comment.
- Location *Location `locationName:"location" type:"structure"`
- // The name of the repository where you want to post a comment on the comparison
- // between commits.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PostCommentForComparedCommitInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PostCommentForComparedCommitInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PostCommentForComparedCommitInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PostCommentForComparedCommitInput"}
- if s.AfterCommitId == nil {
- invalidParams.Add(request.NewErrParamRequired("AfterCommitId"))
- }
- if s.Content == nil {
- invalidParams.Add(request.NewErrParamRequired("Content"))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAfterCommitId sets the AfterCommitId field's value.
- func (s *PostCommentForComparedCommitInput) SetAfterCommitId(v string) *PostCommentForComparedCommitInput {
- s.AfterCommitId = &v
- return s
- }
- // SetBeforeCommitId sets the BeforeCommitId field's value.
- func (s *PostCommentForComparedCommitInput) SetBeforeCommitId(v string) *PostCommentForComparedCommitInput {
- s.BeforeCommitId = &v
- return s
- }
- // SetClientRequestToken sets the ClientRequestToken field's value.
- func (s *PostCommentForComparedCommitInput) SetClientRequestToken(v string) *PostCommentForComparedCommitInput {
- s.ClientRequestToken = &v
- return s
- }
- // SetContent sets the Content field's value.
- func (s *PostCommentForComparedCommitInput) SetContent(v string) *PostCommentForComparedCommitInput {
- s.Content = &v
- return s
- }
- // SetLocation sets the Location field's value.
- func (s *PostCommentForComparedCommitInput) SetLocation(v *Location) *PostCommentForComparedCommitInput {
- s.Location = v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *PostCommentForComparedCommitInput) SetRepositoryName(v string) *PostCommentForComparedCommitInput {
- s.RepositoryName = &v
- return s
- }
- type PostCommentForComparedCommitOutput struct {
- _ struct{} `type:"structure"`
- // In the directionality you established, the blob ID of the 'after' blob.
- AfterBlobId *string `locationName:"afterBlobId" type:"string"`
- // In the directionality you established, the full commit ID of the 'after'
- // commit.
- AfterCommitId *string `locationName:"afterCommitId" type:"string"`
- // In the directionality you established, the blob ID of the 'before' blob.
- BeforeBlobId *string `locationName:"beforeBlobId" type:"string"`
- // In the directionality you established, the full commit ID of the 'before'
- // commit.
- BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
- // The content of the comment you posted.
- Comment *Comment `locationName:"comment" type:"structure"`
- // The location of the comment in the comparison between the two commits.
- Location *Location `locationName:"location" type:"structure"`
- // The name of the repository where you posted a comment on the comparison between
- // commits.
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s PostCommentForComparedCommitOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PostCommentForComparedCommitOutput) GoString() string {
- return s.String()
- }
- // SetAfterBlobId sets the AfterBlobId field's value.
- func (s *PostCommentForComparedCommitOutput) SetAfterBlobId(v string) *PostCommentForComparedCommitOutput {
- s.AfterBlobId = &v
- return s
- }
- // SetAfterCommitId sets the AfterCommitId field's value.
- func (s *PostCommentForComparedCommitOutput) SetAfterCommitId(v string) *PostCommentForComparedCommitOutput {
- s.AfterCommitId = &v
- return s
- }
- // SetBeforeBlobId sets the BeforeBlobId field's value.
- func (s *PostCommentForComparedCommitOutput) SetBeforeBlobId(v string) *PostCommentForComparedCommitOutput {
- s.BeforeBlobId = &v
- return s
- }
- // SetBeforeCommitId sets the BeforeCommitId field's value.
- func (s *PostCommentForComparedCommitOutput) SetBeforeCommitId(v string) *PostCommentForComparedCommitOutput {
- s.BeforeCommitId = &v
- return s
- }
- // SetComment sets the Comment field's value.
- func (s *PostCommentForComparedCommitOutput) SetComment(v *Comment) *PostCommentForComparedCommitOutput {
- s.Comment = v
- return s
- }
- // SetLocation sets the Location field's value.
- func (s *PostCommentForComparedCommitOutput) SetLocation(v *Location) *PostCommentForComparedCommitOutput {
- s.Location = v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *PostCommentForComparedCommitOutput) SetRepositoryName(v string) *PostCommentForComparedCommitOutput {
- s.RepositoryName = &v
- return s
- }
- type PostCommentForPullRequestInput struct {
- _ struct{} `type:"structure"`
- // The full commit ID of the commit in the source branch that is the current
- // tip of the branch for the pull request when you post the comment.
- //
- // AfterCommitId is a required field
- AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"`
- // The full commit ID of the commit in the destination branch that was the tip
- // of the branch at the time the pull request was created.
- //
- // BeforeCommitId is a required field
- BeforeCommitId *string `locationName:"beforeCommitId" type:"string" required:"true"`
- // A unique, client-generated idempotency token that when provided in a request,
- // ensures the request cannot be repeated with a changed parameter. If a request
- // is received with the same parameters and a token is included, the request
- // will return information about the initial request that used that token.
- ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
- // The content of your comment on the change.
- //
- // Content is a required field
- Content *string `locationName:"content" type:"string" required:"true"`
- // The location of the change where you want to post your comment. If no location
- // is provided, the comment will be posted as a general comment on the pull
- // request difference between the before commit ID and the after commit ID.
- Location *Location `locationName:"location" type:"structure"`
- // The system-generated ID of the pull request. To get this ID, use ListPullRequests.
- //
- // PullRequestId is a required field
- PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
- // The name of the repository where you want to post a comment on a pull request.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PostCommentForPullRequestInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PostCommentForPullRequestInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PostCommentForPullRequestInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PostCommentForPullRequestInput"}
- if s.AfterCommitId == nil {
- invalidParams.Add(request.NewErrParamRequired("AfterCommitId"))
- }
- if s.BeforeCommitId == nil {
- invalidParams.Add(request.NewErrParamRequired("BeforeCommitId"))
- }
- if s.Content == nil {
- invalidParams.Add(request.NewErrParamRequired("Content"))
- }
- if s.PullRequestId == nil {
- invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAfterCommitId sets the AfterCommitId field's value.
- func (s *PostCommentForPullRequestInput) SetAfterCommitId(v string) *PostCommentForPullRequestInput {
- s.AfterCommitId = &v
- return s
- }
- // SetBeforeCommitId sets the BeforeCommitId field's value.
- func (s *PostCommentForPullRequestInput) SetBeforeCommitId(v string) *PostCommentForPullRequestInput {
- s.BeforeCommitId = &v
- return s
- }
- // SetClientRequestToken sets the ClientRequestToken field's value.
- func (s *PostCommentForPullRequestInput) SetClientRequestToken(v string) *PostCommentForPullRequestInput {
- s.ClientRequestToken = &v
- return s
- }
- // SetContent sets the Content field's value.
- func (s *PostCommentForPullRequestInput) SetContent(v string) *PostCommentForPullRequestInput {
- s.Content = &v
- return s
- }
- // SetLocation sets the Location field's value.
- func (s *PostCommentForPullRequestInput) SetLocation(v *Location) *PostCommentForPullRequestInput {
- s.Location = v
- return s
- }
- // SetPullRequestId sets the PullRequestId field's value.
- func (s *PostCommentForPullRequestInput) SetPullRequestId(v string) *PostCommentForPullRequestInput {
- s.PullRequestId = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *PostCommentForPullRequestInput) SetRepositoryName(v string) *PostCommentForPullRequestInput {
- s.RepositoryName = &v
- return s
- }
- type PostCommentForPullRequestOutput struct {
- _ struct{} `type:"structure"`
- // In the directionality of the pull request, the blob ID of the 'after' blob.
- AfterBlobId *string `locationName:"afterBlobId" type:"string"`
- // The full commit ID of the commit in the destination branch where the pull
- // request will be merged.
- AfterCommitId *string `locationName:"afterCommitId" type:"string"`
- // In the directionality of the pull request, the blob ID of the 'before' blob.
- BeforeBlobId *string `locationName:"beforeBlobId" type:"string"`
- // The full commit ID of the commit in the source branch used to create the
- // pull request, or in the case of an updated pull request, the full commit
- // ID of the commit used to update the pull request.
- BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
- // The content of the comment you posted.
- Comment *Comment `locationName:"comment" type:"structure"`
- // The location of the change where you posted your comment.
- Location *Location `locationName:"location" type:"structure"`
- // The system-generated ID of the pull request.
- PullRequestId *string `locationName:"pullRequestId" type:"string"`
- // The name of the repository where you posted a comment on a pull request.
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s PostCommentForPullRequestOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PostCommentForPullRequestOutput) GoString() string {
- return s.String()
- }
- // SetAfterBlobId sets the AfterBlobId field's value.
- func (s *PostCommentForPullRequestOutput) SetAfterBlobId(v string) *PostCommentForPullRequestOutput {
- s.AfterBlobId = &v
- return s
- }
- // SetAfterCommitId sets the AfterCommitId field's value.
- func (s *PostCommentForPullRequestOutput) SetAfterCommitId(v string) *PostCommentForPullRequestOutput {
- s.AfterCommitId = &v
- return s
- }
- // SetBeforeBlobId sets the BeforeBlobId field's value.
- func (s *PostCommentForPullRequestOutput) SetBeforeBlobId(v string) *PostCommentForPullRequestOutput {
- s.BeforeBlobId = &v
- return s
- }
- // SetBeforeCommitId sets the BeforeCommitId field's value.
- func (s *PostCommentForPullRequestOutput) SetBeforeCommitId(v string) *PostCommentForPullRequestOutput {
- s.BeforeCommitId = &v
- return s
- }
- // SetComment sets the Comment field's value.
- func (s *PostCommentForPullRequestOutput) SetComment(v *Comment) *PostCommentForPullRequestOutput {
- s.Comment = v
- return s
- }
- // SetLocation sets the Location field's value.
- func (s *PostCommentForPullRequestOutput) SetLocation(v *Location) *PostCommentForPullRequestOutput {
- s.Location = v
- return s
- }
- // SetPullRequestId sets the PullRequestId field's value.
- func (s *PostCommentForPullRequestOutput) SetPullRequestId(v string) *PostCommentForPullRequestOutput {
- s.PullRequestId = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *PostCommentForPullRequestOutput) SetRepositoryName(v string) *PostCommentForPullRequestOutput {
- s.RepositoryName = &v
- return s
- }
- type PostCommentReplyInput struct {
- _ struct{} `type:"structure"`
- // A unique, client-generated idempotency token that when provided in a request,
- // ensures the request cannot be repeated with a changed parameter. If a request
- // is received with the same parameters and a token is included, the request
- // will return information about the initial request that used that token.
- ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
- // The contents of your reply to a comment.
- //
- // Content is a required field
- Content *string `locationName:"content" type:"string" required:"true"`
- // The system-generated ID of the comment to which you want to reply. To get
- // this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
- //
- // InReplyTo is a required field
- InReplyTo *string `locationName:"inReplyTo" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PostCommentReplyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PostCommentReplyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PostCommentReplyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PostCommentReplyInput"}
- if s.Content == nil {
- invalidParams.Add(request.NewErrParamRequired("Content"))
- }
- if s.InReplyTo == nil {
- invalidParams.Add(request.NewErrParamRequired("InReplyTo"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClientRequestToken sets the ClientRequestToken field's value.
- func (s *PostCommentReplyInput) SetClientRequestToken(v string) *PostCommentReplyInput {
- s.ClientRequestToken = &v
- return s
- }
- // SetContent sets the Content field's value.
- func (s *PostCommentReplyInput) SetContent(v string) *PostCommentReplyInput {
- s.Content = &v
- return s
- }
- // SetInReplyTo sets the InReplyTo field's value.
- func (s *PostCommentReplyInput) SetInReplyTo(v string) *PostCommentReplyInput {
- s.InReplyTo = &v
- return s
- }
- type PostCommentReplyOutput struct {
- _ struct{} `type:"structure"`
- // Information about the reply to a comment.
- Comment *Comment `locationName:"comment" type:"structure"`
- }
- // String returns the string representation
- func (s PostCommentReplyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PostCommentReplyOutput) GoString() string {
- return s.String()
- }
- // SetComment sets the Comment field's value.
- func (s *PostCommentReplyOutput) SetComment(v *Comment) *PostCommentReplyOutput {
- s.Comment = v
- return s
- }
- // Returns information about a pull request.
- type PullRequest struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the user who created the pull request.
- AuthorArn *string `locationName:"authorArn" type:"string"`
- // A unique, client-generated idempotency token that when provided in a request,
- // ensures the request cannot be repeated with a changed parameter. If a request
- // is received with the same parameters and a token is included, the request
- // will return information about the initial request that used that token.
- ClientRequestToken *string `locationName:"clientRequestToken" type:"string"`
- // The date and time the pull request was originally created, in timestamp format.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The user-defined description of the pull request. This description can be
- // used to clarify what should be reviewed and other details of the request.
- Description *string `locationName:"description" type:"string"`
- // The day and time of the last user or system activity on the pull request,
- // in timestamp format.
- LastActivityDate *time.Time `locationName:"lastActivityDate" type:"timestamp"`
- // The system-generated ID of the pull request.
- PullRequestId *string `locationName:"pullRequestId" type:"string"`
- // The status of the pull request. Pull request status can only change from
- // OPEN to CLOSED.
- PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"`
- // The targets of the pull request, including the source branch and destination
- // branch for the pull request.
- PullRequestTargets []*PullRequestTarget `locationName:"pullRequestTargets" type:"list"`
- // The user-defined title of the pull request. This title is displayed in the
- // list of pull requests to other users of the repository.
- Title *string `locationName:"title" type:"string"`
- }
- // String returns the string representation
- func (s PullRequest) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PullRequest) GoString() string {
- return s.String()
- }
- // SetAuthorArn sets the AuthorArn field's value.
- func (s *PullRequest) SetAuthorArn(v string) *PullRequest {
- s.AuthorArn = &v
- return s
- }
- // SetClientRequestToken sets the ClientRequestToken field's value.
- func (s *PullRequest) SetClientRequestToken(v string) *PullRequest {
- s.ClientRequestToken = &v
- return s
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *PullRequest) SetCreationDate(v time.Time) *PullRequest {
- s.CreationDate = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *PullRequest) SetDescription(v string) *PullRequest {
- s.Description = &v
- return s
- }
- // SetLastActivityDate sets the LastActivityDate field's value.
- func (s *PullRequest) SetLastActivityDate(v time.Time) *PullRequest {
- s.LastActivityDate = &v
- return s
- }
- // SetPullRequestId sets the PullRequestId field's value.
- func (s *PullRequest) SetPullRequestId(v string) *PullRequest {
- s.PullRequestId = &v
- return s
- }
- // SetPullRequestStatus sets the PullRequestStatus field's value.
- func (s *PullRequest) SetPullRequestStatus(v string) *PullRequest {
- s.PullRequestStatus = &v
- return s
- }
- // SetPullRequestTargets sets the PullRequestTargets field's value.
- func (s *PullRequest) SetPullRequestTargets(v []*PullRequestTarget) *PullRequest {
- s.PullRequestTargets = v
- return s
- }
- // SetTitle sets the Title field's value.
- func (s *PullRequest) SetTitle(v string) *PullRequest {
- s.Title = &v
- return s
- }
- // Metadata about the pull request that is used when comparing the pull request
- // source with its destination.
- type PullRequestCreatedEventMetadata struct {
- _ struct{} `type:"structure"`
- // The commit ID of the tip of the branch specified as the destination branch
- // when the pull request was created.
- DestinationCommitId *string `locationName:"destinationCommitId" type:"string"`
- // The commit ID of the most recent commit that the source branch and the destination
- // branch have in common.
- MergeBase *string `locationName:"mergeBase" type:"string"`
- // The name of the repository where the pull request was created.
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
- // The commit ID on the source branch used when the pull request was created.
- SourceCommitId *string `locationName:"sourceCommitId" type:"string"`
- }
- // String returns the string representation
- func (s PullRequestCreatedEventMetadata) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PullRequestCreatedEventMetadata) GoString() string {
- return s.String()
- }
- // SetDestinationCommitId sets the DestinationCommitId field's value.
- func (s *PullRequestCreatedEventMetadata) SetDestinationCommitId(v string) *PullRequestCreatedEventMetadata {
- s.DestinationCommitId = &v
- return s
- }
- // SetMergeBase sets the MergeBase field's value.
- func (s *PullRequestCreatedEventMetadata) SetMergeBase(v string) *PullRequestCreatedEventMetadata {
- s.MergeBase = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *PullRequestCreatedEventMetadata) SetRepositoryName(v string) *PullRequestCreatedEventMetadata {
- s.RepositoryName = &v
- return s
- }
- // SetSourceCommitId sets the SourceCommitId field's value.
- func (s *PullRequestCreatedEventMetadata) SetSourceCommitId(v string) *PullRequestCreatedEventMetadata {
- s.SourceCommitId = &v
- return s
- }
- // Returns information about a pull request event.
- type PullRequestEvent struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the user whose actions resulted in the
- // event. Examples include updating the pull request with additional commits
- // or changing the status of a pull request.
- ActorArn *string `locationName:"actorArn" type:"string"`
- // The day and time of the pull request event, in timestamp format.
- EventDate *time.Time `locationName:"eventDate" type:"timestamp"`
- // Information about the source and destination branches for the pull request.
- PullRequestCreatedEventMetadata *PullRequestCreatedEventMetadata `locationName:"pullRequestCreatedEventMetadata" type:"structure"`
- // The type of the pull request event, for example a status change event (PULL_REQUEST_STATUS_CHANGED)
- // or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED).
- PullRequestEventType *string `locationName:"pullRequestEventType" type:"string" enum:"PullRequestEventType"`
- // The system-generated ID of the pull request.
- PullRequestId *string `locationName:"pullRequestId" type:"string"`
- // Information about the change in mergability state for the pull request event.
- PullRequestMergedStateChangedEventMetadata *PullRequestMergedStateChangedEventMetadata `locationName:"pullRequestMergedStateChangedEventMetadata" type:"structure"`
- // Information about the updated source branch for the pull request event.
- PullRequestSourceReferenceUpdatedEventMetadata *PullRequestSourceReferenceUpdatedEventMetadata `locationName:"pullRequestSourceReferenceUpdatedEventMetadata" type:"structure"`
- // Information about the change in status for the pull request event.
- PullRequestStatusChangedEventMetadata *PullRequestStatusChangedEventMetadata `locationName:"pullRequestStatusChangedEventMetadata" type:"structure"`
- }
- // String returns the string representation
- func (s PullRequestEvent) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PullRequestEvent) GoString() string {
- return s.String()
- }
- // SetActorArn sets the ActorArn field's value.
- func (s *PullRequestEvent) SetActorArn(v string) *PullRequestEvent {
- s.ActorArn = &v
- return s
- }
- // SetEventDate sets the EventDate field's value.
- func (s *PullRequestEvent) SetEventDate(v time.Time) *PullRequestEvent {
- s.EventDate = &v
- return s
- }
- // SetPullRequestCreatedEventMetadata sets the PullRequestCreatedEventMetadata field's value.
- func (s *PullRequestEvent) SetPullRequestCreatedEventMetadata(v *PullRequestCreatedEventMetadata) *PullRequestEvent {
- s.PullRequestCreatedEventMetadata = v
- return s
- }
- // SetPullRequestEventType sets the PullRequestEventType field's value.
- func (s *PullRequestEvent) SetPullRequestEventType(v string) *PullRequestEvent {
- s.PullRequestEventType = &v
- return s
- }
- // SetPullRequestId sets the PullRequestId field's value.
- func (s *PullRequestEvent) SetPullRequestId(v string) *PullRequestEvent {
- s.PullRequestId = &v
- return s
- }
- // SetPullRequestMergedStateChangedEventMetadata sets the PullRequestMergedStateChangedEventMetadata field's value.
- func (s *PullRequestEvent) SetPullRequestMergedStateChangedEventMetadata(v *PullRequestMergedStateChangedEventMetadata) *PullRequestEvent {
- s.PullRequestMergedStateChangedEventMetadata = v
- return s
- }
- // SetPullRequestSourceReferenceUpdatedEventMetadata sets the PullRequestSourceReferenceUpdatedEventMetadata field's value.
- func (s *PullRequestEvent) SetPullRequestSourceReferenceUpdatedEventMetadata(v *PullRequestSourceReferenceUpdatedEventMetadata) *PullRequestEvent {
- s.PullRequestSourceReferenceUpdatedEventMetadata = v
- return s
- }
- // SetPullRequestStatusChangedEventMetadata sets the PullRequestStatusChangedEventMetadata field's value.
- func (s *PullRequestEvent) SetPullRequestStatusChangedEventMetadata(v *PullRequestStatusChangedEventMetadata) *PullRequestEvent {
- s.PullRequestStatusChangedEventMetadata = v
- return s
- }
- // Returns information about the change in the merge state for a pull request
- // event.
- type PullRequestMergedStateChangedEventMetadata struct {
- _ struct{} `type:"structure"`
- // The name of the branch that the pull request will be merged into.
- DestinationReference *string `locationName:"destinationReference" type:"string"`
- // Information about the merge state change event.
- MergeMetadata *MergeMetadata `locationName:"mergeMetadata" type:"structure"`
- // The name of the repository where the pull request was created.
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s PullRequestMergedStateChangedEventMetadata) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PullRequestMergedStateChangedEventMetadata) GoString() string {
- return s.String()
- }
- // SetDestinationReference sets the DestinationReference field's value.
- func (s *PullRequestMergedStateChangedEventMetadata) SetDestinationReference(v string) *PullRequestMergedStateChangedEventMetadata {
- s.DestinationReference = &v
- return s
- }
- // SetMergeMetadata sets the MergeMetadata field's value.
- func (s *PullRequestMergedStateChangedEventMetadata) SetMergeMetadata(v *MergeMetadata) *PullRequestMergedStateChangedEventMetadata {
- s.MergeMetadata = v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *PullRequestMergedStateChangedEventMetadata) SetRepositoryName(v string) *PullRequestMergedStateChangedEventMetadata {
- s.RepositoryName = &v
- return s
- }
- // Information about an update to the source branch of a pull request.
- type PullRequestSourceReferenceUpdatedEventMetadata struct {
- _ struct{} `type:"structure"`
- // The full commit ID of the commit in the source branch that was the tip of
- // the branch at the time the pull request was updated.
- AfterCommitId *string `locationName:"afterCommitId" type:"string"`
- // The full commit ID of the commit in the destination branch that was the tip
- // of the branch at the time the pull request was updated.
- BeforeCommitId *string `locationName:"beforeCommitId" type:"string"`
- // The commit ID of the most recent commit that the source branch and the destination
- // branch have in common.
- MergeBase *string `locationName:"mergeBase" type:"string"`
- // The name of the repository where the pull request was updated.
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s PullRequestSourceReferenceUpdatedEventMetadata) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PullRequestSourceReferenceUpdatedEventMetadata) GoString() string {
- return s.String()
- }
- // SetAfterCommitId sets the AfterCommitId field's value.
- func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetAfterCommitId(v string) *PullRequestSourceReferenceUpdatedEventMetadata {
- s.AfterCommitId = &v
- return s
- }
- // SetBeforeCommitId sets the BeforeCommitId field's value.
- func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetBeforeCommitId(v string) *PullRequestSourceReferenceUpdatedEventMetadata {
- s.BeforeCommitId = &v
- return s
- }
- // SetMergeBase sets the MergeBase field's value.
- func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetMergeBase(v string) *PullRequestSourceReferenceUpdatedEventMetadata {
- s.MergeBase = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetRepositoryName(v string) *PullRequestSourceReferenceUpdatedEventMetadata {
- s.RepositoryName = &v
- return s
- }
- // Information about a change to the status of a pull request.
- type PullRequestStatusChangedEventMetadata struct {
- _ struct{} `type:"structure"`
- // The changed status of the pull request.
- PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"`
- }
- // String returns the string representation
- func (s PullRequestStatusChangedEventMetadata) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PullRequestStatusChangedEventMetadata) GoString() string {
- return s.String()
- }
- // SetPullRequestStatus sets the PullRequestStatus field's value.
- func (s *PullRequestStatusChangedEventMetadata) SetPullRequestStatus(v string) *PullRequestStatusChangedEventMetadata {
- s.PullRequestStatus = &v
- return s
- }
- // Returns information about a pull request target.
- type PullRequestTarget struct {
- _ struct{} `type:"structure"`
- // The full commit ID that is the tip of the destination branch. This is the
- // commit where the pull request was or will be merged.
- DestinationCommit *string `locationName:"destinationCommit" type:"string"`
- // The branch of the repository where the pull request changes will be merged
- // into. Also known as the destination branch.
- DestinationReference *string `locationName:"destinationReference" type:"string"`
- // The commit ID of the most recent commit that the source branch and the destination
- // branch have in common.
- MergeBase *string `locationName:"mergeBase" type:"string"`
- // Returns metadata about the state of the merge, including whether the merge
- // has been made.
- MergeMetadata *MergeMetadata `locationName:"mergeMetadata" type:"structure"`
- // The name of the repository that contains the pull request source and destination
- // branches.
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
- // The full commit ID of the tip of the source branch used to create the pull
- // request. If the pull request branch is updated by a push while the pull request
- // is open, the commit ID will change to reflect the new tip of the branch.
- SourceCommit *string `locationName:"sourceCommit" type:"string"`
- // The branch of the repository that contains the changes for the pull request.
- // Also known as the source branch.
- SourceReference *string `locationName:"sourceReference" type:"string"`
- }
- // String returns the string representation
- func (s PullRequestTarget) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PullRequestTarget) GoString() string {
- return s.String()
- }
- // SetDestinationCommit sets the DestinationCommit field's value.
- func (s *PullRequestTarget) SetDestinationCommit(v string) *PullRequestTarget {
- s.DestinationCommit = &v
- return s
- }
- // SetDestinationReference sets the DestinationReference field's value.
- func (s *PullRequestTarget) SetDestinationReference(v string) *PullRequestTarget {
- s.DestinationReference = &v
- return s
- }
- // SetMergeBase sets the MergeBase field's value.
- func (s *PullRequestTarget) SetMergeBase(v string) *PullRequestTarget {
- s.MergeBase = &v
- return s
- }
- // SetMergeMetadata sets the MergeMetadata field's value.
- func (s *PullRequestTarget) SetMergeMetadata(v *MergeMetadata) *PullRequestTarget {
- s.MergeMetadata = v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *PullRequestTarget) SetRepositoryName(v string) *PullRequestTarget {
- s.RepositoryName = &v
- return s
- }
- // SetSourceCommit sets the SourceCommit field's value.
- func (s *PullRequestTarget) SetSourceCommit(v string) *PullRequestTarget {
- s.SourceCommit = &v
- return s
- }
- // SetSourceReference sets the SourceReference field's value.
- func (s *PullRequestTarget) SetSourceReference(v string) *PullRequestTarget {
- s.SourceReference = &v
- return s
- }
- type PutFileInput struct {
- _ struct{} `type:"structure"`
- // The name of the branch where you want to add or update the file. If this
- // is an empty repository, this branch will be created.
- //
- // BranchName is a required field
- BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
- // A message about why this file was added or updated. While optional, adding
- // a message is strongly encouraged in order to provide a more useful commit
- // history for your repository.
- CommitMessage *string `locationName:"commitMessage" type:"string"`
- // An email address for the person adding or updating the file.
- Email *string `locationName:"email" type:"string"`
- // The content of the file, in binary object format.
- //
- // FileContent is automatically base64 encoded/decoded by the SDK.
- //
- // FileContent is a required field
- FileContent []byte `locationName:"fileContent" type:"blob" required:"true"`
- // The file mode permissions of the blob. Valid file mode permissions are listed
- // below.
- FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
- // The name of the file you want to add or update, including the relative path
- // to the file in the repository.
- //
- // If the path does not currently exist in the repository, the path will be
- // created as part of adding the file.
- //
- // FilePath is a required field
- FilePath *string `locationName:"filePath" type:"string" required:"true"`
- // The name of the person adding or updating the file. While optional, adding
- // a name is strongly encouraged in order to provide a more useful commit history
- // for your repository.
- Name *string `locationName:"name" type:"string"`
- // The full commit ID of the head commit in the branch where you want to add
- // or update the file. If this is an empty repository, no commit ID is required.
- // If this is not an empty repository, a commit ID is required.
- //
- // The commit ID must match the ID of the head commit at the time of the operation,
- // or an error will occur, and the file will not be added or updated.
- ParentCommitId *string `locationName:"parentCommitId" type:"string"`
- // The name of the repository where you want to add or update the file.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutFileInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutFileInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutFileInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutFileInput"}
- if s.BranchName == nil {
- invalidParams.Add(request.NewErrParamRequired("BranchName"))
- }
- if s.BranchName != nil && len(*s.BranchName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
- }
- if s.FileContent == nil {
- invalidParams.Add(request.NewErrParamRequired("FileContent"))
- }
- if s.FilePath == nil {
- invalidParams.Add(request.NewErrParamRequired("FilePath"))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBranchName sets the BranchName field's value.
- func (s *PutFileInput) SetBranchName(v string) *PutFileInput {
- s.BranchName = &v
- return s
- }
- // SetCommitMessage sets the CommitMessage field's value.
- func (s *PutFileInput) SetCommitMessage(v string) *PutFileInput {
- s.CommitMessage = &v
- return s
- }
- // SetEmail sets the Email field's value.
- func (s *PutFileInput) SetEmail(v string) *PutFileInput {
- s.Email = &v
- return s
- }
- // SetFileContent sets the FileContent field's value.
- func (s *PutFileInput) SetFileContent(v []byte) *PutFileInput {
- s.FileContent = v
- return s
- }
- // SetFileMode sets the FileMode field's value.
- func (s *PutFileInput) SetFileMode(v string) *PutFileInput {
- s.FileMode = &v
- return s
- }
- // SetFilePath sets the FilePath field's value.
- func (s *PutFileInput) SetFilePath(v string) *PutFileInput {
- s.FilePath = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *PutFileInput) SetName(v string) *PutFileInput {
- s.Name = &v
- return s
- }
- // SetParentCommitId sets the ParentCommitId field's value.
- func (s *PutFileInput) SetParentCommitId(v string) *PutFileInput {
- s.ParentCommitId = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *PutFileInput) SetRepositoryName(v string) *PutFileInput {
- s.RepositoryName = &v
- return s
- }
- type PutFileOutput struct {
- _ struct{} `type:"structure"`
- // The ID of the blob, which is its SHA-1 pointer.
- //
- // BlobId is a required field
- BlobId *string `locationName:"blobId" type:"string" required:"true"`
- // The full SHA of the commit that contains this file change.
- //
- // CommitId is a required field
- CommitId *string `locationName:"commitId" type:"string" required:"true"`
- // The full SHA-1 pointer of the tree information for the commit that contains
- // this file change.
- //
- // TreeId is a required field
- TreeId *string `locationName:"treeId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutFileOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutFileOutput) GoString() string {
- return s.String()
- }
- // SetBlobId sets the BlobId field's value.
- func (s *PutFileOutput) SetBlobId(v string) *PutFileOutput {
- s.BlobId = &v
- return s
- }
- // SetCommitId sets the CommitId field's value.
- func (s *PutFileOutput) SetCommitId(v string) *PutFileOutput {
- s.CommitId = &v
- return s
- }
- // SetTreeId sets the TreeId field's value.
- func (s *PutFileOutput) SetTreeId(v string) *PutFileOutput {
- s.TreeId = &v
- return s
- }
- // Represents the input ofa put repository triggers operation.
- type PutRepositoryTriggersInput struct {
- _ struct{} `type:"structure"`
- // The name of the repository where you want to create or update the trigger.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- // The JSON block of configuration information for each trigger.
- //
- // Triggers is a required field
- Triggers []*RepositoryTrigger `locationName:"triggers" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s PutRepositoryTriggersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutRepositoryTriggersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutRepositoryTriggersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutRepositoryTriggersInput"}
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if s.Triggers == nil {
- invalidParams.Add(request.NewErrParamRequired("Triggers"))
- }
- if s.Triggers != nil {
- for i, v := range s.Triggers {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *PutRepositoryTriggersInput) SetRepositoryName(v string) *PutRepositoryTriggersInput {
- s.RepositoryName = &v
- return s
- }
- // SetTriggers sets the Triggers field's value.
- func (s *PutRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *PutRepositoryTriggersInput {
- s.Triggers = v
- return s
- }
- // Represents the output of a put repository triggers operation.
- type PutRepositoryTriggersOutput struct {
- _ struct{} `type:"structure"`
- // The system-generated unique ID for the create or update operation.
- ConfigurationId *string `locationName:"configurationId" type:"string"`
- }
- // String returns the string representation
- func (s PutRepositoryTriggersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutRepositoryTriggersOutput) GoString() string {
- return s.String()
- }
- // SetConfigurationId sets the ConfigurationId field's value.
- func (s *PutRepositoryTriggersOutput) SetConfigurationId(v string) *PutRepositoryTriggersOutput {
- s.ConfigurationId = &v
- return s
- }
- // Information about a repository.
- type RepositoryMetadata struct {
- _ struct{} `type:"structure"`
- // The ID of the AWS account associated with the repository.
- AccountId *string `locationName:"accountId" type:"string"`
- // The Amazon Resource Name (ARN) of the repository.
- Arn *string `type:"string"`
- // The URL to use for cloning the repository over HTTPS.
- CloneUrlHttp *string `locationName:"cloneUrlHttp" type:"string"`
- // The URL to use for cloning the repository over SSH.
- CloneUrlSsh *string `locationName:"cloneUrlSsh" type:"string"`
- // The date and time the repository was created, in timestamp format.
- CreationDate *time.Time `locationName:"creationDate" type:"timestamp"`
- // The repository's default branch name.
- DefaultBranch *string `locationName:"defaultBranch" min:"1" type:"string"`
- // The date and time the repository was last modified, in timestamp format.
- LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"`
- // A comment or description about the repository.
- RepositoryDescription *string `locationName:"repositoryDescription" type:"string"`
- // The ID of the repository.
- RepositoryId *string `locationName:"repositoryId" type:"string"`
- // The repository's name.
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s RepositoryMetadata) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RepositoryMetadata) GoString() string {
- return s.String()
- }
- // SetAccountId sets the AccountId field's value.
- func (s *RepositoryMetadata) SetAccountId(v string) *RepositoryMetadata {
- s.AccountId = &v
- return s
- }
- // SetArn sets the Arn field's value.
- func (s *RepositoryMetadata) SetArn(v string) *RepositoryMetadata {
- s.Arn = &v
- return s
- }
- // SetCloneUrlHttp sets the CloneUrlHttp field's value.
- func (s *RepositoryMetadata) SetCloneUrlHttp(v string) *RepositoryMetadata {
- s.CloneUrlHttp = &v
- return s
- }
- // SetCloneUrlSsh sets the CloneUrlSsh field's value.
- func (s *RepositoryMetadata) SetCloneUrlSsh(v string) *RepositoryMetadata {
- s.CloneUrlSsh = &v
- return s
- }
- // SetCreationDate sets the CreationDate field's value.
- func (s *RepositoryMetadata) SetCreationDate(v time.Time) *RepositoryMetadata {
- s.CreationDate = &v
- return s
- }
- // SetDefaultBranch sets the DefaultBranch field's value.
- func (s *RepositoryMetadata) SetDefaultBranch(v string) *RepositoryMetadata {
- s.DefaultBranch = &v
- return s
- }
- // SetLastModifiedDate sets the LastModifiedDate field's value.
- func (s *RepositoryMetadata) SetLastModifiedDate(v time.Time) *RepositoryMetadata {
- s.LastModifiedDate = &v
- return s
- }
- // SetRepositoryDescription sets the RepositoryDescription field's value.
- func (s *RepositoryMetadata) SetRepositoryDescription(v string) *RepositoryMetadata {
- s.RepositoryDescription = &v
- return s
- }
- // SetRepositoryId sets the RepositoryId field's value.
- func (s *RepositoryMetadata) SetRepositoryId(v string) *RepositoryMetadata {
- s.RepositoryId = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *RepositoryMetadata) SetRepositoryName(v string) *RepositoryMetadata {
- s.RepositoryName = &v
- return s
- }
- // Information about a repository name and ID.
- type RepositoryNameIdPair struct {
- _ struct{} `type:"structure"`
- // The ID associated with the repository.
- RepositoryId *string `locationName:"repositoryId" type:"string"`
- // The name associated with the repository.
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s RepositoryNameIdPair) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RepositoryNameIdPair) GoString() string {
- return s.String()
- }
- // SetRepositoryId sets the RepositoryId field's value.
- func (s *RepositoryNameIdPair) SetRepositoryId(v string) *RepositoryNameIdPair {
- s.RepositoryId = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *RepositoryNameIdPair) SetRepositoryName(v string) *RepositoryNameIdPair {
- s.RepositoryName = &v
- return s
- }
- // Information about a trigger for a repository.
- type RepositoryTrigger struct {
- _ struct{} `type:"structure"`
- // The branches that will be included in the trigger configuration. If you specify
- // an empty array, the trigger will apply to all branches.
- //
- // While no content is required in the array, you must include the array itself.
- Branches []*string `locationName:"branches" type:"list"`
- // Any custom data associated with the trigger that will be included in the
- // information sent to the target of the trigger.
- CustomData *string `locationName:"customData" type:"string"`
- // The ARN of the resource that is the target for a trigger. For example, the
- // ARN of a topic in Amazon Simple Notification Service (SNS).
- //
- // DestinationArn is a required field
- DestinationArn *string `locationName:"destinationArn" type:"string" required:"true"`
- // The repository events that will cause the trigger to run actions in another
- // service, such as sending a notification through Amazon Simple Notification
- // Service (SNS).
- //
- // The valid value "all" cannot be used with any other values.
- //
- // Events is a required field
- Events []*string `locationName:"events" type:"list" required:"true"`
- // The name of the trigger.
- //
- // Name is a required field
- Name *string `locationName:"name" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RepositoryTrigger) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RepositoryTrigger) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RepositoryTrigger) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RepositoryTrigger"}
- if s.DestinationArn == nil {
- invalidParams.Add(request.NewErrParamRequired("DestinationArn"))
- }
- if s.Events == nil {
- invalidParams.Add(request.NewErrParamRequired("Events"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBranches sets the Branches field's value.
- func (s *RepositoryTrigger) SetBranches(v []*string) *RepositoryTrigger {
- s.Branches = v
- return s
- }
- // SetCustomData sets the CustomData field's value.
- func (s *RepositoryTrigger) SetCustomData(v string) *RepositoryTrigger {
- s.CustomData = &v
- return s
- }
- // SetDestinationArn sets the DestinationArn field's value.
- func (s *RepositoryTrigger) SetDestinationArn(v string) *RepositoryTrigger {
- s.DestinationArn = &v
- return s
- }
- // SetEvents sets the Events field's value.
- func (s *RepositoryTrigger) SetEvents(v []*string) *RepositoryTrigger {
- s.Events = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *RepositoryTrigger) SetName(v string) *RepositoryTrigger {
- s.Name = &v
- return s
- }
- // A trigger failed to run.
- type RepositoryTriggerExecutionFailure struct {
- _ struct{} `type:"structure"`
- // Additional message information about the trigger that did not run.
- FailureMessage *string `locationName:"failureMessage" type:"string"`
- // The name of the trigger that did not run.
- Trigger *string `locationName:"trigger" type:"string"`
- }
- // String returns the string representation
- func (s RepositoryTriggerExecutionFailure) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RepositoryTriggerExecutionFailure) GoString() string {
- return s.String()
- }
- // SetFailureMessage sets the FailureMessage field's value.
- func (s *RepositoryTriggerExecutionFailure) SetFailureMessage(v string) *RepositoryTriggerExecutionFailure {
- s.FailureMessage = &v
- return s
- }
- // SetTrigger sets the Trigger field's value.
- func (s *RepositoryTriggerExecutionFailure) SetTrigger(v string) *RepositoryTriggerExecutionFailure {
- s.Trigger = &v
- return s
- }
- // Returns information about a submodule reference in a repository folder.
- type SubModule struct {
- _ struct{} `type:"structure"`
- // The fully qualified path to the folder that contains the reference to the
- // submodule.
- AbsolutePath *string `locationName:"absolutePath" type:"string"`
- // The commit ID that contains the reference to the submodule.
- CommitId *string `locationName:"commitId" type:"string"`
- // The relative path of the submodule from the folder where the query originated.
- RelativePath *string `locationName:"relativePath" type:"string"`
- }
- // String returns the string representation
- func (s SubModule) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SubModule) GoString() string {
- return s.String()
- }
- // SetAbsolutePath sets the AbsolutePath field's value.
- func (s *SubModule) SetAbsolutePath(v string) *SubModule {
- s.AbsolutePath = &v
- return s
- }
- // SetCommitId sets the CommitId field's value.
- func (s *SubModule) SetCommitId(v string) *SubModule {
- s.CommitId = &v
- return s
- }
- // SetRelativePath sets the RelativePath field's value.
- func (s *SubModule) SetRelativePath(v string) *SubModule {
- s.RelativePath = &v
- return s
- }
- // Returns information about a symbolic link in a repository folder.
- type SymbolicLink struct {
- _ struct{} `type:"structure"`
- // The fully-qualified path to the folder that contains the symbolic link.
- AbsolutePath *string `locationName:"absolutePath" type:"string"`
- // The blob ID that contains the information about the symbolic link.
- BlobId *string `locationName:"blobId" type:"string"`
- // The file mode permissions of the blob that cotains information about the
- // symbolic link.
- FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"`
- // The relative path of the symbolic link from the folder where the query originated.
- RelativePath *string `locationName:"relativePath" type:"string"`
- }
- // String returns the string representation
- func (s SymbolicLink) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SymbolicLink) GoString() string {
- return s.String()
- }
- // SetAbsolutePath sets the AbsolutePath field's value.
- func (s *SymbolicLink) SetAbsolutePath(v string) *SymbolicLink {
- s.AbsolutePath = &v
- return s
- }
- // SetBlobId sets the BlobId field's value.
- func (s *SymbolicLink) SetBlobId(v string) *SymbolicLink {
- s.BlobId = &v
- return s
- }
- // SetFileMode sets the FileMode field's value.
- func (s *SymbolicLink) SetFileMode(v string) *SymbolicLink {
- s.FileMode = &v
- return s
- }
- // SetRelativePath sets the RelativePath field's value.
- func (s *SymbolicLink) SetRelativePath(v string) *SymbolicLink {
- s.RelativePath = &v
- return s
- }
- // Returns information about a target for a pull request.
- type Target struct {
- _ struct{} `type:"structure"`
- // The branch of the repository where the pull request changes will be merged
- // into. Also known as the destination branch.
- DestinationReference *string `locationName:"destinationReference" type:"string"`
- // The name of the repository that contains the pull request.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- // The branch of the repository that contains the changes for the pull request.
- // Also known as the source branch.
- //
- // SourceReference is a required field
- SourceReference *string `locationName:"sourceReference" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Target) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Target) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Target) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Target"}
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if s.SourceReference == nil {
- invalidParams.Add(request.NewErrParamRequired("SourceReference"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDestinationReference sets the DestinationReference field's value.
- func (s *Target) SetDestinationReference(v string) *Target {
- s.DestinationReference = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *Target) SetRepositoryName(v string) *Target {
- s.RepositoryName = &v
- return s
- }
- // SetSourceReference sets the SourceReference field's value.
- func (s *Target) SetSourceReference(v string) *Target {
- s.SourceReference = &v
- return s
- }
- // Represents the input of a test repository triggers operation.
- type TestRepositoryTriggersInput struct {
- _ struct{} `type:"structure"`
- // The name of the repository in which to test the triggers.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- // The list of triggers to test.
- //
- // Triggers is a required field
- Triggers []*RepositoryTrigger `locationName:"triggers" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s TestRepositoryTriggersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TestRepositoryTriggersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TestRepositoryTriggersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TestRepositoryTriggersInput"}
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if s.Triggers == nil {
- invalidParams.Add(request.NewErrParamRequired("Triggers"))
- }
- if s.Triggers != nil {
- for i, v := range s.Triggers {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *TestRepositoryTriggersInput) SetRepositoryName(v string) *TestRepositoryTriggersInput {
- s.RepositoryName = &v
- return s
- }
- // SetTriggers sets the Triggers field's value.
- func (s *TestRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *TestRepositoryTriggersInput {
- s.Triggers = v
- return s
- }
- // Represents the output of a test repository triggers operation.
- type TestRepositoryTriggersOutput struct {
- _ struct{} `type:"structure"`
- // The list of triggers that were not able to be tested. This list provides
- // the names of the triggers that could not be tested, separated by commas.
- FailedExecutions []*RepositoryTriggerExecutionFailure `locationName:"failedExecutions" type:"list"`
- // The list of triggers that were successfully tested. This list provides the
- // names of the triggers that were successfully tested, separated by commas.
- SuccessfulExecutions []*string `locationName:"successfulExecutions" type:"list"`
- }
- // String returns the string representation
- func (s TestRepositoryTriggersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TestRepositoryTriggersOutput) GoString() string {
- return s.String()
- }
- // SetFailedExecutions sets the FailedExecutions field's value.
- func (s *TestRepositoryTriggersOutput) SetFailedExecutions(v []*RepositoryTriggerExecutionFailure) *TestRepositoryTriggersOutput {
- s.FailedExecutions = v
- return s
- }
- // SetSuccessfulExecutions sets the SuccessfulExecutions field's value.
- func (s *TestRepositoryTriggersOutput) SetSuccessfulExecutions(v []*string) *TestRepositoryTriggersOutput {
- s.SuccessfulExecutions = v
- return s
- }
- type UpdateCommentInput struct {
- _ struct{} `type:"structure"`
- // The system-generated ID of the comment you want to update. To get this ID,
- // use GetCommentsForComparedCommit or GetCommentsForPullRequest.
- //
- // CommentId is a required field
- CommentId *string `locationName:"commentId" type:"string" required:"true"`
- // The updated content with which you want to replace the existing content of
- // the comment.
- //
- // Content is a required field
- Content *string `locationName:"content" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateCommentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateCommentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateCommentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateCommentInput"}
- if s.CommentId == nil {
- invalidParams.Add(request.NewErrParamRequired("CommentId"))
- }
- if s.Content == nil {
- invalidParams.Add(request.NewErrParamRequired("Content"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCommentId sets the CommentId field's value.
- func (s *UpdateCommentInput) SetCommentId(v string) *UpdateCommentInput {
- s.CommentId = &v
- return s
- }
- // SetContent sets the Content field's value.
- func (s *UpdateCommentInput) SetContent(v string) *UpdateCommentInput {
- s.Content = &v
- return s
- }
- type UpdateCommentOutput struct {
- _ struct{} `type:"structure"`
- // Information about the updated comment.
- Comment *Comment `locationName:"comment" type:"structure"`
- }
- // String returns the string representation
- func (s UpdateCommentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateCommentOutput) GoString() string {
- return s.String()
- }
- // SetComment sets the Comment field's value.
- func (s *UpdateCommentOutput) SetComment(v *Comment) *UpdateCommentOutput {
- s.Comment = v
- return s
- }
- // Represents the input of an update default branch operation.
- type UpdateDefaultBranchInput struct {
- _ struct{} `type:"structure"`
- // The name of the branch to set as the default.
- //
- // DefaultBranchName is a required field
- DefaultBranchName *string `locationName:"defaultBranchName" min:"1" type:"string" required:"true"`
- // The name of the repository to set or change the default branch for.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateDefaultBranchInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDefaultBranchInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateDefaultBranchInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateDefaultBranchInput"}
- if s.DefaultBranchName == nil {
- invalidParams.Add(request.NewErrParamRequired("DefaultBranchName"))
- }
- if s.DefaultBranchName != nil && len(*s.DefaultBranchName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DefaultBranchName", 1))
- }
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDefaultBranchName sets the DefaultBranchName field's value.
- func (s *UpdateDefaultBranchInput) SetDefaultBranchName(v string) *UpdateDefaultBranchInput {
- s.DefaultBranchName = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *UpdateDefaultBranchInput) SetRepositoryName(v string) *UpdateDefaultBranchInput {
- s.RepositoryName = &v
- return s
- }
- type UpdateDefaultBranchOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateDefaultBranchOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDefaultBranchOutput) GoString() string {
- return s.String()
- }
- type UpdatePullRequestDescriptionInput struct {
- _ struct{} `type:"structure"`
- // The updated content of the description for the pull request. This content
- // will replace the existing description.
- //
- // Description is a required field
- Description *string `locationName:"description" type:"string" required:"true"`
- // The system-generated ID of the pull request. To get this ID, use ListPullRequests.
- //
- // PullRequestId is a required field
- PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdatePullRequestDescriptionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePullRequestDescriptionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdatePullRequestDescriptionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdatePullRequestDescriptionInput"}
- if s.Description == nil {
- invalidParams.Add(request.NewErrParamRequired("Description"))
- }
- if s.PullRequestId == nil {
- invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDescription sets the Description field's value.
- func (s *UpdatePullRequestDescriptionInput) SetDescription(v string) *UpdatePullRequestDescriptionInput {
- s.Description = &v
- return s
- }
- // SetPullRequestId sets the PullRequestId field's value.
- func (s *UpdatePullRequestDescriptionInput) SetPullRequestId(v string) *UpdatePullRequestDescriptionInput {
- s.PullRequestId = &v
- return s
- }
- type UpdatePullRequestDescriptionOutput struct {
- _ struct{} `type:"structure"`
- // Information about the updated pull request.
- //
- // PullRequest is a required field
- PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdatePullRequestDescriptionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePullRequestDescriptionOutput) GoString() string {
- return s.String()
- }
- // SetPullRequest sets the PullRequest field's value.
- func (s *UpdatePullRequestDescriptionOutput) SetPullRequest(v *PullRequest) *UpdatePullRequestDescriptionOutput {
- s.PullRequest = v
- return s
- }
- type UpdatePullRequestStatusInput struct {
- _ struct{} `type:"structure"`
- // The system-generated ID of the pull request. To get this ID, use ListPullRequests.
- //
- // PullRequestId is a required field
- PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
- // The status of the pull request. The only valid operations are to update the
- // status from OPEN to OPEN, OPEN to CLOSED or from from CLOSED to CLOSED.
- //
- // PullRequestStatus is a required field
- PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" required:"true" enum:"PullRequestStatusEnum"`
- }
- // String returns the string representation
- func (s UpdatePullRequestStatusInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePullRequestStatusInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdatePullRequestStatusInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdatePullRequestStatusInput"}
- if s.PullRequestId == nil {
- invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
- }
- if s.PullRequestStatus == nil {
- invalidParams.Add(request.NewErrParamRequired("PullRequestStatus"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPullRequestId sets the PullRequestId field's value.
- func (s *UpdatePullRequestStatusInput) SetPullRequestId(v string) *UpdatePullRequestStatusInput {
- s.PullRequestId = &v
- return s
- }
- // SetPullRequestStatus sets the PullRequestStatus field's value.
- func (s *UpdatePullRequestStatusInput) SetPullRequestStatus(v string) *UpdatePullRequestStatusInput {
- s.PullRequestStatus = &v
- return s
- }
- type UpdatePullRequestStatusOutput struct {
- _ struct{} `type:"structure"`
- // Information about the pull request.
- //
- // PullRequest is a required field
- PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdatePullRequestStatusOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePullRequestStatusOutput) GoString() string {
- return s.String()
- }
- // SetPullRequest sets the PullRequest field's value.
- func (s *UpdatePullRequestStatusOutput) SetPullRequest(v *PullRequest) *UpdatePullRequestStatusOutput {
- s.PullRequest = v
- return s
- }
- type UpdatePullRequestTitleInput struct {
- _ struct{} `type:"structure"`
- // The system-generated ID of the pull request. To get this ID, use ListPullRequests.
- //
- // PullRequestId is a required field
- PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"`
- // The updated title of the pull request. This will replace the existing title.
- //
- // Title is a required field
- Title *string `locationName:"title" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdatePullRequestTitleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePullRequestTitleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdatePullRequestTitleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdatePullRequestTitleInput"}
- if s.PullRequestId == nil {
- invalidParams.Add(request.NewErrParamRequired("PullRequestId"))
- }
- if s.Title == nil {
- invalidParams.Add(request.NewErrParamRequired("Title"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPullRequestId sets the PullRequestId field's value.
- func (s *UpdatePullRequestTitleInput) SetPullRequestId(v string) *UpdatePullRequestTitleInput {
- s.PullRequestId = &v
- return s
- }
- // SetTitle sets the Title field's value.
- func (s *UpdatePullRequestTitleInput) SetTitle(v string) *UpdatePullRequestTitleInput {
- s.Title = &v
- return s
- }
- type UpdatePullRequestTitleOutput struct {
- _ struct{} `type:"structure"`
- // Information about the updated pull request.
- //
- // PullRequest is a required field
- PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdatePullRequestTitleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePullRequestTitleOutput) GoString() string {
- return s.String()
- }
- // SetPullRequest sets the PullRequest field's value.
- func (s *UpdatePullRequestTitleOutput) SetPullRequest(v *PullRequest) *UpdatePullRequestTitleOutput {
- s.PullRequest = v
- return s
- }
- // Represents the input of an update repository description operation.
- type UpdateRepositoryDescriptionInput struct {
- _ struct{} `type:"structure"`
- // The new comment or description for the specified repository. Repository descriptions
- // are limited to 1,000 characters.
- RepositoryDescription *string `locationName:"repositoryDescription" type:"string"`
- // The name of the repository to set or change the comment or description for.
- //
- // RepositoryName is a required field
- RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateRepositoryDescriptionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateRepositoryDescriptionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateRepositoryDescriptionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateRepositoryDescriptionInput"}
- if s.RepositoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
- }
- if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRepositoryDescription sets the RepositoryDescription field's value.
- func (s *UpdateRepositoryDescriptionInput) SetRepositoryDescription(v string) *UpdateRepositoryDescriptionInput {
- s.RepositoryDescription = &v
- return s
- }
- // SetRepositoryName sets the RepositoryName field's value.
- func (s *UpdateRepositoryDescriptionInput) SetRepositoryName(v string) *UpdateRepositoryDescriptionInput {
- s.RepositoryName = &v
- return s
- }
- type UpdateRepositoryDescriptionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateRepositoryDescriptionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateRepositoryDescriptionOutput) GoString() string {
- return s.String()
- }
- // Represents the input of an update repository description operation.
- type UpdateRepositoryNameInput struct {
- _ struct{} `type:"structure"`
- // The new name for the repository.
- //
- // NewName is a required field
- NewName *string `locationName:"newName" min:"1" type:"string" required:"true"`
- // The existing name of the repository.
- //
- // OldName is a required field
- OldName *string `locationName:"oldName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateRepositoryNameInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateRepositoryNameInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateRepositoryNameInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateRepositoryNameInput"}
- if s.NewName == nil {
- invalidParams.Add(request.NewErrParamRequired("NewName"))
- }
- if s.NewName != nil && len(*s.NewName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NewName", 1))
- }
- if s.OldName == nil {
- invalidParams.Add(request.NewErrParamRequired("OldName"))
- }
- if s.OldName != nil && len(*s.OldName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("OldName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNewName sets the NewName field's value.
- func (s *UpdateRepositoryNameInput) SetNewName(v string) *UpdateRepositoryNameInput {
- s.NewName = &v
- return s
- }
- // SetOldName sets the OldName field's value.
- func (s *UpdateRepositoryNameInput) SetOldName(v string) *UpdateRepositoryNameInput {
- s.OldName = &v
- return s
- }
- type UpdateRepositoryNameOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateRepositoryNameOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateRepositoryNameOutput) GoString() string {
- return s.String()
- }
- // Information about the user who made a specified commit.
- type UserInfo struct {
- _ struct{} `type:"structure"`
- // The date when the specified commit was commited, in timestamp format with
- // GMT offset.
- Date *string `locationName:"date" type:"string"`
- // The email address associated with the user who made the commit, if any.
- Email *string `locationName:"email" type:"string"`
- // The name of the user who made the specified commit.
- Name *string `locationName:"name" type:"string"`
- }
- // String returns the string representation
- func (s UserInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UserInfo) GoString() string {
- return s.String()
- }
- // SetDate sets the Date field's value.
- func (s *UserInfo) SetDate(v string) *UserInfo {
- s.Date = &v
- return s
- }
- // SetEmail sets the Email field's value.
- func (s *UserInfo) SetEmail(v string) *UserInfo {
- s.Email = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *UserInfo) SetName(v string) *UserInfo {
- s.Name = &v
- return s
- }
- const (
- // ChangeTypeEnumA is a ChangeTypeEnum enum value
- ChangeTypeEnumA = "A"
- // ChangeTypeEnumM is a ChangeTypeEnum enum value
- ChangeTypeEnumM = "M"
- // ChangeTypeEnumD is a ChangeTypeEnum enum value
- ChangeTypeEnumD = "D"
- )
- const (
- // FileModeTypeEnumExecutable is a FileModeTypeEnum enum value
- FileModeTypeEnumExecutable = "EXECUTABLE"
- // FileModeTypeEnumNormal is a FileModeTypeEnum enum value
- FileModeTypeEnumNormal = "NORMAL"
- // FileModeTypeEnumSymlink is a FileModeTypeEnum enum value
- FileModeTypeEnumSymlink = "SYMLINK"
- )
- const (
- // MergeOptionTypeEnumFastForwardMerge is a MergeOptionTypeEnum enum value
- MergeOptionTypeEnumFastForwardMerge = "FAST_FORWARD_MERGE"
- )
- const (
- // OrderEnumAscending is a OrderEnum enum value
- OrderEnumAscending = "ascending"
- // OrderEnumDescending is a OrderEnum enum value
- OrderEnumDescending = "descending"
- )
- const (
- // PullRequestEventTypePullRequestCreated is a PullRequestEventType enum value
- PullRequestEventTypePullRequestCreated = "PULL_REQUEST_CREATED"
- // PullRequestEventTypePullRequestStatusChanged is a PullRequestEventType enum value
- PullRequestEventTypePullRequestStatusChanged = "PULL_REQUEST_STATUS_CHANGED"
- // PullRequestEventTypePullRequestSourceReferenceUpdated is a PullRequestEventType enum value
- PullRequestEventTypePullRequestSourceReferenceUpdated = "PULL_REQUEST_SOURCE_REFERENCE_UPDATED"
- // PullRequestEventTypePullRequestMergeStateChanged is a PullRequestEventType enum value
- PullRequestEventTypePullRequestMergeStateChanged = "PULL_REQUEST_MERGE_STATE_CHANGED"
- )
- const (
- // PullRequestStatusEnumOpen is a PullRequestStatusEnum enum value
- PullRequestStatusEnumOpen = "OPEN"
- // PullRequestStatusEnumClosed is a PullRequestStatusEnum enum value
- PullRequestStatusEnumClosed = "CLOSED"
- )
- const (
- // RelativeFileVersionEnumBefore is a RelativeFileVersionEnum enum value
- RelativeFileVersionEnumBefore = "BEFORE"
- // RelativeFileVersionEnumAfter is a RelativeFileVersionEnum enum value
- RelativeFileVersionEnumAfter = "AFTER"
- )
- const (
- // RepositoryTriggerEventEnumAll is a RepositoryTriggerEventEnum enum value
- RepositoryTriggerEventEnumAll = "all"
- // RepositoryTriggerEventEnumUpdateReference is a RepositoryTriggerEventEnum enum value
- RepositoryTriggerEventEnumUpdateReference = "updateReference"
- // RepositoryTriggerEventEnumCreateReference is a RepositoryTriggerEventEnum enum value
- RepositoryTriggerEventEnumCreateReference = "createReference"
- // RepositoryTriggerEventEnumDeleteReference is a RepositoryTriggerEventEnum enum value
- RepositoryTriggerEventEnumDeleteReference = "deleteReference"
- )
- const (
- // SortByEnumRepositoryName is a SortByEnum enum value
- SortByEnumRepositoryName = "repositoryName"
- // SortByEnumLastModifiedDate is a SortByEnum enum value
- SortByEnumLastModifiedDate = "lastModifiedDate"
- )
|