api.go 216 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package devicefarm provides a client for AWS Device Farm.
  3. package devicefarm
  4. import (
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. )
  9. const opCreateDevicePool = "CreateDevicePool"
  10. // CreateDevicePoolRequest generates a "aws/request.Request" representing the
  11. // client's request for the CreateDevicePool operation. The "output" return
  12. // value can be used to capture response data after the request's "Send" method
  13. // is called.
  14. //
  15. // Creating a request object using this method should be used when you want to inject
  16. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17. // access properties on the request object before or after sending the request. If
  18. // you just want the service response, call the CreateDevicePool method directly
  19. // instead.
  20. //
  21. // Note: You must call the "Send" method on the returned request object in order
  22. // to execute the request.
  23. //
  24. // // Example sending a request using the CreateDevicePoolRequest method.
  25. // req, resp := client.CreateDevicePoolRequest(params)
  26. //
  27. // err := req.Send()
  28. // if err == nil { // resp is now filled
  29. // fmt.Println(resp)
  30. // }
  31. //
  32. func (c *DeviceFarm) CreateDevicePoolRequest(input *CreateDevicePoolInput) (req *request.Request, output *CreateDevicePoolOutput) {
  33. op := &request.Operation{
  34. Name: opCreateDevicePool,
  35. HTTPMethod: "POST",
  36. HTTPPath: "/",
  37. }
  38. if input == nil {
  39. input = &CreateDevicePoolInput{}
  40. }
  41. req = c.newRequest(op, input, output)
  42. output = &CreateDevicePoolOutput{}
  43. req.Data = output
  44. return
  45. }
  46. // Creates a device pool.
  47. func (c *DeviceFarm) CreateDevicePool(input *CreateDevicePoolInput) (*CreateDevicePoolOutput, error) {
  48. req, out := c.CreateDevicePoolRequest(input)
  49. err := req.Send()
  50. return out, err
  51. }
  52. const opCreateProject = "CreateProject"
  53. // CreateProjectRequest generates a "aws/request.Request" representing the
  54. // client's request for the CreateProject operation. The "output" return
  55. // value can be used to capture response data after the request's "Send" method
  56. // is called.
  57. //
  58. // Creating a request object using this method should be used when you want to inject
  59. // custom logic into the request's lifecycle using a custom handler, or if you want to
  60. // access properties on the request object before or after sending the request. If
  61. // you just want the service response, call the CreateProject method directly
  62. // instead.
  63. //
  64. // Note: You must call the "Send" method on the returned request object in order
  65. // to execute the request.
  66. //
  67. // // Example sending a request using the CreateProjectRequest method.
  68. // req, resp := client.CreateProjectRequest(params)
  69. //
  70. // err := req.Send()
  71. // if err == nil { // resp is now filled
  72. // fmt.Println(resp)
  73. // }
  74. //
  75. func (c *DeviceFarm) CreateProjectRequest(input *CreateProjectInput) (req *request.Request, output *CreateProjectOutput) {
  76. op := &request.Operation{
  77. Name: opCreateProject,
  78. HTTPMethod: "POST",
  79. HTTPPath: "/",
  80. }
  81. if input == nil {
  82. input = &CreateProjectInput{}
  83. }
  84. req = c.newRequest(op, input, output)
  85. output = &CreateProjectOutput{}
  86. req.Data = output
  87. return
  88. }
  89. // Creates a new project.
  90. func (c *DeviceFarm) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error) {
  91. req, out := c.CreateProjectRequest(input)
  92. err := req.Send()
  93. return out, err
  94. }
  95. const opCreateRemoteAccessSession = "CreateRemoteAccessSession"
  96. // CreateRemoteAccessSessionRequest generates a "aws/request.Request" representing the
  97. // client's request for the CreateRemoteAccessSession operation. The "output" return
  98. // value can be used to capture response data after the request's "Send" method
  99. // is called.
  100. //
  101. // Creating a request object using this method should be used when you want to inject
  102. // custom logic into the request's lifecycle using a custom handler, or if you want to
  103. // access properties on the request object before or after sending the request. If
  104. // you just want the service response, call the CreateRemoteAccessSession method directly
  105. // instead.
  106. //
  107. // Note: You must call the "Send" method on the returned request object in order
  108. // to execute the request.
  109. //
  110. // // Example sending a request using the CreateRemoteAccessSessionRequest method.
  111. // req, resp := client.CreateRemoteAccessSessionRequest(params)
  112. //
  113. // err := req.Send()
  114. // if err == nil { // resp is now filled
  115. // fmt.Println(resp)
  116. // }
  117. //
  118. func (c *DeviceFarm) CreateRemoteAccessSessionRequest(input *CreateRemoteAccessSessionInput) (req *request.Request, output *CreateRemoteAccessSessionOutput) {
  119. op := &request.Operation{
  120. Name: opCreateRemoteAccessSession,
  121. HTTPMethod: "POST",
  122. HTTPPath: "/",
  123. }
  124. if input == nil {
  125. input = &CreateRemoteAccessSessionInput{}
  126. }
  127. req = c.newRequest(op, input, output)
  128. output = &CreateRemoteAccessSessionOutput{}
  129. req.Data = output
  130. return
  131. }
  132. // Specifies and starts a remote access session.
  133. func (c *DeviceFarm) CreateRemoteAccessSession(input *CreateRemoteAccessSessionInput) (*CreateRemoteAccessSessionOutput, error) {
  134. req, out := c.CreateRemoteAccessSessionRequest(input)
  135. err := req.Send()
  136. return out, err
  137. }
  138. const opCreateUpload = "CreateUpload"
  139. // CreateUploadRequest generates a "aws/request.Request" representing the
  140. // client's request for the CreateUpload operation. The "output" return
  141. // value can be used to capture response data after the request's "Send" method
  142. // is called.
  143. //
  144. // Creating a request object using this method should be used when you want to inject
  145. // custom logic into the request's lifecycle using a custom handler, or if you want to
  146. // access properties on the request object before or after sending the request. If
  147. // you just want the service response, call the CreateUpload method directly
  148. // instead.
  149. //
  150. // Note: You must call the "Send" method on the returned request object in order
  151. // to execute the request.
  152. //
  153. // // Example sending a request using the CreateUploadRequest method.
  154. // req, resp := client.CreateUploadRequest(params)
  155. //
  156. // err := req.Send()
  157. // if err == nil { // resp is now filled
  158. // fmt.Println(resp)
  159. // }
  160. //
  161. func (c *DeviceFarm) CreateUploadRequest(input *CreateUploadInput) (req *request.Request, output *CreateUploadOutput) {
  162. op := &request.Operation{
  163. Name: opCreateUpload,
  164. HTTPMethod: "POST",
  165. HTTPPath: "/",
  166. }
  167. if input == nil {
  168. input = &CreateUploadInput{}
  169. }
  170. req = c.newRequest(op, input, output)
  171. output = &CreateUploadOutput{}
  172. req.Data = output
  173. return
  174. }
  175. // Uploads an app or test scripts.
  176. func (c *DeviceFarm) CreateUpload(input *CreateUploadInput) (*CreateUploadOutput, error) {
  177. req, out := c.CreateUploadRequest(input)
  178. err := req.Send()
  179. return out, err
  180. }
  181. const opDeleteDevicePool = "DeleteDevicePool"
  182. // DeleteDevicePoolRequest generates a "aws/request.Request" representing the
  183. // client's request for the DeleteDevicePool operation. The "output" return
  184. // value can be used to capture response data after the request's "Send" method
  185. // is called.
  186. //
  187. // Creating a request object using this method should be used when you want to inject
  188. // custom logic into the request's lifecycle using a custom handler, or if you want to
  189. // access properties on the request object before or after sending the request. If
  190. // you just want the service response, call the DeleteDevicePool method directly
  191. // instead.
  192. //
  193. // Note: You must call the "Send" method on the returned request object in order
  194. // to execute the request.
  195. //
  196. // // Example sending a request using the DeleteDevicePoolRequest method.
  197. // req, resp := client.DeleteDevicePoolRequest(params)
  198. //
  199. // err := req.Send()
  200. // if err == nil { // resp is now filled
  201. // fmt.Println(resp)
  202. // }
  203. //
  204. func (c *DeviceFarm) DeleteDevicePoolRequest(input *DeleteDevicePoolInput) (req *request.Request, output *DeleteDevicePoolOutput) {
  205. op := &request.Operation{
  206. Name: opDeleteDevicePool,
  207. HTTPMethod: "POST",
  208. HTTPPath: "/",
  209. }
  210. if input == nil {
  211. input = &DeleteDevicePoolInput{}
  212. }
  213. req = c.newRequest(op, input, output)
  214. output = &DeleteDevicePoolOutput{}
  215. req.Data = output
  216. return
  217. }
  218. // Deletes a device pool given the pool ARN. Does not allow deletion of curated
  219. // pools owned by the system.
  220. func (c *DeviceFarm) DeleteDevicePool(input *DeleteDevicePoolInput) (*DeleteDevicePoolOutput, error) {
  221. req, out := c.DeleteDevicePoolRequest(input)
  222. err := req.Send()
  223. return out, err
  224. }
  225. const opDeleteProject = "DeleteProject"
  226. // DeleteProjectRequest generates a "aws/request.Request" representing the
  227. // client's request for the DeleteProject operation. The "output" return
  228. // value can be used to capture response data after the request's "Send" method
  229. // is called.
  230. //
  231. // Creating a request object using this method should be used when you want to inject
  232. // custom logic into the request's lifecycle using a custom handler, or if you want to
  233. // access properties on the request object before or after sending the request. If
  234. // you just want the service response, call the DeleteProject method directly
  235. // instead.
  236. //
  237. // Note: You must call the "Send" method on the returned request object in order
  238. // to execute the request.
  239. //
  240. // // Example sending a request using the DeleteProjectRequest method.
  241. // req, resp := client.DeleteProjectRequest(params)
  242. //
  243. // err := req.Send()
  244. // if err == nil { // resp is now filled
  245. // fmt.Println(resp)
  246. // }
  247. //
  248. func (c *DeviceFarm) DeleteProjectRequest(input *DeleteProjectInput) (req *request.Request, output *DeleteProjectOutput) {
  249. op := &request.Operation{
  250. Name: opDeleteProject,
  251. HTTPMethod: "POST",
  252. HTTPPath: "/",
  253. }
  254. if input == nil {
  255. input = &DeleteProjectInput{}
  256. }
  257. req = c.newRequest(op, input, output)
  258. output = &DeleteProjectOutput{}
  259. req.Data = output
  260. return
  261. }
  262. // Deletes an AWS Device Farm project, given the project ARN.
  263. //
  264. // Note Deleting this resource does not stop an in-progress run.
  265. func (c *DeviceFarm) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error) {
  266. req, out := c.DeleteProjectRequest(input)
  267. err := req.Send()
  268. return out, err
  269. }
  270. const opDeleteRemoteAccessSession = "DeleteRemoteAccessSession"
  271. // DeleteRemoteAccessSessionRequest generates a "aws/request.Request" representing the
  272. // client's request for the DeleteRemoteAccessSession operation. The "output" return
  273. // value can be used to capture response data after the request's "Send" method
  274. // is called.
  275. //
  276. // Creating a request object using this method should be used when you want to inject
  277. // custom logic into the request's lifecycle using a custom handler, or if you want to
  278. // access properties on the request object before or after sending the request. If
  279. // you just want the service response, call the DeleteRemoteAccessSession method directly
  280. // instead.
  281. //
  282. // Note: You must call the "Send" method on the returned request object in order
  283. // to execute the request.
  284. //
  285. // // Example sending a request using the DeleteRemoteAccessSessionRequest method.
  286. // req, resp := client.DeleteRemoteAccessSessionRequest(params)
  287. //
  288. // err := req.Send()
  289. // if err == nil { // resp is now filled
  290. // fmt.Println(resp)
  291. // }
  292. //
  293. func (c *DeviceFarm) DeleteRemoteAccessSessionRequest(input *DeleteRemoteAccessSessionInput) (req *request.Request, output *DeleteRemoteAccessSessionOutput) {
  294. op := &request.Operation{
  295. Name: opDeleteRemoteAccessSession,
  296. HTTPMethod: "POST",
  297. HTTPPath: "/",
  298. }
  299. if input == nil {
  300. input = &DeleteRemoteAccessSessionInput{}
  301. }
  302. req = c.newRequest(op, input, output)
  303. output = &DeleteRemoteAccessSessionOutput{}
  304. req.Data = output
  305. return
  306. }
  307. // Deletes a completed remote access session and its results.
  308. func (c *DeviceFarm) DeleteRemoteAccessSession(input *DeleteRemoteAccessSessionInput) (*DeleteRemoteAccessSessionOutput, error) {
  309. req, out := c.DeleteRemoteAccessSessionRequest(input)
  310. err := req.Send()
  311. return out, err
  312. }
  313. const opDeleteRun = "DeleteRun"
  314. // DeleteRunRequest generates a "aws/request.Request" representing the
  315. // client's request for the DeleteRun operation. The "output" return
  316. // value can be used to capture response data after the request's "Send" method
  317. // is called.
  318. //
  319. // Creating a request object using this method should be used when you want to inject
  320. // custom logic into the request's lifecycle using a custom handler, or if you want to
  321. // access properties on the request object before or after sending the request. If
  322. // you just want the service response, call the DeleteRun method directly
  323. // instead.
  324. //
  325. // Note: You must call the "Send" method on the returned request object in order
  326. // to execute the request.
  327. //
  328. // // Example sending a request using the DeleteRunRequest method.
  329. // req, resp := client.DeleteRunRequest(params)
  330. //
  331. // err := req.Send()
  332. // if err == nil { // resp is now filled
  333. // fmt.Println(resp)
  334. // }
  335. //
  336. func (c *DeviceFarm) DeleteRunRequest(input *DeleteRunInput) (req *request.Request, output *DeleteRunOutput) {
  337. op := &request.Operation{
  338. Name: opDeleteRun,
  339. HTTPMethod: "POST",
  340. HTTPPath: "/",
  341. }
  342. if input == nil {
  343. input = &DeleteRunInput{}
  344. }
  345. req = c.newRequest(op, input, output)
  346. output = &DeleteRunOutput{}
  347. req.Data = output
  348. return
  349. }
  350. // Deletes the run, given the run ARN.
  351. //
  352. // Note Deleting this resource does not stop an in-progress run.
  353. func (c *DeviceFarm) DeleteRun(input *DeleteRunInput) (*DeleteRunOutput, error) {
  354. req, out := c.DeleteRunRequest(input)
  355. err := req.Send()
  356. return out, err
  357. }
  358. const opDeleteUpload = "DeleteUpload"
  359. // DeleteUploadRequest generates a "aws/request.Request" representing the
  360. // client's request for the DeleteUpload operation. The "output" return
  361. // value can be used to capture response data after the request's "Send" method
  362. // is called.
  363. //
  364. // Creating a request object using this method should be used when you want to inject
  365. // custom logic into the request's lifecycle using a custom handler, or if you want to
  366. // access properties on the request object before or after sending the request. If
  367. // you just want the service response, call the DeleteUpload method directly
  368. // instead.
  369. //
  370. // Note: You must call the "Send" method on the returned request object in order
  371. // to execute the request.
  372. //
  373. // // Example sending a request using the DeleteUploadRequest method.
  374. // req, resp := client.DeleteUploadRequest(params)
  375. //
  376. // err := req.Send()
  377. // if err == nil { // resp is now filled
  378. // fmt.Println(resp)
  379. // }
  380. //
  381. func (c *DeviceFarm) DeleteUploadRequest(input *DeleteUploadInput) (req *request.Request, output *DeleteUploadOutput) {
  382. op := &request.Operation{
  383. Name: opDeleteUpload,
  384. HTTPMethod: "POST",
  385. HTTPPath: "/",
  386. }
  387. if input == nil {
  388. input = &DeleteUploadInput{}
  389. }
  390. req = c.newRequest(op, input, output)
  391. output = &DeleteUploadOutput{}
  392. req.Data = output
  393. return
  394. }
  395. // Deletes an upload given the upload ARN.
  396. func (c *DeviceFarm) DeleteUpload(input *DeleteUploadInput) (*DeleteUploadOutput, error) {
  397. req, out := c.DeleteUploadRequest(input)
  398. err := req.Send()
  399. return out, err
  400. }
  401. const opGetAccountSettings = "GetAccountSettings"
  402. // GetAccountSettingsRequest generates a "aws/request.Request" representing the
  403. // client's request for the GetAccountSettings operation. The "output" return
  404. // value can be used to capture response data after the request's "Send" method
  405. // is called.
  406. //
  407. // Creating a request object using this method should be used when you want to inject
  408. // custom logic into the request's lifecycle using a custom handler, or if you want to
  409. // access properties on the request object before or after sending the request. If
  410. // you just want the service response, call the GetAccountSettings method directly
  411. // instead.
  412. //
  413. // Note: You must call the "Send" method on the returned request object in order
  414. // to execute the request.
  415. //
  416. // // Example sending a request using the GetAccountSettingsRequest method.
  417. // req, resp := client.GetAccountSettingsRequest(params)
  418. //
  419. // err := req.Send()
  420. // if err == nil { // resp is now filled
  421. // fmt.Println(resp)
  422. // }
  423. //
  424. func (c *DeviceFarm) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput) {
  425. op := &request.Operation{
  426. Name: opGetAccountSettings,
  427. HTTPMethod: "POST",
  428. HTTPPath: "/",
  429. }
  430. if input == nil {
  431. input = &GetAccountSettingsInput{}
  432. }
  433. req = c.newRequest(op, input, output)
  434. output = &GetAccountSettingsOutput{}
  435. req.Data = output
  436. return
  437. }
  438. // Returns the number of unmetered iOS and/or unmetered Android devices that
  439. // have been purchased by the account.
  440. func (c *DeviceFarm) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) {
  441. req, out := c.GetAccountSettingsRequest(input)
  442. err := req.Send()
  443. return out, err
  444. }
  445. const opGetDevice = "GetDevice"
  446. // GetDeviceRequest generates a "aws/request.Request" representing the
  447. // client's request for the GetDevice operation. The "output" return
  448. // value can be used to capture response data after the request's "Send" method
  449. // is called.
  450. //
  451. // Creating a request object using this method should be used when you want to inject
  452. // custom logic into the request's lifecycle using a custom handler, or if you want to
  453. // access properties on the request object before or after sending the request. If
  454. // you just want the service response, call the GetDevice method directly
  455. // instead.
  456. //
  457. // Note: You must call the "Send" method on the returned request object in order
  458. // to execute the request.
  459. //
  460. // // Example sending a request using the GetDeviceRequest method.
  461. // req, resp := client.GetDeviceRequest(params)
  462. //
  463. // err := req.Send()
  464. // if err == nil { // resp is now filled
  465. // fmt.Println(resp)
  466. // }
  467. //
  468. func (c *DeviceFarm) GetDeviceRequest(input *GetDeviceInput) (req *request.Request, output *GetDeviceOutput) {
  469. op := &request.Operation{
  470. Name: opGetDevice,
  471. HTTPMethod: "POST",
  472. HTTPPath: "/",
  473. }
  474. if input == nil {
  475. input = &GetDeviceInput{}
  476. }
  477. req = c.newRequest(op, input, output)
  478. output = &GetDeviceOutput{}
  479. req.Data = output
  480. return
  481. }
  482. // Gets information about a unique device type.
  483. func (c *DeviceFarm) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) {
  484. req, out := c.GetDeviceRequest(input)
  485. err := req.Send()
  486. return out, err
  487. }
  488. const opGetDevicePool = "GetDevicePool"
  489. // GetDevicePoolRequest generates a "aws/request.Request" representing the
  490. // client's request for the GetDevicePool operation. The "output" return
  491. // value can be used to capture response data after the request's "Send" method
  492. // is called.
  493. //
  494. // Creating a request object using this method should be used when you want to inject
  495. // custom logic into the request's lifecycle using a custom handler, or if you want to
  496. // access properties on the request object before or after sending the request. If
  497. // you just want the service response, call the GetDevicePool method directly
  498. // instead.
  499. //
  500. // Note: You must call the "Send" method on the returned request object in order
  501. // to execute the request.
  502. //
  503. // // Example sending a request using the GetDevicePoolRequest method.
  504. // req, resp := client.GetDevicePoolRequest(params)
  505. //
  506. // err := req.Send()
  507. // if err == nil { // resp is now filled
  508. // fmt.Println(resp)
  509. // }
  510. //
  511. func (c *DeviceFarm) GetDevicePoolRequest(input *GetDevicePoolInput) (req *request.Request, output *GetDevicePoolOutput) {
  512. op := &request.Operation{
  513. Name: opGetDevicePool,
  514. HTTPMethod: "POST",
  515. HTTPPath: "/",
  516. }
  517. if input == nil {
  518. input = &GetDevicePoolInput{}
  519. }
  520. req = c.newRequest(op, input, output)
  521. output = &GetDevicePoolOutput{}
  522. req.Data = output
  523. return
  524. }
  525. // Gets information about a device pool.
  526. func (c *DeviceFarm) GetDevicePool(input *GetDevicePoolInput) (*GetDevicePoolOutput, error) {
  527. req, out := c.GetDevicePoolRequest(input)
  528. err := req.Send()
  529. return out, err
  530. }
  531. const opGetDevicePoolCompatibility = "GetDevicePoolCompatibility"
  532. // GetDevicePoolCompatibilityRequest generates a "aws/request.Request" representing the
  533. // client's request for the GetDevicePoolCompatibility operation. The "output" return
  534. // value can be used to capture response data after the request's "Send" method
  535. // is called.
  536. //
  537. // Creating a request object using this method should be used when you want to inject
  538. // custom logic into the request's lifecycle using a custom handler, or if you want to
  539. // access properties on the request object before or after sending the request. If
  540. // you just want the service response, call the GetDevicePoolCompatibility method directly
  541. // instead.
  542. //
  543. // Note: You must call the "Send" method on the returned request object in order
  544. // to execute the request.
  545. //
  546. // // Example sending a request using the GetDevicePoolCompatibilityRequest method.
  547. // req, resp := client.GetDevicePoolCompatibilityRequest(params)
  548. //
  549. // err := req.Send()
  550. // if err == nil { // resp is now filled
  551. // fmt.Println(resp)
  552. // }
  553. //
  554. func (c *DeviceFarm) GetDevicePoolCompatibilityRequest(input *GetDevicePoolCompatibilityInput) (req *request.Request, output *GetDevicePoolCompatibilityOutput) {
  555. op := &request.Operation{
  556. Name: opGetDevicePoolCompatibility,
  557. HTTPMethod: "POST",
  558. HTTPPath: "/",
  559. }
  560. if input == nil {
  561. input = &GetDevicePoolCompatibilityInput{}
  562. }
  563. req = c.newRequest(op, input, output)
  564. output = &GetDevicePoolCompatibilityOutput{}
  565. req.Data = output
  566. return
  567. }
  568. // Gets information about compatibility with a device pool.
  569. func (c *DeviceFarm) GetDevicePoolCompatibility(input *GetDevicePoolCompatibilityInput) (*GetDevicePoolCompatibilityOutput, error) {
  570. req, out := c.GetDevicePoolCompatibilityRequest(input)
  571. err := req.Send()
  572. return out, err
  573. }
  574. const opGetJob = "GetJob"
  575. // GetJobRequest generates a "aws/request.Request" representing the
  576. // client's request for the GetJob operation. The "output" return
  577. // value can be used to capture response data after the request's "Send" method
  578. // is called.
  579. //
  580. // Creating a request object using this method should be used when you want to inject
  581. // custom logic into the request's lifecycle using a custom handler, or if you want to
  582. // access properties on the request object before or after sending the request. If
  583. // you just want the service response, call the GetJob method directly
  584. // instead.
  585. //
  586. // Note: You must call the "Send" method on the returned request object in order
  587. // to execute the request.
  588. //
  589. // // Example sending a request using the GetJobRequest method.
  590. // req, resp := client.GetJobRequest(params)
  591. //
  592. // err := req.Send()
  593. // if err == nil { // resp is now filled
  594. // fmt.Println(resp)
  595. // }
  596. //
  597. func (c *DeviceFarm) GetJobRequest(input *GetJobInput) (req *request.Request, output *GetJobOutput) {
  598. op := &request.Operation{
  599. Name: opGetJob,
  600. HTTPMethod: "POST",
  601. HTTPPath: "/",
  602. }
  603. if input == nil {
  604. input = &GetJobInput{}
  605. }
  606. req = c.newRequest(op, input, output)
  607. output = &GetJobOutput{}
  608. req.Data = output
  609. return
  610. }
  611. // Gets information about a job.
  612. func (c *DeviceFarm) GetJob(input *GetJobInput) (*GetJobOutput, error) {
  613. req, out := c.GetJobRequest(input)
  614. err := req.Send()
  615. return out, err
  616. }
  617. const opGetOfferingStatus = "GetOfferingStatus"
  618. // GetOfferingStatusRequest generates a "aws/request.Request" representing the
  619. // client's request for the GetOfferingStatus operation. The "output" return
  620. // value can be used to capture response data after the request's "Send" method
  621. // is called.
  622. //
  623. // Creating a request object using this method should be used when you want to inject
  624. // custom logic into the request's lifecycle using a custom handler, or if you want to
  625. // access properties on the request object before or after sending the request. If
  626. // you just want the service response, call the GetOfferingStatus method directly
  627. // instead.
  628. //
  629. // Note: You must call the "Send" method on the returned request object in order
  630. // to execute the request.
  631. //
  632. // // Example sending a request using the GetOfferingStatusRequest method.
  633. // req, resp := client.GetOfferingStatusRequest(params)
  634. //
  635. // err := req.Send()
  636. // if err == nil { // resp is now filled
  637. // fmt.Println(resp)
  638. // }
  639. //
  640. func (c *DeviceFarm) GetOfferingStatusRequest(input *GetOfferingStatusInput) (req *request.Request, output *GetOfferingStatusOutput) {
  641. op := &request.Operation{
  642. Name: opGetOfferingStatus,
  643. HTTPMethod: "POST",
  644. HTTPPath: "/",
  645. Paginator: &request.Paginator{
  646. InputTokens: []string{"nextToken"},
  647. OutputTokens: []string{"nextToken"},
  648. LimitToken: "",
  649. TruncationToken: "",
  650. },
  651. }
  652. if input == nil {
  653. input = &GetOfferingStatusInput{}
  654. }
  655. req = c.newRequest(op, input, output)
  656. output = &GetOfferingStatusOutput{}
  657. req.Data = output
  658. return
  659. }
  660. // Gets the current status and future status of all offerings purchased by an
  661. // AWS account. The response indicates how many offerings are currently available
  662. // and the offerings that will be available in the next period. The API returns
  663. // a NotEligible error if the user is not permitted to invoke the operation.
  664. // Please contact aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com)
  665. // if you believe that you should be able to invoke this operation.
  666. func (c *DeviceFarm) GetOfferingStatus(input *GetOfferingStatusInput) (*GetOfferingStatusOutput, error) {
  667. req, out := c.GetOfferingStatusRequest(input)
  668. err := req.Send()
  669. return out, err
  670. }
  671. // GetOfferingStatusPages iterates over the pages of a GetOfferingStatus operation,
  672. // calling the "fn" function with the response data for each page. To stop
  673. // iterating, return false from the fn function.
  674. //
  675. // See GetOfferingStatus method for more information on how to use this operation.
  676. //
  677. // Note: This operation can generate multiple requests to a service.
  678. //
  679. // // Example iterating over at most 3 pages of a GetOfferingStatus operation.
  680. // pageNum := 0
  681. // err := client.GetOfferingStatusPages(params,
  682. // func(page *GetOfferingStatusOutput, lastPage bool) bool {
  683. // pageNum++
  684. // fmt.Println(page)
  685. // return pageNum <= 3
  686. // })
  687. //
  688. func (c *DeviceFarm) GetOfferingStatusPages(input *GetOfferingStatusInput, fn func(p *GetOfferingStatusOutput, lastPage bool) (shouldContinue bool)) error {
  689. page, _ := c.GetOfferingStatusRequest(input)
  690. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  691. return page.EachPage(func(p interface{}, lastPage bool) bool {
  692. return fn(p.(*GetOfferingStatusOutput), lastPage)
  693. })
  694. }
  695. const opGetProject = "GetProject"
  696. // GetProjectRequest generates a "aws/request.Request" representing the
  697. // client's request for the GetProject operation. The "output" return
  698. // value can be used to capture response data after the request's "Send" method
  699. // is called.
  700. //
  701. // Creating a request object using this method should be used when you want to inject
  702. // custom logic into the request's lifecycle using a custom handler, or if you want to
  703. // access properties on the request object before or after sending the request. If
  704. // you just want the service response, call the GetProject method directly
  705. // instead.
  706. //
  707. // Note: You must call the "Send" method on the returned request object in order
  708. // to execute the request.
  709. //
  710. // // Example sending a request using the GetProjectRequest method.
  711. // req, resp := client.GetProjectRequest(params)
  712. //
  713. // err := req.Send()
  714. // if err == nil { // resp is now filled
  715. // fmt.Println(resp)
  716. // }
  717. //
  718. func (c *DeviceFarm) GetProjectRequest(input *GetProjectInput) (req *request.Request, output *GetProjectOutput) {
  719. op := &request.Operation{
  720. Name: opGetProject,
  721. HTTPMethod: "POST",
  722. HTTPPath: "/",
  723. }
  724. if input == nil {
  725. input = &GetProjectInput{}
  726. }
  727. req = c.newRequest(op, input, output)
  728. output = &GetProjectOutput{}
  729. req.Data = output
  730. return
  731. }
  732. // Gets information about a project.
  733. func (c *DeviceFarm) GetProject(input *GetProjectInput) (*GetProjectOutput, error) {
  734. req, out := c.GetProjectRequest(input)
  735. err := req.Send()
  736. return out, err
  737. }
  738. const opGetRemoteAccessSession = "GetRemoteAccessSession"
  739. // GetRemoteAccessSessionRequest generates a "aws/request.Request" representing the
  740. // client's request for the GetRemoteAccessSession operation. The "output" return
  741. // value can be used to capture response data after the request's "Send" method
  742. // is called.
  743. //
  744. // Creating a request object using this method should be used when you want to inject
  745. // custom logic into the request's lifecycle using a custom handler, or if you want to
  746. // access properties on the request object before or after sending the request. If
  747. // you just want the service response, call the GetRemoteAccessSession method directly
  748. // instead.
  749. //
  750. // Note: You must call the "Send" method on the returned request object in order
  751. // to execute the request.
  752. //
  753. // // Example sending a request using the GetRemoteAccessSessionRequest method.
  754. // req, resp := client.GetRemoteAccessSessionRequest(params)
  755. //
  756. // err := req.Send()
  757. // if err == nil { // resp is now filled
  758. // fmt.Println(resp)
  759. // }
  760. //
  761. func (c *DeviceFarm) GetRemoteAccessSessionRequest(input *GetRemoteAccessSessionInput) (req *request.Request, output *GetRemoteAccessSessionOutput) {
  762. op := &request.Operation{
  763. Name: opGetRemoteAccessSession,
  764. HTTPMethod: "POST",
  765. HTTPPath: "/",
  766. }
  767. if input == nil {
  768. input = &GetRemoteAccessSessionInput{}
  769. }
  770. req = c.newRequest(op, input, output)
  771. output = &GetRemoteAccessSessionOutput{}
  772. req.Data = output
  773. return
  774. }
  775. // Returns a link to a currently running remote access session.
  776. func (c *DeviceFarm) GetRemoteAccessSession(input *GetRemoteAccessSessionInput) (*GetRemoteAccessSessionOutput, error) {
  777. req, out := c.GetRemoteAccessSessionRequest(input)
  778. err := req.Send()
  779. return out, err
  780. }
  781. const opGetRun = "GetRun"
  782. // GetRunRequest generates a "aws/request.Request" representing the
  783. // client's request for the GetRun operation. The "output" return
  784. // value can be used to capture response data after the request's "Send" method
  785. // is called.
  786. //
  787. // Creating a request object using this method should be used when you want to inject
  788. // custom logic into the request's lifecycle using a custom handler, or if you want to
  789. // access properties on the request object before or after sending the request. If
  790. // you just want the service response, call the GetRun method directly
  791. // instead.
  792. //
  793. // Note: You must call the "Send" method on the returned request object in order
  794. // to execute the request.
  795. //
  796. // // Example sending a request using the GetRunRequest method.
  797. // req, resp := client.GetRunRequest(params)
  798. //
  799. // err := req.Send()
  800. // if err == nil { // resp is now filled
  801. // fmt.Println(resp)
  802. // }
  803. //
  804. func (c *DeviceFarm) GetRunRequest(input *GetRunInput) (req *request.Request, output *GetRunOutput) {
  805. op := &request.Operation{
  806. Name: opGetRun,
  807. HTTPMethod: "POST",
  808. HTTPPath: "/",
  809. }
  810. if input == nil {
  811. input = &GetRunInput{}
  812. }
  813. req = c.newRequest(op, input, output)
  814. output = &GetRunOutput{}
  815. req.Data = output
  816. return
  817. }
  818. // Gets information about a run.
  819. func (c *DeviceFarm) GetRun(input *GetRunInput) (*GetRunOutput, error) {
  820. req, out := c.GetRunRequest(input)
  821. err := req.Send()
  822. return out, err
  823. }
  824. const opGetSuite = "GetSuite"
  825. // GetSuiteRequest generates a "aws/request.Request" representing the
  826. // client's request for the GetSuite operation. The "output" return
  827. // value can be used to capture response data after the request's "Send" method
  828. // is called.
  829. //
  830. // Creating a request object using this method should be used when you want to inject
  831. // custom logic into the request's lifecycle using a custom handler, or if you want to
  832. // access properties on the request object before or after sending the request. If
  833. // you just want the service response, call the GetSuite method directly
  834. // instead.
  835. //
  836. // Note: You must call the "Send" method on the returned request object in order
  837. // to execute the request.
  838. //
  839. // // Example sending a request using the GetSuiteRequest method.
  840. // req, resp := client.GetSuiteRequest(params)
  841. //
  842. // err := req.Send()
  843. // if err == nil { // resp is now filled
  844. // fmt.Println(resp)
  845. // }
  846. //
  847. func (c *DeviceFarm) GetSuiteRequest(input *GetSuiteInput) (req *request.Request, output *GetSuiteOutput) {
  848. op := &request.Operation{
  849. Name: opGetSuite,
  850. HTTPMethod: "POST",
  851. HTTPPath: "/",
  852. }
  853. if input == nil {
  854. input = &GetSuiteInput{}
  855. }
  856. req = c.newRequest(op, input, output)
  857. output = &GetSuiteOutput{}
  858. req.Data = output
  859. return
  860. }
  861. // Gets information about a suite.
  862. func (c *DeviceFarm) GetSuite(input *GetSuiteInput) (*GetSuiteOutput, error) {
  863. req, out := c.GetSuiteRequest(input)
  864. err := req.Send()
  865. return out, err
  866. }
  867. const opGetTest = "GetTest"
  868. // GetTestRequest generates a "aws/request.Request" representing the
  869. // client's request for the GetTest operation. The "output" return
  870. // value can be used to capture response data after the request's "Send" method
  871. // is called.
  872. //
  873. // Creating a request object using this method should be used when you want to inject
  874. // custom logic into the request's lifecycle using a custom handler, or if you want to
  875. // access properties on the request object before or after sending the request. If
  876. // you just want the service response, call the GetTest method directly
  877. // instead.
  878. //
  879. // Note: You must call the "Send" method on the returned request object in order
  880. // to execute the request.
  881. //
  882. // // Example sending a request using the GetTestRequest method.
  883. // req, resp := client.GetTestRequest(params)
  884. //
  885. // err := req.Send()
  886. // if err == nil { // resp is now filled
  887. // fmt.Println(resp)
  888. // }
  889. //
  890. func (c *DeviceFarm) GetTestRequest(input *GetTestInput) (req *request.Request, output *GetTestOutput) {
  891. op := &request.Operation{
  892. Name: opGetTest,
  893. HTTPMethod: "POST",
  894. HTTPPath: "/",
  895. }
  896. if input == nil {
  897. input = &GetTestInput{}
  898. }
  899. req = c.newRequest(op, input, output)
  900. output = &GetTestOutput{}
  901. req.Data = output
  902. return
  903. }
  904. // Gets information about a test.
  905. func (c *DeviceFarm) GetTest(input *GetTestInput) (*GetTestOutput, error) {
  906. req, out := c.GetTestRequest(input)
  907. err := req.Send()
  908. return out, err
  909. }
  910. const opGetUpload = "GetUpload"
  911. // GetUploadRequest generates a "aws/request.Request" representing the
  912. // client's request for the GetUpload operation. The "output" return
  913. // value can be used to capture response data after the request's "Send" method
  914. // is called.
  915. //
  916. // Creating a request object using this method should be used when you want to inject
  917. // custom logic into the request's lifecycle using a custom handler, or if you want to
  918. // access properties on the request object before or after sending the request. If
  919. // you just want the service response, call the GetUpload method directly
  920. // instead.
  921. //
  922. // Note: You must call the "Send" method on the returned request object in order
  923. // to execute the request.
  924. //
  925. // // Example sending a request using the GetUploadRequest method.
  926. // req, resp := client.GetUploadRequest(params)
  927. //
  928. // err := req.Send()
  929. // if err == nil { // resp is now filled
  930. // fmt.Println(resp)
  931. // }
  932. //
  933. func (c *DeviceFarm) GetUploadRequest(input *GetUploadInput) (req *request.Request, output *GetUploadOutput) {
  934. op := &request.Operation{
  935. Name: opGetUpload,
  936. HTTPMethod: "POST",
  937. HTTPPath: "/",
  938. }
  939. if input == nil {
  940. input = &GetUploadInput{}
  941. }
  942. req = c.newRequest(op, input, output)
  943. output = &GetUploadOutput{}
  944. req.Data = output
  945. return
  946. }
  947. // Gets information about an upload.
  948. func (c *DeviceFarm) GetUpload(input *GetUploadInput) (*GetUploadOutput, error) {
  949. req, out := c.GetUploadRequest(input)
  950. err := req.Send()
  951. return out, err
  952. }
  953. const opInstallToRemoteAccessSession = "InstallToRemoteAccessSession"
  954. // InstallToRemoteAccessSessionRequest generates a "aws/request.Request" representing the
  955. // client's request for the InstallToRemoteAccessSession operation. The "output" return
  956. // value can be used to capture response data after the request's "Send" method
  957. // is called.
  958. //
  959. // Creating a request object using this method should be used when you want to inject
  960. // custom logic into the request's lifecycle using a custom handler, or if you want to
  961. // access properties on the request object before or after sending the request. If
  962. // you just want the service response, call the InstallToRemoteAccessSession method directly
  963. // instead.
  964. //
  965. // Note: You must call the "Send" method on the returned request object in order
  966. // to execute the request.
  967. //
  968. // // Example sending a request using the InstallToRemoteAccessSessionRequest method.
  969. // req, resp := client.InstallToRemoteAccessSessionRequest(params)
  970. //
  971. // err := req.Send()
  972. // if err == nil { // resp is now filled
  973. // fmt.Println(resp)
  974. // }
  975. //
  976. func (c *DeviceFarm) InstallToRemoteAccessSessionRequest(input *InstallToRemoteAccessSessionInput) (req *request.Request, output *InstallToRemoteAccessSessionOutput) {
  977. op := &request.Operation{
  978. Name: opInstallToRemoteAccessSession,
  979. HTTPMethod: "POST",
  980. HTTPPath: "/",
  981. }
  982. if input == nil {
  983. input = &InstallToRemoteAccessSessionInput{}
  984. }
  985. req = c.newRequest(op, input, output)
  986. output = &InstallToRemoteAccessSessionOutput{}
  987. req.Data = output
  988. return
  989. }
  990. // Installs an application to the device in a remote access session. For Android
  991. // applications, the file must be in .apk format. For iOS applications, the
  992. // file must be in .ipa format.
  993. func (c *DeviceFarm) InstallToRemoteAccessSession(input *InstallToRemoteAccessSessionInput) (*InstallToRemoteAccessSessionOutput, error) {
  994. req, out := c.InstallToRemoteAccessSessionRequest(input)
  995. err := req.Send()
  996. return out, err
  997. }
  998. const opListArtifacts = "ListArtifacts"
  999. // ListArtifactsRequest generates a "aws/request.Request" representing the
  1000. // client's request for the ListArtifacts operation. The "output" return
  1001. // value can be used to capture response data after the request's "Send" method
  1002. // is called.
  1003. //
  1004. // Creating a request object using this method should be used when you want to inject
  1005. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1006. // access properties on the request object before or after sending the request. If
  1007. // you just want the service response, call the ListArtifacts method directly
  1008. // instead.
  1009. //
  1010. // Note: You must call the "Send" method on the returned request object in order
  1011. // to execute the request.
  1012. //
  1013. // // Example sending a request using the ListArtifactsRequest method.
  1014. // req, resp := client.ListArtifactsRequest(params)
  1015. //
  1016. // err := req.Send()
  1017. // if err == nil { // resp is now filled
  1018. // fmt.Println(resp)
  1019. // }
  1020. //
  1021. func (c *DeviceFarm) ListArtifactsRequest(input *ListArtifactsInput) (req *request.Request, output *ListArtifactsOutput) {
  1022. op := &request.Operation{
  1023. Name: opListArtifacts,
  1024. HTTPMethod: "POST",
  1025. HTTPPath: "/",
  1026. Paginator: &request.Paginator{
  1027. InputTokens: []string{"nextToken"},
  1028. OutputTokens: []string{"nextToken"},
  1029. LimitToken: "",
  1030. TruncationToken: "",
  1031. },
  1032. }
  1033. if input == nil {
  1034. input = &ListArtifactsInput{}
  1035. }
  1036. req = c.newRequest(op, input, output)
  1037. output = &ListArtifactsOutput{}
  1038. req.Data = output
  1039. return
  1040. }
  1041. // Gets information about artifacts.
  1042. func (c *DeviceFarm) ListArtifacts(input *ListArtifactsInput) (*ListArtifactsOutput, error) {
  1043. req, out := c.ListArtifactsRequest(input)
  1044. err := req.Send()
  1045. return out, err
  1046. }
  1047. // ListArtifactsPages iterates over the pages of a ListArtifacts operation,
  1048. // calling the "fn" function with the response data for each page. To stop
  1049. // iterating, return false from the fn function.
  1050. //
  1051. // See ListArtifacts method for more information on how to use this operation.
  1052. //
  1053. // Note: This operation can generate multiple requests to a service.
  1054. //
  1055. // // Example iterating over at most 3 pages of a ListArtifacts operation.
  1056. // pageNum := 0
  1057. // err := client.ListArtifactsPages(params,
  1058. // func(page *ListArtifactsOutput, lastPage bool) bool {
  1059. // pageNum++
  1060. // fmt.Println(page)
  1061. // return pageNum <= 3
  1062. // })
  1063. //
  1064. func (c *DeviceFarm) ListArtifactsPages(input *ListArtifactsInput, fn func(p *ListArtifactsOutput, lastPage bool) (shouldContinue bool)) error {
  1065. page, _ := c.ListArtifactsRequest(input)
  1066. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1067. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1068. return fn(p.(*ListArtifactsOutput), lastPage)
  1069. })
  1070. }
  1071. const opListDevicePools = "ListDevicePools"
  1072. // ListDevicePoolsRequest generates a "aws/request.Request" representing the
  1073. // client's request for the ListDevicePools operation. The "output" return
  1074. // value can be used to capture response data after the request's "Send" method
  1075. // is called.
  1076. //
  1077. // Creating a request object using this method should be used when you want to inject
  1078. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1079. // access properties on the request object before or after sending the request. If
  1080. // you just want the service response, call the ListDevicePools method directly
  1081. // instead.
  1082. //
  1083. // Note: You must call the "Send" method on the returned request object in order
  1084. // to execute the request.
  1085. //
  1086. // // Example sending a request using the ListDevicePoolsRequest method.
  1087. // req, resp := client.ListDevicePoolsRequest(params)
  1088. //
  1089. // err := req.Send()
  1090. // if err == nil { // resp is now filled
  1091. // fmt.Println(resp)
  1092. // }
  1093. //
  1094. func (c *DeviceFarm) ListDevicePoolsRequest(input *ListDevicePoolsInput) (req *request.Request, output *ListDevicePoolsOutput) {
  1095. op := &request.Operation{
  1096. Name: opListDevicePools,
  1097. HTTPMethod: "POST",
  1098. HTTPPath: "/",
  1099. Paginator: &request.Paginator{
  1100. InputTokens: []string{"nextToken"},
  1101. OutputTokens: []string{"nextToken"},
  1102. LimitToken: "",
  1103. TruncationToken: "",
  1104. },
  1105. }
  1106. if input == nil {
  1107. input = &ListDevicePoolsInput{}
  1108. }
  1109. req = c.newRequest(op, input, output)
  1110. output = &ListDevicePoolsOutput{}
  1111. req.Data = output
  1112. return
  1113. }
  1114. // Gets information about device pools.
  1115. func (c *DeviceFarm) ListDevicePools(input *ListDevicePoolsInput) (*ListDevicePoolsOutput, error) {
  1116. req, out := c.ListDevicePoolsRequest(input)
  1117. err := req.Send()
  1118. return out, err
  1119. }
  1120. // ListDevicePoolsPages iterates over the pages of a ListDevicePools operation,
  1121. // calling the "fn" function with the response data for each page. To stop
  1122. // iterating, return false from the fn function.
  1123. //
  1124. // See ListDevicePools method for more information on how to use this operation.
  1125. //
  1126. // Note: This operation can generate multiple requests to a service.
  1127. //
  1128. // // Example iterating over at most 3 pages of a ListDevicePools operation.
  1129. // pageNum := 0
  1130. // err := client.ListDevicePoolsPages(params,
  1131. // func(page *ListDevicePoolsOutput, lastPage bool) bool {
  1132. // pageNum++
  1133. // fmt.Println(page)
  1134. // return pageNum <= 3
  1135. // })
  1136. //
  1137. func (c *DeviceFarm) ListDevicePoolsPages(input *ListDevicePoolsInput, fn func(p *ListDevicePoolsOutput, lastPage bool) (shouldContinue bool)) error {
  1138. page, _ := c.ListDevicePoolsRequest(input)
  1139. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1140. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1141. return fn(p.(*ListDevicePoolsOutput), lastPage)
  1142. })
  1143. }
  1144. const opListDevices = "ListDevices"
  1145. // ListDevicesRequest generates a "aws/request.Request" representing the
  1146. // client's request for the ListDevices operation. The "output" return
  1147. // value can be used to capture response data after the request's "Send" method
  1148. // is called.
  1149. //
  1150. // Creating a request object using this method should be used when you want to inject
  1151. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1152. // access properties on the request object before or after sending the request. If
  1153. // you just want the service response, call the ListDevices method directly
  1154. // instead.
  1155. //
  1156. // Note: You must call the "Send" method on the returned request object in order
  1157. // to execute the request.
  1158. //
  1159. // // Example sending a request using the ListDevicesRequest method.
  1160. // req, resp := client.ListDevicesRequest(params)
  1161. //
  1162. // err := req.Send()
  1163. // if err == nil { // resp is now filled
  1164. // fmt.Println(resp)
  1165. // }
  1166. //
  1167. func (c *DeviceFarm) ListDevicesRequest(input *ListDevicesInput) (req *request.Request, output *ListDevicesOutput) {
  1168. op := &request.Operation{
  1169. Name: opListDevices,
  1170. HTTPMethod: "POST",
  1171. HTTPPath: "/",
  1172. Paginator: &request.Paginator{
  1173. InputTokens: []string{"nextToken"},
  1174. OutputTokens: []string{"nextToken"},
  1175. LimitToken: "",
  1176. TruncationToken: "",
  1177. },
  1178. }
  1179. if input == nil {
  1180. input = &ListDevicesInput{}
  1181. }
  1182. req = c.newRequest(op, input, output)
  1183. output = &ListDevicesOutput{}
  1184. req.Data = output
  1185. return
  1186. }
  1187. // Gets information about unique device types.
  1188. func (c *DeviceFarm) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error) {
  1189. req, out := c.ListDevicesRequest(input)
  1190. err := req.Send()
  1191. return out, err
  1192. }
  1193. // ListDevicesPages iterates over the pages of a ListDevices operation,
  1194. // calling the "fn" function with the response data for each page. To stop
  1195. // iterating, return false from the fn function.
  1196. //
  1197. // See ListDevices method for more information on how to use this operation.
  1198. //
  1199. // Note: This operation can generate multiple requests to a service.
  1200. //
  1201. // // Example iterating over at most 3 pages of a ListDevices operation.
  1202. // pageNum := 0
  1203. // err := client.ListDevicesPages(params,
  1204. // func(page *ListDevicesOutput, lastPage bool) bool {
  1205. // pageNum++
  1206. // fmt.Println(page)
  1207. // return pageNum <= 3
  1208. // })
  1209. //
  1210. func (c *DeviceFarm) ListDevicesPages(input *ListDevicesInput, fn func(p *ListDevicesOutput, lastPage bool) (shouldContinue bool)) error {
  1211. page, _ := c.ListDevicesRequest(input)
  1212. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1213. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1214. return fn(p.(*ListDevicesOutput), lastPage)
  1215. })
  1216. }
  1217. const opListJobs = "ListJobs"
  1218. // ListJobsRequest generates a "aws/request.Request" representing the
  1219. // client's request for the ListJobs operation. The "output" return
  1220. // value can be used to capture response data after the request's "Send" method
  1221. // is called.
  1222. //
  1223. // Creating a request object using this method should be used when you want to inject
  1224. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1225. // access properties on the request object before or after sending the request. If
  1226. // you just want the service response, call the ListJobs method directly
  1227. // instead.
  1228. //
  1229. // Note: You must call the "Send" method on the returned request object in order
  1230. // to execute the request.
  1231. //
  1232. // // Example sending a request using the ListJobsRequest method.
  1233. // req, resp := client.ListJobsRequest(params)
  1234. //
  1235. // err := req.Send()
  1236. // if err == nil { // resp is now filled
  1237. // fmt.Println(resp)
  1238. // }
  1239. //
  1240. func (c *DeviceFarm) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) {
  1241. op := &request.Operation{
  1242. Name: opListJobs,
  1243. HTTPMethod: "POST",
  1244. HTTPPath: "/",
  1245. Paginator: &request.Paginator{
  1246. InputTokens: []string{"nextToken"},
  1247. OutputTokens: []string{"nextToken"},
  1248. LimitToken: "",
  1249. TruncationToken: "",
  1250. },
  1251. }
  1252. if input == nil {
  1253. input = &ListJobsInput{}
  1254. }
  1255. req = c.newRequest(op, input, output)
  1256. output = &ListJobsOutput{}
  1257. req.Data = output
  1258. return
  1259. }
  1260. // Gets information about jobs.
  1261. func (c *DeviceFarm) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) {
  1262. req, out := c.ListJobsRequest(input)
  1263. err := req.Send()
  1264. return out, err
  1265. }
  1266. // ListJobsPages iterates over the pages of a ListJobs operation,
  1267. // calling the "fn" function with the response data for each page. To stop
  1268. // iterating, return false from the fn function.
  1269. //
  1270. // See ListJobs method for more information on how to use this operation.
  1271. //
  1272. // Note: This operation can generate multiple requests to a service.
  1273. //
  1274. // // Example iterating over at most 3 pages of a ListJobs operation.
  1275. // pageNum := 0
  1276. // err := client.ListJobsPages(params,
  1277. // func(page *ListJobsOutput, lastPage bool) bool {
  1278. // pageNum++
  1279. // fmt.Println(page)
  1280. // return pageNum <= 3
  1281. // })
  1282. //
  1283. func (c *DeviceFarm) ListJobsPages(input *ListJobsInput, fn func(p *ListJobsOutput, lastPage bool) (shouldContinue bool)) error {
  1284. page, _ := c.ListJobsRequest(input)
  1285. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1286. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1287. return fn(p.(*ListJobsOutput), lastPage)
  1288. })
  1289. }
  1290. const opListOfferingTransactions = "ListOfferingTransactions"
  1291. // ListOfferingTransactionsRequest generates a "aws/request.Request" representing the
  1292. // client's request for the ListOfferingTransactions operation. The "output" return
  1293. // value can be used to capture response data after the request's "Send" method
  1294. // is called.
  1295. //
  1296. // Creating a request object using this method should be used when you want to inject
  1297. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1298. // access properties on the request object before or after sending the request. If
  1299. // you just want the service response, call the ListOfferingTransactions method directly
  1300. // instead.
  1301. //
  1302. // Note: You must call the "Send" method on the returned request object in order
  1303. // to execute the request.
  1304. //
  1305. // // Example sending a request using the ListOfferingTransactionsRequest method.
  1306. // req, resp := client.ListOfferingTransactionsRequest(params)
  1307. //
  1308. // err := req.Send()
  1309. // if err == nil { // resp is now filled
  1310. // fmt.Println(resp)
  1311. // }
  1312. //
  1313. func (c *DeviceFarm) ListOfferingTransactionsRequest(input *ListOfferingTransactionsInput) (req *request.Request, output *ListOfferingTransactionsOutput) {
  1314. op := &request.Operation{
  1315. Name: opListOfferingTransactions,
  1316. HTTPMethod: "POST",
  1317. HTTPPath: "/",
  1318. Paginator: &request.Paginator{
  1319. InputTokens: []string{"nextToken"},
  1320. OutputTokens: []string{"nextToken"},
  1321. LimitToken: "",
  1322. TruncationToken: "",
  1323. },
  1324. }
  1325. if input == nil {
  1326. input = &ListOfferingTransactionsInput{}
  1327. }
  1328. req = c.newRequest(op, input, output)
  1329. output = &ListOfferingTransactionsOutput{}
  1330. req.Data = output
  1331. return
  1332. }
  1333. // Returns a list of all historical purchases, renewals, and system renewal
  1334. // transactions for an AWS account. The list is paginated and ordered by a descending
  1335. // timestamp (most recent transactions are first). The API returns a NotEligible
  1336. // error if the user is not permitted to invoke the operation. Please contact
  1337. // aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com)
  1338. // if you believe that you should be able to invoke this operation.
  1339. func (c *DeviceFarm) ListOfferingTransactions(input *ListOfferingTransactionsInput) (*ListOfferingTransactionsOutput, error) {
  1340. req, out := c.ListOfferingTransactionsRequest(input)
  1341. err := req.Send()
  1342. return out, err
  1343. }
  1344. // ListOfferingTransactionsPages iterates over the pages of a ListOfferingTransactions operation,
  1345. // calling the "fn" function with the response data for each page. To stop
  1346. // iterating, return false from the fn function.
  1347. //
  1348. // See ListOfferingTransactions method for more information on how to use this operation.
  1349. //
  1350. // Note: This operation can generate multiple requests to a service.
  1351. //
  1352. // // Example iterating over at most 3 pages of a ListOfferingTransactions operation.
  1353. // pageNum := 0
  1354. // err := client.ListOfferingTransactionsPages(params,
  1355. // func(page *ListOfferingTransactionsOutput, lastPage bool) bool {
  1356. // pageNum++
  1357. // fmt.Println(page)
  1358. // return pageNum <= 3
  1359. // })
  1360. //
  1361. func (c *DeviceFarm) ListOfferingTransactionsPages(input *ListOfferingTransactionsInput, fn func(p *ListOfferingTransactionsOutput, lastPage bool) (shouldContinue bool)) error {
  1362. page, _ := c.ListOfferingTransactionsRequest(input)
  1363. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1364. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1365. return fn(p.(*ListOfferingTransactionsOutput), lastPage)
  1366. })
  1367. }
  1368. const opListOfferings = "ListOfferings"
  1369. // ListOfferingsRequest generates a "aws/request.Request" representing the
  1370. // client's request for the ListOfferings operation. The "output" return
  1371. // value can be used to capture response data after the request's "Send" method
  1372. // is called.
  1373. //
  1374. // Creating a request object using this method should be used when you want to inject
  1375. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1376. // access properties on the request object before or after sending the request. If
  1377. // you just want the service response, call the ListOfferings method directly
  1378. // instead.
  1379. //
  1380. // Note: You must call the "Send" method on the returned request object in order
  1381. // to execute the request.
  1382. //
  1383. // // Example sending a request using the ListOfferingsRequest method.
  1384. // req, resp := client.ListOfferingsRequest(params)
  1385. //
  1386. // err := req.Send()
  1387. // if err == nil { // resp is now filled
  1388. // fmt.Println(resp)
  1389. // }
  1390. //
  1391. func (c *DeviceFarm) ListOfferingsRequest(input *ListOfferingsInput) (req *request.Request, output *ListOfferingsOutput) {
  1392. op := &request.Operation{
  1393. Name: opListOfferings,
  1394. HTTPMethod: "POST",
  1395. HTTPPath: "/",
  1396. Paginator: &request.Paginator{
  1397. InputTokens: []string{"nextToken"},
  1398. OutputTokens: []string{"nextToken"},
  1399. LimitToken: "",
  1400. TruncationToken: "",
  1401. },
  1402. }
  1403. if input == nil {
  1404. input = &ListOfferingsInput{}
  1405. }
  1406. req = c.newRequest(op, input, output)
  1407. output = &ListOfferingsOutput{}
  1408. req.Data = output
  1409. return
  1410. }
  1411. // Returns a list of products or offerings that the user can manage through
  1412. // the API. Each offering record indicates the recurring price per unit and
  1413. // the frequency for that offering. The API returns a NotEligible error if the
  1414. // user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com
  1415. // (mailto:aws-devicefarm-support@amazon.com) if you believe that you should
  1416. // be able to invoke this operation.
  1417. func (c *DeviceFarm) ListOfferings(input *ListOfferingsInput) (*ListOfferingsOutput, error) {
  1418. req, out := c.ListOfferingsRequest(input)
  1419. err := req.Send()
  1420. return out, err
  1421. }
  1422. // ListOfferingsPages iterates over the pages of a ListOfferings operation,
  1423. // calling the "fn" function with the response data for each page. To stop
  1424. // iterating, return false from the fn function.
  1425. //
  1426. // See ListOfferings method for more information on how to use this operation.
  1427. //
  1428. // Note: This operation can generate multiple requests to a service.
  1429. //
  1430. // // Example iterating over at most 3 pages of a ListOfferings operation.
  1431. // pageNum := 0
  1432. // err := client.ListOfferingsPages(params,
  1433. // func(page *ListOfferingsOutput, lastPage bool) bool {
  1434. // pageNum++
  1435. // fmt.Println(page)
  1436. // return pageNum <= 3
  1437. // })
  1438. //
  1439. func (c *DeviceFarm) ListOfferingsPages(input *ListOfferingsInput, fn func(p *ListOfferingsOutput, lastPage bool) (shouldContinue bool)) error {
  1440. page, _ := c.ListOfferingsRequest(input)
  1441. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1442. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1443. return fn(p.(*ListOfferingsOutput), lastPage)
  1444. })
  1445. }
  1446. const opListProjects = "ListProjects"
  1447. // ListProjectsRequest generates a "aws/request.Request" representing the
  1448. // client's request for the ListProjects operation. The "output" return
  1449. // value can be used to capture response data after the request's "Send" method
  1450. // is called.
  1451. //
  1452. // Creating a request object using this method should be used when you want to inject
  1453. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1454. // access properties on the request object before or after sending the request. If
  1455. // you just want the service response, call the ListProjects method directly
  1456. // instead.
  1457. //
  1458. // Note: You must call the "Send" method on the returned request object in order
  1459. // to execute the request.
  1460. //
  1461. // // Example sending a request using the ListProjectsRequest method.
  1462. // req, resp := client.ListProjectsRequest(params)
  1463. //
  1464. // err := req.Send()
  1465. // if err == nil { // resp is now filled
  1466. // fmt.Println(resp)
  1467. // }
  1468. //
  1469. func (c *DeviceFarm) ListProjectsRequest(input *ListProjectsInput) (req *request.Request, output *ListProjectsOutput) {
  1470. op := &request.Operation{
  1471. Name: opListProjects,
  1472. HTTPMethod: "POST",
  1473. HTTPPath: "/",
  1474. Paginator: &request.Paginator{
  1475. InputTokens: []string{"nextToken"},
  1476. OutputTokens: []string{"nextToken"},
  1477. LimitToken: "",
  1478. TruncationToken: "",
  1479. },
  1480. }
  1481. if input == nil {
  1482. input = &ListProjectsInput{}
  1483. }
  1484. req = c.newRequest(op, input, output)
  1485. output = &ListProjectsOutput{}
  1486. req.Data = output
  1487. return
  1488. }
  1489. // Gets information about projects.
  1490. func (c *DeviceFarm) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error) {
  1491. req, out := c.ListProjectsRequest(input)
  1492. err := req.Send()
  1493. return out, err
  1494. }
  1495. // ListProjectsPages iterates over the pages of a ListProjects operation,
  1496. // calling the "fn" function with the response data for each page. To stop
  1497. // iterating, return false from the fn function.
  1498. //
  1499. // See ListProjects method for more information on how to use this operation.
  1500. //
  1501. // Note: This operation can generate multiple requests to a service.
  1502. //
  1503. // // Example iterating over at most 3 pages of a ListProjects operation.
  1504. // pageNum := 0
  1505. // err := client.ListProjectsPages(params,
  1506. // func(page *ListProjectsOutput, lastPage bool) bool {
  1507. // pageNum++
  1508. // fmt.Println(page)
  1509. // return pageNum <= 3
  1510. // })
  1511. //
  1512. func (c *DeviceFarm) ListProjectsPages(input *ListProjectsInput, fn func(p *ListProjectsOutput, lastPage bool) (shouldContinue bool)) error {
  1513. page, _ := c.ListProjectsRequest(input)
  1514. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1515. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1516. return fn(p.(*ListProjectsOutput), lastPage)
  1517. })
  1518. }
  1519. const opListRemoteAccessSessions = "ListRemoteAccessSessions"
  1520. // ListRemoteAccessSessionsRequest generates a "aws/request.Request" representing the
  1521. // client's request for the ListRemoteAccessSessions operation. The "output" return
  1522. // value can be used to capture response data after the request's "Send" method
  1523. // is called.
  1524. //
  1525. // Creating a request object using this method should be used when you want to inject
  1526. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1527. // access properties on the request object before or after sending the request. If
  1528. // you just want the service response, call the ListRemoteAccessSessions method directly
  1529. // instead.
  1530. //
  1531. // Note: You must call the "Send" method on the returned request object in order
  1532. // to execute the request.
  1533. //
  1534. // // Example sending a request using the ListRemoteAccessSessionsRequest method.
  1535. // req, resp := client.ListRemoteAccessSessionsRequest(params)
  1536. //
  1537. // err := req.Send()
  1538. // if err == nil { // resp is now filled
  1539. // fmt.Println(resp)
  1540. // }
  1541. //
  1542. func (c *DeviceFarm) ListRemoteAccessSessionsRequest(input *ListRemoteAccessSessionsInput) (req *request.Request, output *ListRemoteAccessSessionsOutput) {
  1543. op := &request.Operation{
  1544. Name: opListRemoteAccessSessions,
  1545. HTTPMethod: "POST",
  1546. HTTPPath: "/",
  1547. }
  1548. if input == nil {
  1549. input = &ListRemoteAccessSessionsInput{}
  1550. }
  1551. req = c.newRequest(op, input, output)
  1552. output = &ListRemoteAccessSessionsOutput{}
  1553. req.Data = output
  1554. return
  1555. }
  1556. // Returns a list of all currently running remote access sessions.
  1557. func (c *DeviceFarm) ListRemoteAccessSessions(input *ListRemoteAccessSessionsInput) (*ListRemoteAccessSessionsOutput, error) {
  1558. req, out := c.ListRemoteAccessSessionsRequest(input)
  1559. err := req.Send()
  1560. return out, err
  1561. }
  1562. const opListRuns = "ListRuns"
  1563. // ListRunsRequest generates a "aws/request.Request" representing the
  1564. // client's request for the ListRuns operation. The "output" return
  1565. // value can be used to capture response data after the request's "Send" method
  1566. // is called.
  1567. //
  1568. // Creating a request object using this method should be used when you want to inject
  1569. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1570. // access properties on the request object before or after sending the request. If
  1571. // you just want the service response, call the ListRuns method directly
  1572. // instead.
  1573. //
  1574. // Note: You must call the "Send" method on the returned request object in order
  1575. // to execute the request.
  1576. //
  1577. // // Example sending a request using the ListRunsRequest method.
  1578. // req, resp := client.ListRunsRequest(params)
  1579. //
  1580. // err := req.Send()
  1581. // if err == nil { // resp is now filled
  1582. // fmt.Println(resp)
  1583. // }
  1584. //
  1585. func (c *DeviceFarm) ListRunsRequest(input *ListRunsInput) (req *request.Request, output *ListRunsOutput) {
  1586. op := &request.Operation{
  1587. Name: opListRuns,
  1588. HTTPMethod: "POST",
  1589. HTTPPath: "/",
  1590. Paginator: &request.Paginator{
  1591. InputTokens: []string{"nextToken"},
  1592. OutputTokens: []string{"nextToken"},
  1593. LimitToken: "",
  1594. TruncationToken: "",
  1595. },
  1596. }
  1597. if input == nil {
  1598. input = &ListRunsInput{}
  1599. }
  1600. req = c.newRequest(op, input, output)
  1601. output = &ListRunsOutput{}
  1602. req.Data = output
  1603. return
  1604. }
  1605. // Gets information about runs.
  1606. func (c *DeviceFarm) ListRuns(input *ListRunsInput) (*ListRunsOutput, error) {
  1607. req, out := c.ListRunsRequest(input)
  1608. err := req.Send()
  1609. return out, err
  1610. }
  1611. // ListRunsPages iterates over the pages of a ListRuns operation,
  1612. // calling the "fn" function with the response data for each page. To stop
  1613. // iterating, return false from the fn function.
  1614. //
  1615. // See ListRuns method for more information on how to use this operation.
  1616. //
  1617. // Note: This operation can generate multiple requests to a service.
  1618. //
  1619. // // Example iterating over at most 3 pages of a ListRuns operation.
  1620. // pageNum := 0
  1621. // err := client.ListRunsPages(params,
  1622. // func(page *ListRunsOutput, lastPage bool) bool {
  1623. // pageNum++
  1624. // fmt.Println(page)
  1625. // return pageNum <= 3
  1626. // })
  1627. //
  1628. func (c *DeviceFarm) ListRunsPages(input *ListRunsInput, fn func(p *ListRunsOutput, lastPage bool) (shouldContinue bool)) error {
  1629. page, _ := c.ListRunsRequest(input)
  1630. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1631. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1632. return fn(p.(*ListRunsOutput), lastPage)
  1633. })
  1634. }
  1635. const opListSamples = "ListSamples"
  1636. // ListSamplesRequest generates a "aws/request.Request" representing the
  1637. // client's request for the ListSamples operation. The "output" return
  1638. // value can be used to capture response data after the request's "Send" method
  1639. // is called.
  1640. //
  1641. // Creating a request object using this method should be used when you want to inject
  1642. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1643. // access properties on the request object before or after sending the request. If
  1644. // you just want the service response, call the ListSamples method directly
  1645. // instead.
  1646. //
  1647. // Note: You must call the "Send" method on the returned request object in order
  1648. // to execute the request.
  1649. //
  1650. // // Example sending a request using the ListSamplesRequest method.
  1651. // req, resp := client.ListSamplesRequest(params)
  1652. //
  1653. // err := req.Send()
  1654. // if err == nil { // resp is now filled
  1655. // fmt.Println(resp)
  1656. // }
  1657. //
  1658. func (c *DeviceFarm) ListSamplesRequest(input *ListSamplesInput) (req *request.Request, output *ListSamplesOutput) {
  1659. op := &request.Operation{
  1660. Name: opListSamples,
  1661. HTTPMethod: "POST",
  1662. HTTPPath: "/",
  1663. Paginator: &request.Paginator{
  1664. InputTokens: []string{"nextToken"},
  1665. OutputTokens: []string{"nextToken"},
  1666. LimitToken: "",
  1667. TruncationToken: "",
  1668. },
  1669. }
  1670. if input == nil {
  1671. input = &ListSamplesInput{}
  1672. }
  1673. req = c.newRequest(op, input, output)
  1674. output = &ListSamplesOutput{}
  1675. req.Data = output
  1676. return
  1677. }
  1678. // Gets information about samples.
  1679. func (c *DeviceFarm) ListSamples(input *ListSamplesInput) (*ListSamplesOutput, error) {
  1680. req, out := c.ListSamplesRequest(input)
  1681. err := req.Send()
  1682. return out, err
  1683. }
  1684. // ListSamplesPages iterates over the pages of a ListSamples operation,
  1685. // calling the "fn" function with the response data for each page. To stop
  1686. // iterating, return false from the fn function.
  1687. //
  1688. // See ListSamples method for more information on how to use this operation.
  1689. //
  1690. // Note: This operation can generate multiple requests to a service.
  1691. //
  1692. // // Example iterating over at most 3 pages of a ListSamples operation.
  1693. // pageNum := 0
  1694. // err := client.ListSamplesPages(params,
  1695. // func(page *ListSamplesOutput, lastPage bool) bool {
  1696. // pageNum++
  1697. // fmt.Println(page)
  1698. // return pageNum <= 3
  1699. // })
  1700. //
  1701. func (c *DeviceFarm) ListSamplesPages(input *ListSamplesInput, fn func(p *ListSamplesOutput, lastPage bool) (shouldContinue bool)) error {
  1702. page, _ := c.ListSamplesRequest(input)
  1703. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1704. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1705. return fn(p.(*ListSamplesOutput), lastPage)
  1706. })
  1707. }
  1708. const opListSuites = "ListSuites"
  1709. // ListSuitesRequest generates a "aws/request.Request" representing the
  1710. // client's request for the ListSuites operation. The "output" return
  1711. // value can be used to capture response data after the request's "Send" method
  1712. // is called.
  1713. //
  1714. // Creating a request object using this method should be used when you want to inject
  1715. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1716. // access properties on the request object before or after sending the request. If
  1717. // you just want the service response, call the ListSuites method directly
  1718. // instead.
  1719. //
  1720. // Note: You must call the "Send" method on the returned request object in order
  1721. // to execute the request.
  1722. //
  1723. // // Example sending a request using the ListSuitesRequest method.
  1724. // req, resp := client.ListSuitesRequest(params)
  1725. //
  1726. // err := req.Send()
  1727. // if err == nil { // resp is now filled
  1728. // fmt.Println(resp)
  1729. // }
  1730. //
  1731. func (c *DeviceFarm) ListSuitesRequest(input *ListSuitesInput) (req *request.Request, output *ListSuitesOutput) {
  1732. op := &request.Operation{
  1733. Name: opListSuites,
  1734. HTTPMethod: "POST",
  1735. HTTPPath: "/",
  1736. Paginator: &request.Paginator{
  1737. InputTokens: []string{"nextToken"},
  1738. OutputTokens: []string{"nextToken"},
  1739. LimitToken: "",
  1740. TruncationToken: "",
  1741. },
  1742. }
  1743. if input == nil {
  1744. input = &ListSuitesInput{}
  1745. }
  1746. req = c.newRequest(op, input, output)
  1747. output = &ListSuitesOutput{}
  1748. req.Data = output
  1749. return
  1750. }
  1751. // Gets information about suites.
  1752. func (c *DeviceFarm) ListSuites(input *ListSuitesInput) (*ListSuitesOutput, error) {
  1753. req, out := c.ListSuitesRequest(input)
  1754. err := req.Send()
  1755. return out, err
  1756. }
  1757. // ListSuitesPages iterates over the pages of a ListSuites operation,
  1758. // calling the "fn" function with the response data for each page. To stop
  1759. // iterating, return false from the fn function.
  1760. //
  1761. // See ListSuites method for more information on how to use this operation.
  1762. //
  1763. // Note: This operation can generate multiple requests to a service.
  1764. //
  1765. // // Example iterating over at most 3 pages of a ListSuites operation.
  1766. // pageNum := 0
  1767. // err := client.ListSuitesPages(params,
  1768. // func(page *ListSuitesOutput, lastPage bool) bool {
  1769. // pageNum++
  1770. // fmt.Println(page)
  1771. // return pageNum <= 3
  1772. // })
  1773. //
  1774. func (c *DeviceFarm) ListSuitesPages(input *ListSuitesInput, fn func(p *ListSuitesOutput, lastPage bool) (shouldContinue bool)) error {
  1775. page, _ := c.ListSuitesRequest(input)
  1776. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1777. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1778. return fn(p.(*ListSuitesOutput), lastPage)
  1779. })
  1780. }
  1781. const opListTests = "ListTests"
  1782. // ListTestsRequest generates a "aws/request.Request" representing the
  1783. // client's request for the ListTests operation. The "output" return
  1784. // value can be used to capture response data after the request's "Send" method
  1785. // is called.
  1786. //
  1787. // Creating a request object using this method should be used when you want to inject
  1788. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1789. // access properties on the request object before or after sending the request. If
  1790. // you just want the service response, call the ListTests method directly
  1791. // instead.
  1792. //
  1793. // Note: You must call the "Send" method on the returned request object in order
  1794. // to execute the request.
  1795. //
  1796. // // Example sending a request using the ListTestsRequest method.
  1797. // req, resp := client.ListTestsRequest(params)
  1798. //
  1799. // err := req.Send()
  1800. // if err == nil { // resp is now filled
  1801. // fmt.Println(resp)
  1802. // }
  1803. //
  1804. func (c *DeviceFarm) ListTestsRequest(input *ListTestsInput) (req *request.Request, output *ListTestsOutput) {
  1805. op := &request.Operation{
  1806. Name: opListTests,
  1807. HTTPMethod: "POST",
  1808. HTTPPath: "/",
  1809. Paginator: &request.Paginator{
  1810. InputTokens: []string{"nextToken"},
  1811. OutputTokens: []string{"nextToken"},
  1812. LimitToken: "",
  1813. TruncationToken: "",
  1814. },
  1815. }
  1816. if input == nil {
  1817. input = &ListTestsInput{}
  1818. }
  1819. req = c.newRequest(op, input, output)
  1820. output = &ListTestsOutput{}
  1821. req.Data = output
  1822. return
  1823. }
  1824. // Gets information about tests.
  1825. func (c *DeviceFarm) ListTests(input *ListTestsInput) (*ListTestsOutput, error) {
  1826. req, out := c.ListTestsRequest(input)
  1827. err := req.Send()
  1828. return out, err
  1829. }
  1830. // ListTestsPages iterates over the pages of a ListTests operation,
  1831. // calling the "fn" function with the response data for each page. To stop
  1832. // iterating, return false from the fn function.
  1833. //
  1834. // See ListTests method for more information on how to use this operation.
  1835. //
  1836. // Note: This operation can generate multiple requests to a service.
  1837. //
  1838. // // Example iterating over at most 3 pages of a ListTests operation.
  1839. // pageNum := 0
  1840. // err := client.ListTestsPages(params,
  1841. // func(page *ListTestsOutput, lastPage bool) bool {
  1842. // pageNum++
  1843. // fmt.Println(page)
  1844. // return pageNum <= 3
  1845. // })
  1846. //
  1847. func (c *DeviceFarm) ListTestsPages(input *ListTestsInput, fn func(p *ListTestsOutput, lastPage bool) (shouldContinue bool)) error {
  1848. page, _ := c.ListTestsRequest(input)
  1849. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1850. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1851. return fn(p.(*ListTestsOutput), lastPage)
  1852. })
  1853. }
  1854. const opListUniqueProblems = "ListUniqueProblems"
  1855. // ListUniqueProblemsRequest generates a "aws/request.Request" representing the
  1856. // client's request for the ListUniqueProblems operation. The "output" return
  1857. // value can be used to capture response data after the request's "Send" method
  1858. // is called.
  1859. //
  1860. // Creating a request object using this method should be used when you want to inject
  1861. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1862. // access properties on the request object before or after sending the request. If
  1863. // you just want the service response, call the ListUniqueProblems method directly
  1864. // instead.
  1865. //
  1866. // Note: You must call the "Send" method on the returned request object in order
  1867. // to execute the request.
  1868. //
  1869. // // Example sending a request using the ListUniqueProblemsRequest method.
  1870. // req, resp := client.ListUniqueProblemsRequest(params)
  1871. //
  1872. // err := req.Send()
  1873. // if err == nil { // resp is now filled
  1874. // fmt.Println(resp)
  1875. // }
  1876. //
  1877. func (c *DeviceFarm) ListUniqueProblemsRequest(input *ListUniqueProblemsInput) (req *request.Request, output *ListUniqueProblemsOutput) {
  1878. op := &request.Operation{
  1879. Name: opListUniqueProblems,
  1880. HTTPMethod: "POST",
  1881. HTTPPath: "/",
  1882. Paginator: &request.Paginator{
  1883. InputTokens: []string{"nextToken"},
  1884. OutputTokens: []string{"nextToken"},
  1885. LimitToken: "",
  1886. TruncationToken: "",
  1887. },
  1888. }
  1889. if input == nil {
  1890. input = &ListUniqueProblemsInput{}
  1891. }
  1892. req = c.newRequest(op, input, output)
  1893. output = &ListUniqueProblemsOutput{}
  1894. req.Data = output
  1895. return
  1896. }
  1897. // Gets information about unique problems.
  1898. func (c *DeviceFarm) ListUniqueProblems(input *ListUniqueProblemsInput) (*ListUniqueProblemsOutput, error) {
  1899. req, out := c.ListUniqueProblemsRequest(input)
  1900. err := req.Send()
  1901. return out, err
  1902. }
  1903. // ListUniqueProblemsPages iterates over the pages of a ListUniqueProblems operation,
  1904. // calling the "fn" function with the response data for each page. To stop
  1905. // iterating, return false from the fn function.
  1906. //
  1907. // See ListUniqueProblems method for more information on how to use this operation.
  1908. //
  1909. // Note: This operation can generate multiple requests to a service.
  1910. //
  1911. // // Example iterating over at most 3 pages of a ListUniqueProblems operation.
  1912. // pageNum := 0
  1913. // err := client.ListUniqueProblemsPages(params,
  1914. // func(page *ListUniqueProblemsOutput, lastPage bool) bool {
  1915. // pageNum++
  1916. // fmt.Println(page)
  1917. // return pageNum <= 3
  1918. // })
  1919. //
  1920. func (c *DeviceFarm) ListUniqueProblemsPages(input *ListUniqueProblemsInput, fn func(p *ListUniqueProblemsOutput, lastPage bool) (shouldContinue bool)) error {
  1921. page, _ := c.ListUniqueProblemsRequest(input)
  1922. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1923. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1924. return fn(p.(*ListUniqueProblemsOutput), lastPage)
  1925. })
  1926. }
  1927. const opListUploads = "ListUploads"
  1928. // ListUploadsRequest generates a "aws/request.Request" representing the
  1929. // client's request for the ListUploads operation. The "output" return
  1930. // value can be used to capture response data after the request's "Send" method
  1931. // is called.
  1932. //
  1933. // Creating a request object using this method should be used when you want to inject
  1934. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1935. // access properties on the request object before or after sending the request. If
  1936. // you just want the service response, call the ListUploads method directly
  1937. // instead.
  1938. //
  1939. // Note: You must call the "Send" method on the returned request object in order
  1940. // to execute the request.
  1941. //
  1942. // // Example sending a request using the ListUploadsRequest method.
  1943. // req, resp := client.ListUploadsRequest(params)
  1944. //
  1945. // err := req.Send()
  1946. // if err == nil { // resp is now filled
  1947. // fmt.Println(resp)
  1948. // }
  1949. //
  1950. func (c *DeviceFarm) ListUploadsRequest(input *ListUploadsInput) (req *request.Request, output *ListUploadsOutput) {
  1951. op := &request.Operation{
  1952. Name: opListUploads,
  1953. HTTPMethod: "POST",
  1954. HTTPPath: "/",
  1955. Paginator: &request.Paginator{
  1956. InputTokens: []string{"nextToken"},
  1957. OutputTokens: []string{"nextToken"},
  1958. LimitToken: "",
  1959. TruncationToken: "",
  1960. },
  1961. }
  1962. if input == nil {
  1963. input = &ListUploadsInput{}
  1964. }
  1965. req = c.newRequest(op, input, output)
  1966. output = &ListUploadsOutput{}
  1967. req.Data = output
  1968. return
  1969. }
  1970. // Gets information about uploads.
  1971. func (c *DeviceFarm) ListUploads(input *ListUploadsInput) (*ListUploadsOutput, error) {
  1972. req, out := c.ListUploadsRequest(input)
  1973. err := req.Send()
  1974. return out, err
  1975. }
  1976. // ListUploadsPages iterates over the pages of a ListUploads operation,
  1977. // calling the "fn" function with the response data for each page. To stop
  1978. // iterating, return false from the fn function.
  1979. //
  1980. // See ListUploads method for more information on how to use this operation.
  1981. //
  1982. // Note: This operation can generate multiple requests to a service.
  1983. //
  1984. // // Example iterating over at most 3 pages of a ListUploads operation.
  1985. // pageNum := 0
  1986. // err := client.ListUploadsPages(params,
  1987. // func(page *ListUploadsOutput, lastPage bool) bool {
  1988. // pageNum++
  1989. // fmt.Println(page)
  1990. // return pageNum <= 3
  1991. // })
  1992. //
  1993. func (c *DeviceFarm) ListUploadsPages(input *ListUploadsInput, fn func(p *ListUploadsOutput, lastPage bool) (shouldContinue bool)) error {
  1994. page, _ := c.ListUploadsRequest(input)
  1995. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1996. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1997. return fn(p.(*ListUploadsOutput), lastPage)
  1998. })
  1999. }
  2000. const opPurchaseOffering = "PurchaseOffering"
  2001. // PurchaseOfferingRequest generates a "aws/request.Request" representing the
  2002. // client's request for the PurchaseOffering operation. The "output" return
  2003. // value can be used to capture response data after the request's "Send" method
  2004. // is called.
  2005. //
  2006. // Creating a request object using this method should be used when you want to inject
  2007. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2008. // access properties on the request object before or after sending the request. If
  2009. // you just want the service response, call the PurchaseOffering method directly
  2010. // instead.
  2011. //
  2012. // Note: You must call the "Send" method on the returned request object in order
  2013. // to execute the request.
  2014. //
  2015. // // Example sending a request using the PurchaseOfferingRequest method.
  2016. // req, resp := client.PurchaseOfferingRequest(params)
  2017. //
  2018. // err := req.Send()
  2019. // if err == nil { // resp is now filled
  2020. // fmt.Println(resp)
  2021. // }
  2022. //
  2023. func (c *DeviceFarm) PurchaseOfferingRequest(input *PurchaseOfferingInput) (req *request.Request, output *PurchaseOfferingOutput) {
  2024. op := &request.Operation{
  2025. Name: opPurchaseOffering,
  2026. HTTPMethod: "POST",
  2027. HTTPPath: "/",
  2028. }
  2029. if input == nil {
  2030. input = &PurchaseOfferingInput{}
  2031. }
  2032. req = c.newRequest(op, input, output)
  2033. output = &PurchaseOfferingOutput{}
  2034. req.Data = output
  2035. return
  2036. }
  2037. // Immediately purchases offerings for an AWS account. Offerings renew with
  2038. // the latest total purchased quantity for an offering, unless the renewal was
  2039. // overridden. The API returns a NotEligible error if the user is not permitted
  2040. // to invoke the operation. Please contact aws-devicefarm-support@amazon.com
  2041. // (mailto:aws-devicefarm-support@amazon.com) if you believe that you should
  2042. // be able to invoke this operation.
  2043. func (c *DeviceFarm) PurchaseOffering(input *PurchaseOfferingInput) (*PurchaseOfferingOutput, error) {
  2044. req, out := c.PurchaseOfferingRequest(input)
  2045. err := req.Send()
  2046. return out, err
  2047. }
  2048. const opRenewOffering = "RenewOffering"
  2049. // RenewOfferingRequest generates a "aws/request.Request" representing the
  2050. // client's request for the RenewOffering operation. The "output" return
  2051. // value can be used to capture response data after the request's "Send" method
  2052. // is called.
  2053. //
  2054. // Creating a request object using this method should be used when you want to inject
  2055. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2056. // access properties on the request object before or after sending the request. If
  2057. // you just want the service response, call the RenewOffering method directly
  2058. // instead.
  2059. //
  2060. // Note: You must call the "Send" method on the returned request object in order
  2061. // to execute the request.
  2062. //
  2063. // // Example sending a request using the RenewOfferingRequest method.
  2064. // req, resp := client.RenewOfferingRequest(params)
  2065. //
  2066. // err := req.Send()
  2067. // if err == nil { // resp is now filled
  2068. // fmt.Println(resp)
  2069. // }
  2070. //
  2071. func (c *DeviceFarm) RenewOfferingRequest(input *RenewOfferingInput) (req *request.Request, output *RenewOfferingOutput) {
  2072. op := &request.Operation{
  2073. Name: opRenewOffering,
  2074. HTTPMethod: "POST",
  2075. HTTPPath: "/",
  2076. }
  2077. if input == nil {
  2078. input = &RenewOfferingInput{}
  2079. }
  2080. req = c.newRequest(op, input, output)
  2081. output = &RenewOfferingOutput{}
  2082. req.Data = output
  2083. return
  2084. }
  2085. // Explicitly sets the quantity of devices to renew for an offering, starting
  2086. // from the effectiveDate of the next period. The API returns a NotEligible
  2087. // error if the user is not permitted to invoke the operation. Please contact
  2088. // aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com)
  2089. // if you believe that you should be able to invoke this operation.
  2090. func (c *DeviceFarm) RenewOffering(input *RenewOfferingInput) (*RenewOfferingOutput, error) {
  2091. req, out := c.RenewOfferingRequest(input)
  2092. err := req.Send()
  2093. return out, err
  2094. }
  2095. const opScheduleRun = "ScheduleRun"
  2096. // ScheduleRunRequest generates a "aws/request.Request" representing the
  2097. // client's request for the ScheduleRun operation. The "output" return
  2098. // value can be used to capture response data after the request's "Send" method
  2099. // is called.
  2100. //
  2101. // Creating a request object using this method should be used when you want to inject
  2102. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2103. // access properties on the request object before or after sending the request. If
  2104. // you just want the service response, call the ScheduleRun method directly
  2105. // instead.
  2106. //
  2107. // Note: You must call the "Send" method on the returned request object in order
  2108. // to execute the request.
  2109. //
  2110. // // Example sending a request using the ScheduleRunRequest method.
  2111. // req, resp := client.ScheduleRunRequest(params)
  2112. //
  2113. // err := req.Send()
  2114. // if err == nil { // resp is now filled
  2115. // fmt.Println(resp)
  2116. // }
  2117. //
  2118. func (c *DeviceFarm) ScheduleRunRequest(input *ScheduleRunInput) (req *request.Request, output *ScheduleRunOutput) {
  2119. op := &request.Operation{
  2120. Name: opScheduleRun,
  2121. HTTPMethod: "POST",
  2122. HTTPPath: "/",
  2123. }
  2124. if input == nil {
  2125. input = &ScheduleRunInput{}
  2126. }
  2127. req = c.newRequest(op, input, output)
  2128. output = &ScheduleRunOutput{}
  2129. req.Data = output
  2130. return
  2131. }
  2132. // Schedules a run.
  2133. func (c *DeviceFarm) ScheduleRun(input *ScheduleRunInput) (*ScheduleRunOutput, error) {
  2134. req, out := c.ScheduleRunRequest(input)
  2135. err := req.Send()
  2136. return out, err
  2137. }
  2138. const opStopRemoteAccessSession = "StopRemoteAccessSession"
  2139. // StopRemoteAccessSessionRequest generates a "aws/request.Request" representing the
  2140. // client's request for the StopRemoteAccessSession operation. The "output" return
  2141. // value can be used to capture response data after the request's "Send" method
  2142. // is called.
  2143. //
  2144. // Creating a request object using this method should be used when you want to inject
  2145. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2146. // access properties on the request object before or after sending the request. If
  2147. // you just want the service response, call the StopRemoteAccessSession method directly
  2148. // instead.
  2149. //
  2150. // Note: You must call the "Send" method on the returned request object in order
  2151. // to execute the request.
  2152. //
  2153. // // Example sending a request using the StopRemoteAccessSessionRequest method.
  2154. // req, resp := client.StopRemoteAccessSessionRequest(params)
  2155. //
  2156. // err := req.Send()
  2157. // if err == nil { // resp is now filled
  2158. // fmt.Println(resp)
  2159. // }
  2160. //
  2161. func (c *DeviceFarm) StopRemoteAccessSessionRequest(input *StopRemoteAccessSessionInput) (req *request.Request, output *StopRemoteAccessSessionOutput) {
  2162. op := &request.Operation{
  2163. Name: opStopRemoteAccessSession,
  2164. HTTPMethod: "POST",
  2165. HTTPPath: "/",
  2166. }
  2167. if input == nil {
  2168. input = &StopRemoteAccessSessionInput{}
  2169. }
  2170. req = c.newRequest(op, input, output)
  2171. output = &StopRemoteAccessSessionOutput{}
  2172. req.Data = output
  2173. return
  2174. }
  2175. // Ends a specified remote access session.
  2176. func (c *DeviceFarm) StopRemoteAccessSession(input *StopRemoteAccessSessionInput) (*StopRemoteAccessSessionOutput, error) {
  2177. req, out := c.StopRemoteAccessSessionRequest(input)
  2178. err := req.Send()
  2179. return out, err
  2180. }
  2181. const opStopRun = "StopRun"
  2182. // StopRunRequest generates a "aws/request.Request" representing the
  2183. // client's request for the StopRun operation. The "output" return
  2184. // value can be used to capture response data after the request's "Send" method
  2185. // is called.
  2186. //
  2187. // Creating a request object using this method should be used when you want to inject
  2188. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2189. // access properties on the request object before or after sending the request. If
  2190. // you just want the service response, call the StopRun method directly
  2191. // instead.
  2192. //
  2193. // Note: You must call the "Send" method on the returned request object in order
  2194. // to execute the request.
  2195. //
  2196. // // Example sending a request using the StopRunRequest method.
  2197. // req, resp := client.StopRunRequest(params)
  2198. //
  2199. // err := req.Send()
  2200. // if err == nil { // resp is now filled
  2201. // fmt.Println(resp)
  2202. // }
  2203. //
  2204. func (c *DeviceFarm) StopRunRequest(input *StopRunInput) (req *request.Request, output *StopRunOutput) {
  2205. op := &request.Operation{
  2206. Name: opStopRun,
  2207. HTTPMethod: "POST",
  2208. HTTPPath: "/",
  2209. }
  2210. if input == nil {
  2211. input = &StopRunInput{}
  2212. }
  2213. req = c.newRequest(op, input, output)
  2214. output = &StopRunOutput{}
  2215. req.Data = output
  2216. return
  2217. }
  2218. // Initiates a stop request for the current test run. AWS Device Farm will immediately
  2219. // stop the run on devices where tests have not started executing, and you will
  2220. // not be billed for these devices. On devices where tests have started executing,
  2221. // Setup Suite and Teardown Suite tests will run to completion before stopping
  2222. // execution on those devices. You will be billed for Setup, Teardown, and any
  2223. // tests that were in progress or already completed.
  2224. func (c *DeviceFarm) StopRun(input *StopRunInput) (*StopRunOutput, error) {
  2225. req, out := c.StopRunRequest(input)
  2226. err := req.Send()
  2227. return out, err
  2228. }
  2229. const opUpdateDevicePool = "UpdateDevicePool"
  2230. // UpdateDevicePoolRequest generates a "aws/request.Request" representing the
  2231. // client's request for the UpdateDevicePool operation. The "output" return
  2232. // value can be used to capture response data after the request's "Send" method
  2233. // is called.
  2234. //
  2235. // Creating a request object using this method should be used when you want to inject
  2236. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2237. // access properties on the request object before or after sending the request. If
  2238. // you just want the service response, call the UpdateDevicePool method directly
  2239. // instead.
  2240. //
  2241. // Note: You must call the "Send" method on the returned request object in order
  2242. // to execute the request.
  2243. //
  2244. // // Example sending a request using the UpdateDevicePoolRequest method.
  2245. // req, resp := client.UpdateDevicePoolRequest(params)
  2246. //
  2247. // err := req.Send()
  2248. // if err == nil { // resp is now filled
  2249. // fmt.Println(resp)
  2250. // }
  2251. //
  2252. func (c *DeviceFarm) UpdateDevicePoolRequest(input *UpdateDevicePoolInput) (req *request.Request, output *UpdateDevicePoolOutput) {
  2253. op := &request.Operation{
  2254. Name: opUpdateDevicePool,
  2255. HTTPMethod: "POST",
  2256. HTTPPath: "/",
  2257. }
  2258. if input == nil {
  2259. input = &UpdateDevicePoolInput{}
  2260. }
  2261. req = c.newRequest(op, input, output)
  2262. output = &UpdateDevicePoolOutput{}
  2263. req.Data = output
  2264. return
  2265. }
  2266. // Modifies the name, description, and rules in a device pool given the attributes
  2267. // and the pool ARN. Rule updates are all-or-nothing, meaning they can only
  2268. // be updated as a whole (or not at all).
  2269. func (c *DeviceFarm) UpdateDevicePool(input *UpdateDevicePoolInput) (*UpdateDevicePoolOutput, error) {
  2270. req, out := c.UpdateDevicePoolRequest(input)
  2271. err := req.Send()
  2272. return out, err
  2273. }
  2274. const opUpdateProject = "UpdateProject"
  2275. // UpdateProjectRequest generates a "aws/request.Request" representing the
  2276. // client's request for the UpdateProject operation. The "output" return
  2277. // value can be used to capture response data after the request's "Send" method
  2278. // is called.
  2279. //
  2280. // Creating a request object using this method should be used when you want to inject
  2281. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2282. // access properties on the request object before or after sending the request. If
  2283. // you just want the service response, call the UpdateProject method directly
  2284. // instead.
  2285. //
  2286. // Note: You must call the "Send" method on the returned request object in order
  2287. // to execute the request.
  2288. //
  2289. // // Example sending a request using the UpdateProjectRequest method.
  2290. // req, resp := client.UpdateProjectRequest(params)
  2291. //
  2292. // err := req.Send()
  2293. // if err == nil { // resp is now filled
  2294. // fmt.Println(resp)
  2295. // }
  2296. //
  2297. func (c *DeviceFarm) UpdateProjectRequest(input *UpdateProjectInput) (req *request.Request, output *UpdateProjectOutput) {
  2298. op := &request.Operation{
  2299. Name: opUpdateProject,
  2300. HTTPMethod: "POST",
  2301. HTTPPath: "/",
  2302. }
  2303. if input == nil {
  2304. input = &UpdateProjectInput{}
  2305. }
  2306. req = c.newRequest(op, input, output)
  2307. output = &UpdateProjectOutput{}
  2308. req.Data = output
  2309. return
  2310. }
  2311. // Modifies the specified project name, given the project ARN and a new name.
  2312. func (c *DeviceFarm) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOutput, error) {
  2313. req, out := c.UpdateProjectRequest(input)
  2314. err := req.Send()
  2315. return out, err
  2316. }
  2317. // A container for account-level settings within AWS Device Farm.
  2318. type AccountSettings struct {
  2319. _ struct{} `type:"structure"`
  2320. // The AWS account number specified in the AccountSettings container.
  2321. AwsAccountNumber *string `locationName:"awsAccountNumber" min:"2" type:"string"`
  2322. // Returns the unmetered devices you have purchased or want to purchase.
  2323. UnmeteredDevices map[string]*int64 `locationName:"unmeteredDevices" type:"map"`
  2324. // Returns the unmetered remote access devices you have purchased or want to
  2325. // purchase.
  2326. UnmeteredRemoteAccessDevices map[string]*int64 `locationName:"unmeteredRemoteAccessDevices" type:"map"`
  2327. }
  2328. // String returns the string representation
  2329. func (s AccountSettings) String() string {
  2330. return awsutil.Prettify(s)
  2331. }
  2332. // GoString returns the string representation
  2333. func (s AccountSettings) GoString() string {
  2334. return s.String()
  2335. }
  2336. // Represents the output of a test. Examples of artifacts include logs and screenshots.
  2337. type Artifact struct {
  2338. _ struct{} `type:"structure"`
  2339. // The artifact's ARN.
  2340. Arn *string `locationName:"arn" min:"32" type:"string"`
  2341. // The artifact's file extension.
  2342. Extension *string `locationName:"extension" type:"string"`
  2343. // The artifact's name.
  2344. Name *string `locationName:"name" type:"string"`
  2345. // The artifact's type.
  2346. //
  2347. // Allowed values include the following:
  2348. //
  2349. // UNKNOWN: An unknown type.
  2350. //
  2351. // SCREENSHOT: The screenshot type.
  2352. //
  2353. // DEVICE_LOG: The device log type.
  2354. //
  2355. // MESSAGE_LOG: The message log type.
  2356. //
  2357. // RESULT_LOG: The result log type.
  2358. //
  2359. // SERVICE_LOG: The service log type.
  2360. //
  2361. // WEBKIT_LOG: The web kit log type.
  2362. //
  2363. // INSTRUMENTATION_OUTPUT: The instrumentation type.
  2364. //
  2365. // EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an
  2366. // Android fuzz test.
  2367. //
  2368. // CALABASH_JSON_OUTPUT: The Calabash JSON output type.
  2369. //
  2370. // CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.
  2371. //
  2372. // CALABASH_STANDARD_OUTPUT: The Calabash standard output type.
  2373. //
  2374. // CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.
  2375. //
  2376. // AUTOMATION_OUTPUT: The automation output type.
  2377. //
  2378. // APPIUM_SERVER_OUTPUT: The Appium server output type.
  2379. //
  2380. // APPIUM_JAVA_OUTPUT: The Appium Java output type.
  2381. //
  2382. // APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.
  2383. //
  2384. // APPIUM_PYTHON_OUTPUT: The Appium Python output type.
  2385. //
  2386. // APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.
  2387. //
  2388. // EXPLORER_EVENT_LOG: The Explorer event log output type.
  2389. //
  2390. // EXPLORER_SUMMARY_LOG: The Explorer summary log output type.
  2391. //
  2392. // APPLICATION_CRASH_REPORT: The application crash report output type.
  2393. //
  2394. // XCTEST_LOG: The XCode test output type.
  2395. Type *string `locationName:"type" type:"string" enum:"ArtifactType"`
  2396. // The pre-signed Amazon S3 URL that can be used with a corresponding GET request
  2397. // to download the artifact's file.
  2398. Url *string `locationName:"url" type:"string"`
  2399. }
  2400. // String returns the string representation
  2401. func (s Artifact) String() string {
  2402. return awsutil.Prettify(s)
  2403. }
  2404. // GoString returns the string representation
  2405. func (s Artifact) GoString() string {
  2406. return s.String()
  2407. }
  2408. // Represents the amount of CPU that an app is using on a physical device.
  2409. //
  2410. // Note that this does not represent system-wide CPU usage.
  2411. type CPU struct {
  2412. _ struct{} `type:"structure"`
  2413. // The CPU's architecture, for example x86 or ARM.
  2414. Architecture *string `locationName:"architecture" type:"string"`
  2415. // The clock speed of the device's CPU, expressed in hertz (Hz). For example,
  2416. // a 1.2 GHz CPU is expressed as 1200000000.
  2417. Clock *float64 `locationName:"clock" type:"double"`
  2418. // The CPU's frequency.
  2419. Frequency *string `locationName:"frequency" type:"string"`
  2420. }
  2421. // String returns the string representation
  2422. func (s CPU) String() string {
  2423. return awsutil.Prettify(s)
  2424. }
  2425. // GoString returns the string representation
  2426. func (s CPU) GoString() string {
  2427. return s.String()
  2428. }
  2429. // Represents entity counters.
  2430. type Counters struct {
  2431. _ struct{} `type:"structure"`
  2432. // The number of errored entities.
  2433. Errored *int64 `locationName:"errored" type:"integer"`
  2434. // The number of failed entities.
  2435. Failed *int64 `locationName:"failed" type:"integer"`
  2436. // The number of passed entities.
  2437. Passed *int64 `locationName:"passed" type:"integer"`
  2438. // The number of skipped entities.
  2439. Skipped *int64 `locationName:"skipped" type:"integer"`
  2440. // The number of stopped entities.
  2441. Stopped *int64 `locationName:"stopped" type:"integer"`
  2442. // The total number of entities.
  2443. Total *int64 `locationName:"total" type:"integer"`
  2444. // The number of warned entities.
  2445. Warned *int64 `locationName:"warned" type:"integer"`
  2446. }
  2447. // String returns the string representation
  2448. func (s Counters) String() string {
  2449. return awsutil.Prettify(s)
  2450. }
  2451. // GoString returns the string representation
  2452. func (s Counters) GoString() string {
  2453. return s.String()
  2454. }
  2455. // Represents a request to the create device pool operation.
  2456. type CreateDevicePoolInput struct {
  2457. _ struct{} `type:"structure"`
  2458. // The device pool's description.
  2459. Description *string `locationName:"description" type:"string"`
  2460. // The device pool's name.
  2461. Name *string `locationName:"name" type:"string" required:"true"`
  2462. // The ARN of the project for the device pool.
  2463. ProjectArn *string `locationName:"projectArn" min:"32" type:"string" required:"true"`
  2464. // The device pool's rules.
  2465. Rules []*Rule `locationName:"rules" type:"list" required:"true"`
  2466. }
  2467. // String returns the string representation
  2468. func (s CreateDevicePoolInput) String() string {
  2469. return awsutil.Prettify(s)
  2470. }
  2471. // GoString returns the string representation
  2472. func (s CreateDevicePoolInput) GoString() string {
  2473. return s.String()
  2474. }
  2475. // Validate inspects the fields of the type to determine if they are valid.
  2476. func (s *CreateDevicePoolInput) Validate() error {
  2477. invalidParams := request.ErrInvalidParams{Context: "CreateDevicePoolInput"}
  2478. if s.Name == nil {
  2479. invalidParams.Add(request.NewErrParamRequired("Name"))
  2480. }
  2481. if s.ProjectArn == nil {
  2482. invalidParams.Add(request.NewErrParamRequired("ProjectArn"))
  2483. }
  2484. if s.ProjectArn != nil && len(*s.ProjectArn) < 32 {
  2485. invalidParams.Add(request.NewErrParamMinLen("ProjectArn", 32))
  2486. }
  2487. if s.Rules == nil {
  2488. invalidParams.Add(request.NewErrParamRequired("Rules"))
  2489. }
  2490. if invalidParams.Len() > 0 {
  2491. return invalidParams
  2492. }
  2493. return nil
  2494. }
  2495. // Represents the result of a create device pool request.
  2496. type CreateDevicePoolOutput struct {
  2497. _ struct{} `type:"structure"`
  2498. // The newly created device pool.
  2499. DevicePool *DevicePool `locationName:"devicePool" type:"structure"`
  2500. }
  2501. // String returns the string representation
  2502. func (s CreateDevicePoolOutput) String() string {
  2503. return awsutil.Prettify(s)
  2504. }
  2505. // GoString returns the string representation
  2506. func (s CreateDevicePoolOutput) GoString() string {
  2507. return s.String()
  2508. }
  2509. // Represents a request to the create project operation.
  2510. type CreateProjectInput struct {
  2511. _ struct{} `type:"structure"`
  2512. // The project's name.
  2513. Name *string `locationName:"name" type:"string" required:"true"`
  2514. }
  2515. // String returns the string representation
  2516. func (s CreateProjectInput) String() string {
  2517. return awsutil.Prettify(s)
  2518. }
  2519. // GoString returns the string representation
  2520. func (s CreateProjectInput) GoString() string {
  2521. return s.String()
  2522. }
  2523. // Validate inspects the fields of the type to determine if they are valid.
  2524. func (s *CreateProjectInput) Validate() error {
  2525. invalidParams := request.ErrInvalidParams{Context: "CreateProjectInput"}
  2526. if s.Name == nil {
  2527. invalidParams.Add(request.NewErrParamRequired("Name"))
  2528. }
  2529. if invalidParams.Len() > 0 {
  2530. return invalidParams
  2531. }
  2532. return nil
  2533. }
  2534. // Represents the result of a create project request.
  2535. type CreateProjectOutput struct {
  2536. _ struct{} `type:"structure"`
  2537. // The newly created project.
  2538. Project *Project `locationName:"project" type:"structure"`
  2539. }
  2540. // String returns the string representation
  2541. func (s CreateProjectOutput) String() string {
  2542. return awsutil.Prettify(s)
  2543. }
  2544. // GoString returns the string representation
  2545. func (s CreateProjectOutput) GoString() string {
  2546. return s.String()
  2547. }
  2548. // Creates the configuration settings for a remote access session, including
  2549. // the device model and type.
  2550. type CreateRemoteAccessSessionConfiguration struct {
  2551. _ struct{} `type:"structure"`
  2552. // Returns the billing method for purposes of configuring a remote access session.
  2553. BillingMethod *string `locationName:"billingMethod" type:"string" enum:"BillingMethod"`
  2554. }
  2555. // String returns the string representation
  2556. func (s CreateRemoteAccessSessionConfiguration) String() string {
  2557. return awsutil.Prettify(s)
  2558. }
  2559. // GoString returns the string representation
  2560. func (s CreateRemoteAccessSessionConfiguration) GoString() string {
  2561. return s.String()
  2562. }
  2563. // Creates and submits a request to start a remote access session.
  2564. type CreateRemoteAccessSessionInput struct {
  2565. _ struct{} `type:"structure"`
  2566. // The configuration information for the remote access session request.
  2567. Configuration *CreateRemoteAccessSessionConfiguration `locationName:"configuration" type:"structure"`
  2568. // The Amazon Resource Name (ARN) of the device for which you want to create
  2569. // a remote access session.
  2570. DeviceArn *string `locationName:"deviceArn" min:"32" type:"string" required:"true"`
  2571. // The name of the remote access session that you wish to create.
  2572. Name *string `locationName:"name" type:"string"`
  2573. // The Amazon Resource Name (ARN) of the project for which you want to create
  2574. // a remote access session.
  2575. ProjectArn *string `locationName:"projectArn" min:"32" type:"string" required:"true"`
  2576. }
  2577. // String returns the string representation
  2578. func (s CreateRemoteAccessSessionInput) String() string {
  2579. return awsutil.Prettify(s)
  2580. }
  2581. // GoString returns the string representation
  2582. func (s CreateRemoteAccessSessionInput) GoString() string {
  2583. return s.String()
  2584. }
  2585. // Validate inspects the fields of the type to determine if they are valid.
  2586. func (s *CreateRemoteAccessSessionInput) Validate() error {
  2587. invalidParams := request.ErrInvalidParams{Context: "CreateRemoteAccessSessionInput"}
  2588. if s.DeviceArn == nil {
  2589. invalidParams.Add(request.NewErrParamRequired("DeviceArn"))
  2590. }
  2591. if s.DeviceArn != nil && len(*s.DeviceArn) < 32 {
  2592. invalidParams.Add(request.NewErrParamMinLen("DeviceArn", 32))
  2593. }
  2594. if s.ProjectArn == nil {
  2595. invalidParams.Add(request.NewErrParamRequired("ProjectArn"))
  2596. }
  2597. if s.ProjectArn != nil && len(*s.ProjectArn) < 32 {
  2598. invalidParams.Add(request.NewErrParamMinLen("ProjectArn", 32))
  2599. }
  2600. if invalidParams.Len() > 0 {
  2601. return invalidParams
  2602. }
  2603. return nil
  2604. }
  2605. // Represents the server response from a request to create a remote access session.
  2606. type CreateRemoteAccessSessionOutput struct {
  2607. _ struct{} `type:"structure"`
  2608. // A container that describes the remote access session when the request to
  2609. // create a remote access session is sent.
  2610. RemoteAccessSession *RemoteAccessSession `locationName:"remoteAccessSession" type:"structure"`
  2611. }
  2612. // String returns the string representation
  2613. func (s CreateRemoteAccessSessionOutput) String() string {
  2614. return awsutil.Prettify(s)
  2615. }
  2616. // GoString returns the string representation
  2617. func (s CreateRemoteAccessSessionOutput) GoString() string {
  2618. return s.String()
  2619. }
  2620. // Represents a request to the create upload operation.
  2621. type CreateUploadInput struct {
  2622. _ struct{} `type:"structure"`
  2623. // The upload's content type (for example, "application/octet-stream").
  2624. ContentType *string `locationName:"contentType" type:"string"`
  2625. // The upload's file name. The name should not contain the '/' character.
  2626. Name *string `locationName:"name" type:"string" required:"true"`
  2627. // The ARN of the project for the upload.
  2628. ProjectArn *string `locationName:"projectArn" min:"32" type:"string" required:"true"`
  2629. // The upload's upload type.
  2630. //
  2631. // Must be one of the following values:
  2632. //
  2633. // ANDROID_APP: An Android upload.
  2634. //
  2635. // IOS_APP: An iOS upload.
  2636. //
  2637. // WEB_APP: A web appliction upload.
  2638. //
  2639. // EXTERNAL_DATA: An external data upload.
  2640. //
  2641. // APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.
  2642. //
  2643. // APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.
  2644. //
  2645. // APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.
  2646. //
  2647. // APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.
  2648. //
  2649. // APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package
  2650. // upload.
  2651. //
  2652. // APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.
  2653. //
  2654. // CALABASH_TEST_PACKAGE: A Calabash test package upload.
  2655. //
  2656. // INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.
  2657. //
  2658. // UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.
  2659. //
  2660. // UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.
  2661. //
  2662. // XCTEST_TEST_PACKAGE: An XCode test package upload.
  2663. //
  2664. // XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.
  2665. //
  2666. // Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws
  2667. // an ArgumentException error.
  2668. Type *string `locationName:"type" type:"string" required:"true" enum:"UploadType"`
  2669. }
  2670. // String returns the string representation
  2671. func (s CreateUploadInput) String() string {
  2672. return awsutil.Prettify(s)
  2673. }
  2674. // GoString returns the string representation
  2675. func (s CreateUploadInput) GoString() string {
  2676. return s.String()
  2677. }
  2678. // Validate inspects the fields of the type to determine if they are valid.
  2679. func (s *CreateUploadInput) Validate() error {
  2680. invalidParams := request.ErrInvalidParams{Context: "CreateUploadInput"}
  2681. if s.Name == nil {
  2682. invalidParams.Add(request.NewErrParamRequired("Name"))
  2683. }
  2684. if s.ProjectArn == nil {
  2685. invalidParams.Add(request.NewErrParamRequired("ProjectArn"))
  2686. }
  2687. if s.ProjectArn != nil && len(*s.ProjectArn) < 32 {
  2688. invalidParams.Add(request.NewErrParamMinLen("ProjectArn", 32))
  2689. }
  2690. if s.Type == nil {
  2691. invalidParams.Add(request.NewErrParamRequired("Type"))
  2692. }
  2693. if invalidParams.Len() > 0 {
  2694. return invalidParams
  2695. }
  2696. return nil
  2697. }
  2698. // Represents the result of a create upload request.
  2699. type CreateUploadOutput struct {
  2700. _ struct{} `type:"structure"`
  2701. // The newly created upload.
  2702. Upload *Upload `locationName:"upload" type:"structure"`
  2703. }
  2704. // String returns the string representation
  2705. func (s CreateUploadOutput) String() string {
  2706. return awsutil.Prettify(s)
  2707. }
  2708. // GoString returns the string representation
  2709. func (s CreateUploadOutput) GoString() string {
  2710. return s.String()
  2711. }
  2712. // Represents a request to the delete device pool operation.
  2713. type DeleteDevicePoolInput struct {
  2714. _ struct{} `type:"structure"`
  2715. // Represents the Amazon Resource Name (ARN) of the Device Farm device pool
  2716. // you wish to delete.
  2717. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  2718. }
  2719. // String returns the string representation
  2720. func (s DeleteDevicePoolInput) String() string {
  2721. return awsutil.Prettify(s)
  2722. }
  2723. // GoString returns the string representation
  2724. func (s DeleteDevicePoolInput) GoString() string {
  2725. return s.String()
  2726. }
  2727. // Validate inspects the fields of the type to determine if they are valid.
  2728. func (s *DeleteDevicePoolInput) Validate() error {
  2729. invalidParams := request.ErrInvalidParams{Context: "DeleteDevicePoolInput"}
  2730. if s.Arn == nil {
  2731. invalidParams.Add(request.NewErrParamRequired("Arn"))
  2732. }
  2733. if s.Arn != nil && len(*s.Arn) < 32 {
  2734. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  2735. }
  2736. if invalidParams.Len() > 0 {
  2737. return invalidParams
  2738. }
  2739. return nil
  2740. }
  2741. // Represents the result of a delete device pool request.
  2742. type DeleteDevicePoolOutput struct {
  2743. _ struct{} `type:"structure"`
  2744. }
  2745. // String returns the string representation
  2746. func (s DeleteDevicePoolOutput) String() string {
  2747. return awsutil.Prettify(s)
  2748. }
  2749. // GoString returns the string representation
  2750. func (s DeleteDevicePoolOutput) GoString() string {
  2751. return s.String()
  2752. }
  2753. // Represents a request to the delete project operation.
  2754. type DeleteProjectInput struct {
  2755. _ struct{} `type:"structure"`
  2756. // Represents the Amazon Resource Name (ARN) of the Device Farm project you
  2757. // wish to delete.
  2758. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  2759. }
  2760. // String returns the string representation
  2761. func (s DeleteProjectInput) String() string {
  2762. return awsutil.Prettify(s)
  2763. }
  2764. // GoString returns the string representation
  2765. func (s DeleteProjectInput) GoString() string {
  2766. return s.String()
  2767. }
  2768. // Validate inspects the fields of the type to determine if they are valid.
  2769. func (s *DeleteProjectInput) Validate() error {
  2770. invalidParams := request.ErrInvalidParams{Context: "DeleteProjectInput"}
  2771. if s.Arn == nil {
  2772. invalidParams.Add(request.NewErrParamRequired("Arn"))
  2773. }
  2774. if s.Arn != nil && len(*s.Arn) < 32 {
  2775. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  2776. }
  2777. if invalidParams.Len() > 0 {
  2778. return invalidParams
  2779. }
  2780. return nil
  2781. }
  2782. // Represents the result of a delete project request.
  2783. type DeleteProjectOutput struct {
  2784. _ struct{} `type:"structure"`
  2785. }
  2786. // String returns the string representation
  2787. func (s DeleteProjectOutput) String() string {
  2788. return awsutil.Prettify(s)
  2789. }
  2790. // GoString returns the string representation
  2791. func (s DeleteProjectOutput) GoString() string {
  2792. return s.String()
  2793. }
  2794. // Represents the request to delete the specified remote access session.
  2795. type DeleteRemoteAccessSessionInput struct {
  2796. _ struct{} `type:"structure"`
  2797. // The Amazon Resource Name (ARN) of the sesssion for which you want to delete
  2798. // remote access.
  2799. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  2800. }
  2801. // String returns the string representation
  2802. func (s DeleteRemoteAccessSessionInput) String() string {
  2803. return awsutil.Prettify(s)
  2804. }
  2805. // GoString returns the string representation
  2806. func (s DeleteRemoteAccessSessionInput) GoString() string {
  2807. return s.String()
  2808. }
  2809. // Validate inspects the fields of the type to determine if they are valid.
  2810. func (s *DeleteRemoteAccessSessionInput) Validate() error {
  2811. invalidParams := request.ErrInvalidParams{Context: "DeleteRemoteAccessSessionInput"}
  2812. if s.Arn == nil {
  2813. invalidParams.Add(request.NewErrParamRequired("Arn"))
  2814. }
  2815. if s.Arn != nil && len(*s.Arn) < 32 {
  2816. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  2817. }
  2818. if invalidParams.Len() > 0 {
  2819. return invalidParams
  2820. }
  2821. return nil
  2822. }
  2823. // The response from the server when a request is made to delete the remote
  2824. // access session.
  2825. type DeleteRemoteAccessSessionOutput struct {
  2826. _ struct{} `type:"structure"`
  2827. }
  2828. // String returns the string representation
  2829. func (s DeleteRemoteAccessSessionOutput) String() string {
  2830. return awsutil.Prettify(s)
  2831. }
  2832. // GoString returns the string representation
  2833. func (s DeleteRemoteAccessSessionOutput) GoString() string {
  2834. return s.String()
  2835. }
  2836. // Represents a request to the delete run operation.
  2837. type DeleteRunInput struct {
  2838. _ struct{} `type:"structure"`
  2839. // The Amazon Resource Name (ARN) for the run you wish to delete.
  2840. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  2841. }
  2842. // String returns the string representation
  2843. func (s DeleteRunInput) String() string {
  2844. return awsutil.Prettify(s)
  2845. }
  2846. // GoString returns the string representation
  2847. func (s DeleteRunInput) GoString() string {
  2848. return s.String()
  2849. }
  2850. // Validate inspects the fields of the type to determine if they are valid.
  2851. func (s *DeleteRunInput) Validate() error {
  2852. invalidParams := request.ErrInvalidParams{Context: "DeleteRunInput"}
  2853. if s.Arn == nil {
  2854. invalidParams.Add(request.NewErrParamRequired("Arn"))
  2855. }
  2856. if s.Arn != nil && len(*s.Arn) < 32 {
  2857. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  2858. }
  2859. if invalidParams.Len() > 0 {
  2860. return invalidParams
  2861. }
  2862. return nil
  2863. }
  2864. // Represents the result of a delete run request.
  2865. type DeleteRunOutput struct {
  2866. _ struct{} `type:"structure"`
  2867. }
  2868. // String returns the string representation
  2869. func (s DeleteRunOutput) String() string {
  2870. return awsutil.Prettify(s)
  2871. }
  2872. // GoString returns the string representation
  2873. func (s DeleteRunOutput) GoString() string {
  2874. return s.String()
  2875. }
  2876. // Represents a request to the delete upload operation.
  2877. type DeleteUploadInput struct {
  2878. _ struct{} `type:"structure"`
  2879. // Represents the Amazon Resource Name (ARN) of the Device Farm upload you wish
  2880. // to delete.
  2881. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  2882. }
  2883. // String returns the string representation
  2884. func (s DeleteUploadInput) String() string {
  2885. return awsutil.Prettify(s)
  2886. }
  2887. // GoString returns the string representation
  2888. func (s DeleteUploadInput) GoString() string {
  2889. return s.String()
  2890. }
  2891. // Validate inspects the fields of the type to determine if they are valid.
  2892. func (s *DeleteUploadInput) Validate() error {
  2893. invalidParams := request.ErrInvalidParams{Context: "DeleteUploadInput"}
  2894. if s.Arn == nil {
  2895. invalidParams.Add(request.NewErrParamRequired("Arn"))
  2896. }
  2897. if s.Arn != nil && len(*s.Arn) < 32 {
  2898. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  2899. }
  2900. if invalidParams.Len() > 0 {
  2901. return invalidParams
  2902. }
  2903. return nil
  2904. }
  2905. // Represents the result of a delete upload request.
  2906. type DeleteUploadOutput struct {
  2907. _ struct{} `type:"structure"`
  2908. }
  2909. // String returns the string representation
  2910. func (s DeleteUploadOutput) String() string {
  2911. return awsutil.Prettify(s)
  2912. }
  2913. // GoString returns the string representation
  2914. func (s DeleteUploadOutput) GoString() string {
  2915. return s.String()
  2916. }
  2917. // Represents a device type that an app is tested against.
  2918. type Device struct {
  2919. _ struct{} `type:"structure"`
  2920. // The device's ARN.
  2921. Arn *string `locationName:"arn" min:"32" type:"string"`
  2922. // The device's carrier.
  2923. Carrier *string `locationName:"carrier" type:"string"`
  2924. // Information about the device's CPU.
  2925. Cpu *CPU `locationName:"cpu" type:"structure"`
  2926. // The name of the fleet to which this device belongs.
  2927. FleetName *string `locationName:"fleetName" type:"string"`
  2928. // The type of fleet to which this device belongs. Possible values for fleet
  2929. // type are PRIVATE and PUBLIC.
  2930. FleetType *string `locationName:"fleetType" type:"string"`
  2931. // The device's form factor.
  2932. //
  2933. // Allowed values include:
  2934. //
  2935. // PHONE: The phone form factor.
  2936. //
  2937. // TABLET: The tablet form factor.
  2938. FormFactor *string `locationName:"formFactor" type:"string" enum:"DeviceFormFactor"`
  2939. // The device's heap size, expressed in bytes.
  2940. HeapSize *int64 `locationName:"heapSize" type:"long"`
  2941. // The device's image name.
  2942. Image *string `locationName:"image" type:"string"`
  2943. // The device's manufacturer name.
  2944. Manufacturer *string `locationName:"manufacturer" type:"string"`
  2945. // The device's total memory size, expressed in bytes.
  2946. Memory *int64 `locationName:"memory" type:"long"`
  2947. // The device's model name.
  2948. Model *string `locationName:"model" type:"string"`
  2949. // The device's display name.
  2950. Name *string `locationName:"name" type:"string"`
  2951. // The device's operating system type.
  2952. Os *string `locationName:"os" type:"string"`
  2953. // The device's platform.
  2954. //
  2955. // Allowed values include:
  2956. //
  2957. // ANDROID: The Android platform.
  2958. //
  2959. // IOS: The iOS platform.
  2960. Platform *string `locationName:"platform" type:"string" enum:"DevicePlatform"`
  2961. // The device's radio.
  2962. Radio *string `locationName:"radio" type:"string"`
  2963. // Specifies whether remote access has been enabled for the specified device.
  2964. RemoteAccessEnabled *bool `locationName:"remoteAccessEnabled" type:"boolean"`
  2965. // Represents the screen resolution of a device in height and width, expressed
  2966. // in pixels.
  2967. Resolution *Resolution `locationName:"resolution" type:"structure"`
  2968. }
  2969. // String returns the string representation
  2970. func (s Device) String() string {
  2971. return awsutil.Prettify(s)
  2972. }
  2973. // GoString returns the string representation
  2974. func (s Device) GoString() string {
  2975. return s.String()
  2976. }
  2977. // Represents the total (metered or unmetered) minutes used by the resource
  2978. // to run tests. Contains the sum of minutes consumed by all children.
  2979. type DeviceMinutes struct {
  2980. _ struct{} `type:"structure"`
  2981. // When specified, represents only the sum of metered minutes used by the resource
  2982. // to run tests.
  2983. Metered *float64 `locationName:"metered" type:"double"`
  2984. // When specified, represents the total minutes used by the resource to run
  2985. // tests.
  2986. Total *float64 `locationName:"total" type:"double"`
  2987. // When specified, represents only the sum of unmetered minutes used by the
  2988. // resource to run tests.
  2989. Unmetered *float64 `locationName:"unmetered" type:"double"`
  2990. }
  2991. // String returns the string representation
  2992. func (s DeviceMinutes) String() string {
  2993. return awsutil.Prettify(s)
  2994. }
  2995. // GoString returns the string representation
  2996. func (s DeviceMinutes) GoString() string {
  2997. return s.String()
  2998. }
  2999. // Represents a collection of device types.
  3000. type DevicePool struct {
  3001. _ struct{} `type:"structure"`
  3002. // The device pool's ARN.
  3003. Arn *string `locationName:"arn" min:"32" type:"string"`
  3004. // The device pool's description.
  3005. Description *string `locationName:"description" type:"string"`
  3006. // The device pool's name.
  3007. Name *string `locationName:"name" type:"string"`
  3008. // Information about the device pool's rules.
  3009. Rules []*Rule `locationName:"rules" type:"list"`
  3010. // The device pool's type.
  3011. //
  3012. // Allowed values include:
  3013. //
  3014. // CURATED: A device pool that is created and managed by AWS Device Farm.
  3015. //
  3016. // PRIVATE: A device pool that is created and managed by the device pool developer.
  3017. Type *string `locationName:"type" type:"string" enum:"DevicePoolType"`
  3018. }
  3019. // String returns the string representation
  3020. func (s DevicePool) String() string {
  3021. return awsutil.Prettify(s)
  3022. }
  3023. // GoString returns the string representation
  3024. func (s DevicePool) GoString() string {
  3025. return s.String()
  3026. }
  3027. // Represents a device pool compatibility result.
  3028. type DevicePoolCompatibilityResult struct {
  3029. _ struct{} `type:"structure"`
  3030. // Whether the result was compatible with the device pool.
  3031. Compatible *bool `locationName:"compatible" type:"boolean"`
  3032. // Represents a device type that an app is tested against.
  3033. Device *Device `locationName:"device" type:"structure"`
  3034. // Information about the compatibility.
  3035. IncompatibilityMessages []*IncompatibilityMessage `locationName:"incompatibilityMessages" type:"list"`
  3036. }
  3037. // String returns the string representation
  3038. func (s DevicePoolCompatibilityResult) String() string {
  3039. return awsutil.Prettify(s)
  3040. }
  3041. // GoString returns the string representation
  3042. func (s DevicePoolCompatibilityResult) GoString() string {
  3043. return s.String()
  3044. }
  3045. // Represents the request sent to retrieve the account settings.
  3046. type GetAccountSettingsInput struct {
  3047. _ struct{} `type:"structure"`
  3048. }
  3049. // String returns the string representation
  3050. func (s GetAccountSettingsInput) String() string {
  3051. return awsutil.Prettify(s)
  3052. }
  3053. // GoString returns the string representation
  3054. func (s GetAccountSettingsInput) GoString() string {
  3055. return s.String()
  3056. }
  3057. // Represents the account settings return values from the GetAccountSettings
  3058. // request.
  3059. type GetAccountSettingsOutput struct {
  3060. _ struct{} `type:"structure"`
  3061. // A container for account-level settings within AWS Device Farm.
  3062. AccountSettings *AccountSettings `locationName:"accountSettings" type:"structure"`
  3063. }
  3064. // String returns the string representation
  3065. func (s GetAccountSettingsOutput) String() string {
  3066. return awsutil.Prettify(s)
  3067. }
  3068. // GoString returns the string representation
  3069. func (s GetAccountSettingsOutput) GoString() string {
  3070. return s.String()
  3071. }
  3072. // Represents a request to the get device request.
  3073. type GetDeviceInput struct {
  3074. _ struct{} `type:"structure"`
  3075. // The device type's ARN.
  3076. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  3077. }
  3078. // String returns the string representation
  3079. func (s GetDeviceInput) String() string {
  3080. return awsutil.Prettify(s)
  3081. }
  3082. // GoString returns the string representation
  3083. func (s GetDeviceInput) GoString() string {
  3084. return s.String()
  3085. }
  3086. // Validate inspects the fields of the type to determine if they are valid.
  3087. func (s *GetDeviceInput) Validate() error {
  3088. invalidParams := request.ErrInvalidParams{Context: "GetDeviceInput"}
  3089. if s.Arn == nil {
  3090. invalidParams.Add(request.NewErrParamRequired("Arn"))
  3091. }
  3092. if s.Arn != nil && len(*s.Arn) < 32 {
  3093. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  3094. }
  3095. if invalidParams.Len() > 0 {
  3096. return invalidParams
  3097. }
  3098. return nil
  3099. }
  3100. // Represents the result of a get device request.
  3101. type GetDeviceOutput struct {
  3102. _ struct{} `type:"structure"`
  3103. // Represents a device type that an app is tested against.
  3104. Device *Device `locationName:"device" type:"structure"`
  3105. }
  3106. // String returns the string representation
  3107. func (s GetDeviceOutput) String() string {
  3108. return awsutil.Prettify(s)
  3109. }
  3110. // GoString returns the string representation
  3111. func (s GetDeviceOutput) GoString() string {
  3112. return s.String()
  3113. }
  3114. // Represents a request to the get device pool compatibility operation.
  3115. type GetDevicePoolCompatibilityInput struct {
  3116. _ struct{} `type:"structure"`
  3117. // The ARN of the app that is associated with the specified device pool.
  3118. AppArn *string `locationName:"appArn" min:"32" type:"string"`
  3119. // The device pool's ARN.
  3120. DevicePoolArn *string `locationName:"devicePoolArn" min:"32" type:"string" required:"true"`
  3121. // The test type for the specified device pool.
  3122. //
  3123. // Allowed values include the following:
  3124. //
  3125. // BUILTIN_FUZZ: The built-in fuzz type.
  3126. //
  3127. // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android
  3128. // app, interacting with it and capturing screenshots at the same time.
  3129. //
  3130. // APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
  3131. //
  3132. // APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
  3133. //
  3134. // APPIUM_PYTHON: The Appium Python type.
  3135. //
  3136. // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
  3137. //
  3138. // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
  3139. //
  3140. // APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
  3141. //
  3142. // CALABASH: The Calabash type.
  3143. //
  3144. // INSTRUMENTATION: The Instrumentation type.
  3145. //
  3146. // UIAUTOMATION: The uiautomation type.
  3147. //
  3148. // UIAUTOMATOR: The uiautomator type.
  3149. //
  3150. // XCTEST: The XCode test type.
  3151. //
  3152. // XCTEST_UI: The XCode UI test type.
  3153. TestType *string `locationName:"testType" type:"string" enum:"TestType"`
  3154. }
  3155. // String returns the string representation
  3156. func (s GetDevicePoolCompatibilityInput) String() string {
  3157. return awsutil.Prettify(s)
  3158. }
  3159. // GoString returns the string representation
  3160. func (s GetDevicePoolCompatibilityInput) GoString() string {
  3161. return s.String()
  3162. }
  3163. // Validate inspects the fields of the type to determine if they are valid.
  3164. func (s *GetDevicePoolCompatibilityInput) Validate() error {
  3165. invalidParams := request.ErrInvalidParams{Context: "GetDevicePoolCompatibilityInput"}
  3166. if s.AppArn != nil && len(*s.AppArn) < 32 {
  3167. invalidParams.Add(request.NewErrParamMinLen("AppArn", 32))
  3168. }
  3169. if s.DevicePoolArn == nil {
  3170. invalidParams.Add(request.NewErrParamRequired("DevicePoolArn"))
  3171. }
  3172. if s.DevicePoolArn != nil && len(*s.DevicePoolArn) < 32 {
  3173. invalidParams.Add(request.NewErrParamMinLen("DevicePoolArn", 32))
  3174. }
  3175. if invalidParams.Len() > 0 {
  3176. return invalidParams
  3177. }
  3178. return nil
  3179. }
  3180. // Represents the result of describe device pool compatibility request.
  3181. type GetDevicePoolCompatibilityOutput struct {
  3182. _ struct{} `type:"structure"`
  3183. // Information about compatible devices.
  3184. CompatibleDevices []*DevicePoolCompatibilityResult `locationName:"compatibleDevices" type:"list"`
  3185. // Information about incompatible devices.
  3186. IncompatibleDevices []*DevicePoolCompatibilityResult `locationName:"incompatibleDevices" type:"list"`
  3187. }
  3188. // String returns the string representation
  3189. func (s GetDevicePoolCompatibilityOutput) String() string {
  3190. return awsutil.Prettify(s)
  3191. }
  3192. // GoString returns the string representation
  3193. func (s GetDevicePoolCompatibilityOutput) GoString() string {
  3194. return s.String()
  3195. }
  3196. // Represents a request to the get device pool operation.
  3197. type GetDevicePoolInput struct {
  3198. _ struct{} `type:"structure"`
  3199. // The device pool's ARN.
  3200. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  3201. }
  3202. // String returns the string representation
  3203. func (s GetDevicePoolInput) String() string {
  3204. return awsutil.Prettify(s)
  3205. }
  3206. // GoString returns the string representation
  3207. func (s GetDevicePoolInput) GoString() string {
  3208. return s.String()
  3209. }
  3210. // Validate inspects the fields of the type to determine if they are valid.
  3211. func (s *GetDevicePoolInput) Validate() error {
  3212. invalidParams := request.ErrInvalidParams{Context: "GetDevicePoolInput"}
  3213. if s.Arn == nil {
  3214. invalidParams.Add(request.NewErrParamRequired("Arn"))
  3215. }
  3216. if s.Arn != nil && len(*s.Arn) < 32 {
  3217. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  3218. }
  3219. if invalidParams.Len() > 0 {
  3220. return invalidParams
  3221. }
  3222. return nil
  3223. }
  3224. // Represents the result of a get device pool request.
  3225. type GetDevicePoolOutput struct {
  3226. _ struct{} `type:"structure"`
  3227. // Represents a collection of device types.
  3228. DevicePool *DevicePool `locationName:"devicePool" type:"structure"`
  3229. }
  3230. // String returns the string representation
  3231. func (s GetDevicePoolOutput) String() string {
  3232. return awsutil.Prettify(s)
  3233. }
  3234. // GoString returns the string representation
  3235. func (s GetDevicePoolOutput) GoString() string {
  3236. return s.String()
  3237. }
  3238. // Represents a request to the get job operation.
  3239. type GetJobInput struct {
  3240. _ struct{} `type:"structure"`
  3241. // The job's ARN.
  3242. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  3243. }
  3244. // String returns the string representation
  3245. func (s GetJobInput) String() string {
  3246. return awsutil.Prettify(s)
  3247. }
  3248. // GoString returns the string representation
  3249. func (s GetJobInput) GoString() string {
  3250. return s.String()
  3251. }
  3252. // Validate inspects the fields of the type to determine if they are valid.
  3253. func (s *GetJobInput) Validate() error {
  3254. invalidParams := request.ErrInvalidParams{Context: "GetJobInput"}
  3255. if s.Arn == nil {
  3256. invalidParams.Add(request.NewErrParamRequired("Arn"))
  3257. }
  3258. if s.Arn != nil && len(*s.Arn) < 32 {
  3259. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  3260. }
  3261. if invalidParams.Len() > 0 {
  3262. return invalidParams
  3263. }
  3264. return nil
  3265. }
  3266. // Represents the result of a get job request.
  3267. type GetJobOutput struct {
  3268. _ struct{} `type:"structure"`
  3269. // Represents a device.
  3270. Job *Job `locationName:"job" type:"structure"`
  3271. }
  3272. // String returns the string representation
  3273. func (s GetJobOutput) String() string {
  3274. return awsutil.Prettify(s)
  3275. }
  3276. // GoString returns the string representation
  3277. func (s GetJobOutput) GoString() string {
  3278. return s.String()
  3279. }
  3280. // Represents the request to retrieve the offering status for the specified
  3281. // customer or account.
  3282. type GetOfferingStatusInput struct {
  3283. _ struct{} `type:"structure"`
  3284. // An identifier that was returned from the previous call to this operation,
  3285. // which can be used to return the next set of items in the list.
  3286. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  3287. }
  3288. // String returns the string representation
  3289. func (s GetOfferingStatusInput) String() string {
  3290. return awsutil.Prettify(s)
  3291. }
  3292. // GoString returns the string representation
  3293. func (s GetOfferingStatusInput) GoString() string {
  3294. return s.String()
  3295. }
  3296. // Validate inspects the fields of the type to determine if they are valid.
  3297. func (s *GetOfferingStatusInput) Validate() error {
  3298. invalidParams := request.ErrInvalidParams{Context: "GetOfferingStatusInput"}
  3299. if s.NextToken != nil && len(*s.NextToken) < 4 {
  3300. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  3301. }
  3302. if invalidParams.Len() > 0 {
  3303. return invalidParams
  3304. }
  3305. return nil
  3306. }
  3307. // Returns the status result for a device offering.
  3308. type GetOfferingStatusOutput struct {
  3309. _ struct{} `type:"structure"`
  3310. // When specified, gets the offering status for the current period.
  3311. Current map[string]*OfferingStatus `locationName:"current" type:"map"`
  3312. // When specified, gets the offering status for the next period.
  3313. NextPeriod map[string]*OfferingStatus `locationName:"nextPeriod" type:"map"`
  3314. // An identifier that was returned from the previous call to this operation,
  3315. // which can be used to return the next set of items in the list.
  3316. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  3317. }
  3318. // String returns the string representation
  3319. func (s GetOfferingStatusOutput) String() string {
  3320. return awsutil.Prettify(s)
  3321. }
  3322. // GoString returns the string representation
  3323. func (s GetOfferingStatusOutput) GoString() string {
  3324. return s.String()
  3325. }
  3326. // Represents a request to the get project operation.
  3327. type GetProjectInput struct {
  3328. _ struct{} `type:"structure"`
  3329. // The project's ARN.
  3330. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  3331. }
  3332. // String returns the string representation
  3333. func (s GetProjectInput) String() string {
  3334. return awsutil.Prettify(s)
  3335. }
  3336. // GoString returns the string representation
  3337. func (s GetProjectInput) GoString() string {
  3338. return s.String()
  3339. }
  3340. // Validate inspects the fields of the type to determine if they are valid.
  3341. func (s *GetProjectInput) Validate() error {
  3342. invalidParams := request.ErrInvalidParams{Context: "GetProjectInput"}
  3343. if s.Arn == nil {
  3344. invalidParams.Add(request.NewErrParamRequired("Arn"))
  3345. }
  3346. if s.Arn != nil && len(*s.Arn) < 32 {
  3347. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  3348. }
  3349. if invalidParams.Len() > 0 {
  3350. return invalidParams
  3351. }
  3352. return nil
  3353. }
  3354. // Represents the result of a get project request.
  3355. type GetProjectOutput struct {
  3356. _ struct{} `type:"structure"`
  3357. // Represents an operating-system neutral workspace for running and managing
  3358. // tests.
  3359. Project *Project `locationName:"project" type:"structure"`
  3360. }
  3361. // String returns the string representation
  3362. func (s GetProjectOutput) String() string {
  3363. return awsutil.Prettify(s)
  3364. }
  3365. // GoString returns the string representation
  3366. func (s GetProjectOutput) GoString() string {
  3367. return s.String()
  3368. }
  3369. // Represents the request to get information about the specified remote access
  3370. // session.
  3371. type GetRemoteAccessSessionInput struct {
  3372. _ struct{} `type:"structure"`
  3373. // The Amazon Resource Name (ARN) of the remote access session about which you
  3374. // want to get session information.
  3375. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  3376. }
  3377. // String returns the string representation
  3378. func (s GetRemoteAccessSessionInput) String() string {
  3379. return awsutil.Prettify(s)
  3380. }
  3381. // GoString returns the string representation
  3382. func (s GetRemoteAccessSessionInput) GoString() string {
  3383. return s.String()
  3384. }
  3385. // Validate inspects the fields of the type to determine if they are valid.
  3386. func (s *GetRemoteAccessSessionInput) Validate() error {
  3387. invalidParams := request.ErrInvalidParams{Context: "GetRemoteAccessSessionInput"}
  3388. if s.Arn == nil {
  3389. invalidParams.Add(request.NewErrParamRequired("Arn"))
  3390. }
  3391. if s.Arn != nil && len(*s.Arn) < 32 {
  3392. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  3393. }
  3394. if invalidParams.Len() > 0 {
  3395. return invalidParams
  3396. }
  3397. return nil
  3398. }
  3399. // Represents the response from the server that lists detailed information about
  3400. // the remote access session.
  3401. type GetRemoteAccessSessionOutput struct {
  3402. _ struct{} `type:"structure"`
  3403. // A container that lists detailed information about the remote access session.
  3404. RemoteAccessSession *RemoteAccessSession `locationName:"remoteAccessSession" type:"structure"`
  3405. }
  3406. // String returns the string representation
  3407. func (s GetRemoteAccessSessionOutput) String() string {
  3408. return awsutil.Prettify(s)
  3409. }
  3410. // GoString returns the string representation
  3411. func (s GetRemoteAccessSessionOutput) GoString() string {
  3412. return s.String()
  3413. }
  3414. // Represents a request to the get run operation.
  3415. type GetRunInput struct {
  3416. _ struct{} `type:"structure"`
  3417. // The run's ARN.
  3418. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  3419. }
  3420. // String returns the string representation
  3421. func (s GetRunInput) String() string {
  3422. return awsutil.Prettify(s)
  3423. }
  3424. // GoString returns the string representation
  3425. func (s GetRunInput) GoString() string {
  3426. return s.String()
  3427. }
  3428. // Validate inspects the fields of the type to determine if they are valid.
  3429. func (s *GetRunInput) Validate() error {
  3430. invalidParams := request.ErrInvalidParams{Context: "GetRunInput"}
  3431. if s.Arn == nil {
  3432. invalidParams.Add(request.NewErrParamRequired("Arn"))
  3433. }
  3434. if s.Arn != nil && len(*s.Arn) < 32 {
  3435. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  3436. }
  3437. if invalidParams.Len() > 0 {
  3438. return invalidParams
  3439. }
  3440. return nil
  3441. }
  3442. // Represents the result of a get run request.
  3443. type GetRunOutput struct {
  3444. _ struct{} `type:"structure"`
  3445. // Represents an app on a set of devices with a specific test and configuration.
  3446. Run *Run `locationName:"run" type:"structure"`
  3447. }
  3448. // String returns the string representation
  3449. func (s GetRunOutput) String() string {
  3450. return awsutil.Prettify(s)
  3451. }
  3452. // GoString returns the string representation
  3453. func (s GetRunOutput) GoString() string {
  3454. return s.String()
  3455. }
  3456. // Represents a request to the get suite operation.
  3457. type GetSuiteInput struct {
  3458. _ struct{} `type:"structure"`
  3459. // The suite's ARN.
  3460. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  3461. }
  3462. // String returns the string representation
  3463. func (s GetSuiteInput) String() string {
  3464. return awsutil.Prettify(s)
  3465. }
  3466. // GoString returns the string representation
  3467. func (s GetSuiteInput) GoString() string {
  3468. return s.String()
  3469. }
  3470. // Validate inspects the fields of the type to determine if they are valid.
  3471. func (s *GetSuiteInput) Validate() error {
  3472. invalidParams := request.ErrInvalidParams{Context: "GetSuiteInput"}
  3473. if s.Arn == nil {
  3474. invalidParams.Add(request.NewErrParamRequired("Arn"))
  3475. }
  3476. if s.Arn != nil && len(*s.Arn) < 32 {
  3477. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  3478. }
  3479. if invalidParams.Len() > 0 {
  3480. return invalidParams
  3481. }
  3482. return nil
  3483. }
  3484. // Represents the result of a get suite request.
  3485. type GetSuiteOutput struct {
  3486. _ struct{} `type:"structure"`
  3487. // Represents a collection of one or more tests.
  3488. Suite *Suite `locationName:"suite" type:"structure"`
  3489. }
  3490. // String returns the string representation
  3491. func (s GetSuiteOutput) String() string {
  3492. return awsutil.Prettify(s)
  3493. }
  3494. // GoString returns the string representation
  3495. func (s GetSuiteOutput) GoString() string {
  3496. return s.String()
  3497. }
  3498. // Represents a request to the get test operation.
  3499. type GetTestInput struct {
  3500. _ struct{} `type:"structure"`
  3501. // The test's ARN.
  3502. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  3503. }
  3504. // String returns the string representation
  3505. func (s GetTestInput) String() string {
  3506. return awsutil.Prettify(s)
  3507. }
  3508. // GoString returns the string representation
  3509. func (s GetTestInput) GoString() string {
  3510. return s.String()
  3511. }
  3512. // Validate inspects the fields of the type to determine if they are valid.
  3513. func (s *GetTestInput) Validate() error {
  3514. invalidParams := request.ErrInvalidParams{Context: "GetTestInput"}
  3515. if s.Arn == nil {
  3516. invalidParams.Add(request.NewErrParamRequired("Arn"))
  3517. }
  3518. if s.Arn != nil && len(*s.Arn) < 32 {
  3519. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  3520. }
  3521. if invalidParams.Len() > 0 {
  3522. return invalidParams
  3523. }
  3524. return nil
  3525. }
  3526. // Represents the result of a get test request.
  3527. type GetTestOutput struct {
  3528. _ struct{} `type:"structure"`
  3529. // Represents a condition that is evaluated.
  3530. Test *Test `locationName:"test" type:"structure"`
  3531. }
  3532. // String returns the string representation
  3533. func (s GetTestOutput) String() string {
  3534. return awsutil.Prettify(s)
  3535. }
  3536. // GoString returns the string representation
  3537. func (s GetTestOutput) GoString() string {
  3538. return s.String()
  3539. }
  3540. // Represents a request to the get upload operation.
  3541. type GetUploadInput struct {
  3542. _ struct{} `type:"structure"`
  3543. // The upload's ARN.
  3544. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  3545. }
  3546. // String returns the string representation
  3547. func (s GetUploadInput) String() string {
  3548. return awsutil.Prettify(s)
  3549. }
  3550. // GoString returns the string representation
  3551. func (s GetUploadInput) GoString() string {
  3552. return s.String()
  3553. }
  3554. // Validate inspects the fields of the type to determine if they are valid.
  3555. func (s *GetUploadInput) Validate() error {
  3556. invalidParams := request.ErrInvalidParams{Context: "GetUploadInput"}
  3557. if s.Arn == nil {
  3558. invalidParams.Add(request.NewErrParamRequired("Arn"))
  3559. }
  3560. if s.Arn != nil && len(*s.Arn) < 32 {
  3561. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  3562. }
  3563. if invalidParams.Len() > 0 {
  3564. return invalidParams
  3565. }
  3566. return nil
  3567. }
  3568. // Represents the result of a get upload request.
  3569. type GetUploadOutput struct {
  3570. _ struct{} `type:"structure"`
  3571. // An app or a set of one or more tests to upload or that have been uploaded.
  3572. Upload *Upload `locationName:"upload" type:"structure"`
  3573. }
  3574. // String returns the string representation
  3575. func (s GetUploadOutput) String() string {
  3576. return awsutil.Prettify(s)
  3577. }
  3578. // GoString returns the string representation
  3579. func (s GetUploadOutput) GoString() string {
  3580. return s.String()
  3581. }
  3582. // Represents information about incompatibility.
  3583. type IncompatibilityMessage struct {
  3584. _ struct{} `type:"structure"`
  3585. // A message about the incompatibility.
  3586. Message *string `locationName:"message" type:"string"`
  3587. // The type of incompatibility.
  3588. //
  3589. // Allowed values include:
  3590. //
  3591. // ARN: The ARN.
  3592. //
  3593. // FORM_FACTOR: The form factor (for example, phone or tablet).
  3594. //
  3595. // MANUFACTURER: The manufacturer.
  3596. //
  3597. // PLATFORM: The platform (for example, Android or iOS).
  3598. Type *string `locationName:"type" type:"string" enum:"DeviceAttribute"`
  3599. }
  3600. // String returns the string representation
  3601. func (s IncompatibilityMessage) String() string {
  3602. return awsutil.Prettify(s)
  3603. }
  3604. // GoString returns the string representation
  3605. func (s IncompatibilityMessage) GoString() string {
  3606. return s.String()
  3607. }
  3608. // Represents the request to install an Android application (in .apk format)
  3609. // or an iOS application (in .ipa format) as part of a remote access session.
  3610. type InstallToRemoteAccessSessionInput struct {
  3611. _ struct{} `type:"structure"`
  3612. // The Amazon Resource Name (ARN) of the app about which you are requesting
  3613. // information.
  3614. AppArn *string `locationName:"appArn" min:"32" type:"string" required:"true"`
  3615. // The Amazon Resource Name (ARN) of the remote access session about which you
  3616. // are requesting information.
  3617. RemoteAccessSessionArn *string `locationName:"remoteAccessSessionArn" min:"32" type:"string" required:"true"`
  3618. }
  3619. // String returns the string representation
  3620. func (s InstallToRemoteAccessSessionInput) String() string {
  3621. return awsutil.Prettify(s)
  3622. }
  3623. // GoString returns the string representation
  3624. func (s InstallToRemoteAccessSessionInput) GoString() string {
  3625. return s.String()
  3626. }
  3627. // Validate inspects the fields of the type to determine if they are valid.
  3628. func (s *InstallToRemoteAccessSessionInput) Validate() error {
  3629. invalidParams := request.ErrInvalidParams{Context: "InstallToRemoteAccessSessionInput"}
  3630. if s.AppArn == nil {
  3631. invalidParams.Add(request.NewErrParamRequired("AppArn"))
  3632. }
  3633. if s.AppArn != nil && len(*s.AppArn) < 32 {
  3634. invalidParams.Add(request.NewErrParamMinLen("AppArn", 32))
  3635. }
  3636. if s.RemoteAccessSessionArn == nil {
  3637. invalidParams.Add(request.NewErrParamRequired("RemoteAccessSessionArn"))
  3638. }
  3639. if s.RemoteAccessSessionArn != nil && len(*s.RemoteAccessSessionArn) < 32 {
  3640. invalidParams.Add(request.NewErrParamMinLen("RemoteAccessSessionArn", 32))
  3641. }
  3642. if invalidParams.Len() > 0 {
  3643. return invalidParams
  3644. }
  3645. return nil
  3646. }
  3647. // Represents the response from the server after AWS Device Farm makes a request
  3648. // to install to a remote access session.
  3649. type InstallToRemoteAccessSessionOutput struct {
  3650. _ struct{} `type:"structure"`
  3651. // An app or a set of one or more tests to upload or that have been uploaded.
  3652. AppUpload *Upload `locationName:"appUpload" type:"structure"`
  3653. }
  3654. // String returns the string representation
  3655. func (s InstallToRemoteAccessSessionOutput) String() string {
  3656. return awsutil.Prettify(s)
  3657. }
  3658. // GoString returns the string representation
  3659. func (s InstallToRemoteAccessSessionOutput) GoString() string {
  3660. return s.String()
  3661. }
  3662. // Represents a device.
  3663. type Job struct {
  3664. _ struct{} `type:"structure"`
  3665. // The job's ARN.
  3666. Arn *string `locationName:"arn" min:"32" type:"string"`
  3667. // The job's result counters.
  3668. Counters *Counters `locationName:"counters" type:"structure"`
  3669. // When the job was created.
  3670. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  3671. // Represents a device type that an app is tested against.
  3672. Device *Device `locationName:"device" type:"structure"`
  3673. // Represents the total (metered or unmetered) minutes used by the job.
  3674. DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"`
  3675. // A message about the job's result.
  3676. Message *string `locationName:"message" type:"string"`
  3677. // The job's name.
  3678. Name *string `locationName:"name" type:"string"`
  3679. // The job's result.
  3680. //
  3681. // Allowed values include:
  3682. //
  3683. // PENDING: A pending condition.
  3684. //
  3685. // PASSED: A passing condition.
  3686. //
  3687. // WARNED: A warning condition.
  3688. //
  3689. // FAILED: A failed condition.
  3690. //
  3691. // SKIPPED: A skipped condition.
  3692. //
  3693. // ERRORED: An error condition.
  3694. //
  3695. // STOPPED: A stopped condition.
  3696. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"`
  3697. // The job's start time.
  3698. Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
  3699. // The job's status.
  3700. //
  3701. // Allowed values include:
  3702. //
  3703. // PENDING: A pending status.
  3704. //
  3705. // PENDING_CONCURRENCY: A pending concurrency status.
  3706. //
  3707. // PENDING_DEVICE: A pending device status.
  3708. //
  3709. // PROCESSING: A processing status.
  3710. //
  3711. // SCHEDULING: A scheduling status.
  3712. //
  3713. // PREPARING: A preparing status.
  3714. //
  3715. // RUNNING: A running status.
  3716. //
  3717. // COMPLETED: A completed status.
  3718. //
  3719. // STOPPING: A stopping status.
  3720. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"`
  3721. // The job's stop time.
  3722. Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
  3723. // The job's type.
  3724. //
  3725. // Allowed values include the following:
  3726. //
  3727. // BUILTIN_FUZZ: The built-in fuzz type.
  3728. //
  3729. // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android
  3730. // app, interacting with it and capturing screenshots at the same time.
  3731. //
  3732. // APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
  3733. //
  3734. // APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
  3735. //
  3736. // APPIUM_PYTHON: The Appium Python type.
  3737. //
  3738. // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
  3739. //
  3740. // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
  3741. //
  3742. // APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
  3743. //
  3744. // CALABASH: The Calabash type.
  3745. //
  3746. // INSTRUMENTATION: The Instrumentation type.
  3747. //
  3748. // UIAUTOMATION: The uiautomation type.
  3749. //
  3750. // UIAUTOMATOR: The uiautomator type.
  3751. //
  3752. // XCTEST: The XCode test type.
  3753. //
  3754. // XCTEST_UI: The XCode UI test type.
  3755. Type *string `locationName:"type" type:"string" enum:"TestType"`
  3756. }
  3757. // String returns the string representation
  3758. func (s Job) String() string {
  3759. return awsutil.Prettify(s)
  3760. }
  3761. // GoString returns the string representation
  3762. func (s Job) GoString() string {
  3763. return s.String()
  3764. }
  3765. // Represents a request to the list artifacts operation.
  3766. type ListArtifactsInput struct {
  3767. _ struct{} `type:"structure"`
  3768. // The Run, Job, Suite, or Test ARN.
  3769. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  3770. // An identifier that was returned from the previous call to this operation,
  3771. // which can be used to return the next set of items in the list.
  3772. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  3773. // The artifacts' type.
  3774. //
  3775. // Allowed values include:
  3776. //
  3777. // FILE: The artifacts are files. LOG: The artifacts are logs. SCREENSHOT:
  3778. // The artifacts are screenshots.
  3779. Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactCategory"`
  3780. }
  3781. // String returns the string representation
  3782. func (s ListArtifactsInput) String() string {
  3783. return awsutil.Prettify(s)
  3784. }
  3785. // GoString returns the string representation
  3786. func (s ListArtifactsInput) GoString() string {
  3787. return s.String()
  3788. }
  3789. // Validate inspects the fields of the type to determine if they are valid.
  3790. func (s *ListArtifactsInput) Validate() error {
  3791. invalidParams := request.ErrInvalidParams{Context: "ListArtifactsInput"}
  3792. if s.Arn == nil {
  3793. invalidParams.Add(request.NewErrParamRequired("Arn"))
  3794. }
  3795. if s.Arn != nil && len(*s.Arn) < 32 {
  3796. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  3797. }
  3798. if s.NextToken != nil && len(*s.NextToken) < 4 {
  3799. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  3800. }
  3801. if s.Type == nil {
  3802. invalidParams.Add(request.NewErrParamRequired("Type"))
  3803. }
  3804. if invalidParams.Len() > 0 {
  3805. return invalidParams
  3806. }
  3807. return nil
  3808. }
  3809. // Represents the result of a list artifacts operation.
  3810. type ListArtifactsOutput struct {
  3811. _ struct{} `type:"structure"`
  3812. // Information about the artifacts.
  3813. Artifacts []*Artifact `locationName:"artifacts" type:"list"`
  3814. // If the number of items that are returned is significantly large, this is
  3815. // an identifier that is also returned, which can be used in a subsequent call
  3816. // to this operation to return the next set of items in the list.
  3817. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  3818. }
  3819. // String returns the string representation
  3820. func (s ListArtifactsOutput) String() string {
  3821. return awsutil.Prettify(s)
  3822. }
  3823. // GoString returns the string representation
  3824. func (s ListArtifactsOutput) GoString() string {
  3825. return s.String()
  3826. }
  3827. // Represents the result of a list device pools request.
  3828. type ListDevicePoolsInput struct {
  3829. _ struct{} `type:"structure"`
  3830. // The project ARN.
  3831. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  3832. // An identifier that was returned from the previous call to this operation,
  3833. // which can be used to return the next set of items in the list.
  3834. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  3835. // The device pools' type.
  3836. //
  3837. // Allowed values include:
  3838. //
  3839. // CURATED: A device pool that is created and managed by AWS Device Farm.
  3840. //
  3841. // PRIVATE: A device pool that is created and managed by the device pool developer.
  3842. Type *string `locationName:"type" type:"string" enum:"DevicePoolType"`
  3843. }
  3844. // String returns the string representation
  3845. func (s ListDevicePoolsInput) String() string {
  3846. return awsutil.Prettify(s)
  3847. }
  3848. // GoString returns the string representation
  3849. func (s ListDevicePoolsInput) GoString() string {
  3850. return s.String()
  3851. }
  3852. // Validate inspects the fields of the type to determine if they are valid.
  3853. func (s *ListDevicePoolsInput) Validate() error {
  3854. invalidParams := request.ErrInvalidParams{Context: "ListDevicePoolsInput"}
  3855. if s.Arn == nil {
  3856. invalidParams.Add(request.NewErrParamRequired("Arn"))
  3857. }
  3858. if s.Arn != nil && len(*s.Arn) < 32 {
  3859. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  3860. }
  3861. if s.NextToken != nil && len(*s.NextToken) < 4 {
  3862. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  3863. }
  3864. if invalidParams.Len() > 0 {
  3865. return invalidParams
  3866. }
  3867. return nil
  3868. }
  3869. // Represents the result of a list device pools request.
  3870. type ListDevicePoolsOutput struct {
  3871. _ struct{} `type:"structure"`
  3872. // Information about the device pools.
  3873. DevicePools []*DevicePool `locationName:"devicePools" type:"list"`
  3874. // If the number of items that are returned is significantly large, this is
  3875. // an identifier that is also returned, which can be used in a subsequent call
  3876. // to this operation to return the next set of items in the list.
  3877. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  3878. }
  3879. // String returns the string representation
  3880. func (s ListDevicePoolsOutput) String() string {
  3881. return awsutil.Prettify(s)
  3882. }
  3883. // GoString returns the string representation
  3884. func (s ListDevicePoolsOutput) GoString() string {
  3885. return s.String()
  3886. }
  3887. // Represents the result of a list devices request.
  3888. type ListDevicesInput struct {
  3889. _ struct{} `type:"structure"`
  3890. // The device types' ARNs.
  3891. Arn *string `locationName:"arn" min:"32" type:"string"`
  3892. // An identifier that was returned from the previous call to this operation,
  3893. // which can be used to return the next set of items in the list.
  3894. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  3895. }
  3896. // String returns the string representation
  3897. func (s ListDevicesInput) String() string {
  3898. return awsutil.Prettify(s)
  3899. }
  3900. // GoString returns the string representation
  3901. func (s ListDevicesInput) GoString() string {
  3902. return s.String()
  3903. }
  3904. // Validate inspects the fields of the type to determine if they are valid.
  3905. func (s *ListDevicesInput) Validate() error {
  3906. invalidParams := request.ErrInvalidParams{Context: "ListDevicesInput"}
  3907. if s.Arn != nil && len(*s.Arn) < 32 {
  3908. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  3909. }
  3910. if s.NextToken != nil && len(*s.NextToken) < 4 {
  3911. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  3912. }
  3913. if invalidParams.Len() > 0 {
  3914. return invalidParams
  3915. }
  3916. return nil
  3917. }
  3918. // Represents the result of a list devices operation.
  3919. type ListDevicesOutput struct {
  3920. _ struct{} `type:"structure"`
  3921. // Information about the devices.
  3922. Devices []*Device `locationName:"devices" type:"list"`
  3923. // If the number of items that are returned is significantly large, this is
  3924. // an identifier that is also returned, which can be used in a subsequent call
  3925. // to this operation to return the next set of items in the list.
  3926. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  3927. }
  3928. // String returns the string representation
  3929. func (s ListDevicesOutput) String() string {
  3930. return awsutil.Prettify(s)
  3931. }
  3932. // GoString returns the string representation
  3933. func (s ListDevicesOutput) GoString() string {
  3934. return s.String()
  3935. }
  3936. // Represents a request to the list jobs operation.
  3937. type ListJobsInput struct {
  3938. _ struct{} `type:"structure"`
  3939. // The jobs' ARNs.
  3940. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  3941. // An identifier that was returned from the previous call to this operation,
  3942. // which can be used to return the next set of items in the list.
  3943. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  3944. }
  3945. // String returns the string representation
  3946. func (s ListJobsInput) String() string {
  3947. return awsutil.Prettify(s)
  3948. }
  3949. // GoString returns the string representation
  3950. func (s ListJobsInput) GoString() string {
  3951. return s.String()
  3952. }
  3953. // Validate inspects the fields of the type to determine if they are valid.
  3954. func (s *ListJobsInput) Validate() error {
  3955. invalidParams := request.ErrInvalidParams{Context: "ListJobsInput"}
  3956. if s.Arn == nil {
  3957. invalidParams.Add(request.NewErrParamRequired("Arn"))
  3958. }
  3959. if s.Arn != nil && len(*s.Arn) < 32 {
  3960. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  3961. }
  3962. if s.NextToken != nil && len(*s.NextToken) < 4 {
  3963. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  3964. }
  3965. if invalidParams.Len() > 0 {
  3966. return invalidParams
  3967. }
  3968. return nil
  3969. }
  3970. // Represents the result of a list jobs request.
  3971. type ListJobsOutput struct {
  3972. _ struct{} `type:"structure"`
  3973. // Information about the jobs.
  3974. Jobs []*Job `locationName:"jobs" type:"list"`
  3975. // If the number of items that are returned is significantly large, this is
  3976. // an identifier that is also returned, which can be used in a subsequent call
  3977. // to this operation to return the next set of items in the list.
  3978. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  3979. }
  3980. // String returns the string representation
  3981. func (s ListJobsOutput) String() string {
  3982. return awsutil.Prettify(s)
  3983. }
  3984. // GoString returns the string representation
  3985. func (s ListJobsOutput) GoString() string {
  3986. return s.String()
  3987. }
  3988. // Represents the request to list the offering transaction history.
  3989. type ListOfferingTransactionsInput struct {
  3990. _ struct{} `type:"structure"`
  3991. // An identifier that was returned from the previous call to this operation,
  3992. // which can be used to return the next set of items in the list.
  3993. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  3994. }
  3995. // String returns the string representation
  3996. func (s ListOfferingTransactionsInput) String() string {
  3997. return awsutil.Prettify(s)
  3998. }
  3999. // GoString returns the string representation
  4000. func (s ListOfferingTransactionsInput) GoString() string {
  4001. return s.String()
  4002. }
  4003. // Validate inspects the fields of the type to determine if they are valid.
  4004. func (s *ListOfferingTransactionsInput) Validate() error {
  4005. invalidParams := request.ErrInvalidParams{Context: "ListOfferingTransactionsInput"}
  4006. if s.NextToken != nil && len(*s.NextToken) < 4 {
  4007. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  4008. }
  4009. if invalidParams.Len() > 0 {
  4010. return invalidParams
  4011. }
  4012. return nil
  4013. }
  4014. // Returns the transaction log of the specified offerings.
  4015. type ListOfferingTransactionsOutput struct {
  4016. _ struct{} `type:"structure"`
  4017. // An identifier that was returned from the previous call to this operation,
  4018. // which can be used to return the next set of items in the list.
  4019. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4020. // The audit log of subscriptions you have purchased and modified through AWS
  4021. // Device Farm.
  4022. OfferingTransactions []*OfferingTransaction `locationName:"offeringTransactions" type:"list"`
  4023. }
  4024. // String returns the string representation
  4025. func (s ListOfferingTransactionsOutput) String() string {
  4026. return awsutil.Prettify(s)
  4027. }
  4028. // GoString returns the string representation
  4029. func (s ListOfferingTransactionsOutput) GoString() string {
  4030. return s.String()
  4031. }
  4032. // Represents the request to list all offerings.
  4033. type ListOfferingsInput struct {
  4034. _ struct{} `type:"structure"`
  4035. // An identifier that was returned from the previous call to this operation,
  4036. // which can be used to return the next set of items in the list.
  4037. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4038. }
  4039. // String returns the string representation
  4040. func (s ListOfferingsInput) String() string {
  4041. return awsutil.Prettify(s)
  4042. }
  4043. // GoString returns the string representation
  4044. func (s ListOfferingsInput) GoString() string {
  4045. return s.String()
  4046. }
  4047. // Validate inspects the fields of the type to determine if they are valid.
  4048. func (s *ListOfferingsInput) Validate() error {
  4049. invalidParams := request.ErrInvalidParams{Context: "ListOfferingsInput"}
  4050. if s.NextToken != nil && len(*s.NextToken) < 4 {
  4051. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  4052. }
  4053. if invalidParams.Len() > 0 {
  4054. return invalidParams
  4055. }
  4056. return nil
  4057. }
  4058. // Represents the return values of the list of offerings.
  4059. type ListOfferingsOutput struct {
  4060. _ struct{} `type:"structure"`
  4061. // An identifier that was returned from the previous call to this operation,
  4062. // which can be used to return the next set of items in the list.
  4063. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4064. // A value representing the list offering results.
  4065. Offerings []*Offering `locationName:"offerings" type:"list"`
  4066. }
  4067. // String returns the string representation
  4068. func (s ListOfferingsOutput) String() string {
  4069. return awsutil.Prettify(s)
  4070. }
  4071. // GoString returns the string representation
  4072. func (s ListOfferingsOutput) GoString() string {
  4073. return s.String()
  4074. }
  4075. // Represents a request to the list projects operation.
  4076. type ListProjectsInput struct {
  4077. _ struct{} `type:"structure"`
  4078. // The projects' ARNs.
  4079. Arn *string `locationName:"arn" min:"32" type:"string"`
  4080. // An identifier that was returned from the previous call to this operation,
  4081. // which can be used to return the next set of items in the list.
  4082. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4083. }
  4084. // String returns the string representation
  4085. func (s ListProjectsInput) String() string {
  4086. return awsutil.Prettify(s)
  4087. }
  4088. // GoString returns the string representation
  4089. func (s ListProjectsInput) GoString() string {
  4090. return s.String()
  4091. }
  4092. // Validate inspects the fields of the type to determine if they are valid.
  4093. func (s *ListProjectsInput) Validate() error {
  4094. invalidParams := request.ErrInvalidParams{Context: "ListProjectsInput"}
  4095. if s.Arn != nil && len(*s.Arn) < 32 {
  4096. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  4097. }
  4098. if s.NextToken != nil && len(*s.NextToken) < 4 {
  4099. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  4100. }
  4101. if invalidParams.Len() > 0 {
  4102. return invalidParams
  4103. }
  4104. return nil
  4105. }
  4106. // Represents the result of a list projects request.
  4107. type ListProjectsOutput struct {
  4108. _ struct{} `type:"structure"`
  4109. // If the number of items that are returned is significantly large, this is
  4110. // an identifier that is also returned, which can be used in a subsequent call
  4111. // to this operation to return the next set of items in the list.
  4112. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4113. // Information about the projects.
  4114. Projects []*Project `locationName:"projects" type:"list"`
  4115. }
  4116. // String returns the string representation
  4117. func (s ListProjectsOutput) String() string {
  4118. return awsutil.Prettify(s)
  4119. }
  4120. // GoString returns the string representation
  4121. func (s ListProjectsOutput) GoString() string {
  4122. return s.String()
  4123. }
  4124. // Represents the request to return information about the remote access session.
  4125. type ListRemoteAccessSessionsInput struct {
  4126. _ struct{} `type:"structure"`
  4127. // The Amazon Resource Name (ARN) of the remote access session about which you
  4128. // are requesting information.
  4129. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  4130. // An identifier that was returned from the previous call to this operation,
  4131. // which can be used to return the next set of items in the list.
  4132. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4133. }
  4134. // String returns the string representation
  4135. func (s ListRemoteAccessSessionsInput) String() string {
  4136. return awsutil.Prettify(s)
  4137. }
  4138. // GoString returns the string representation
  4139. func (s ListRemoteAccessSessionsInput) GoString() string {
  4140. return s.String()
  4141. }
  4142. // Validate inspects the fields of the type to determine if they are valid.
  4143. func (s *ListRemoteAccessSessionsInput) Validate() error {
  4144. invalidParams := request.ErrInvalidParams{Context: "ListRemoteAccessSessionsInput"}
  4145. if s.Arn == nil {
  4146. invalidParams.Add(request.NewErrParamRequired("Arn"))
  4147. }
  4148. if s.Arn != nil && len(*s.Arn) < 32 {
  4149. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  4150. }
  4151. if s.NextToken != nil && len(*s.NextToken) < 4 {
  4152. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  4153. }
  4154. if invalidParams.Len() > 0 {
  4155. return invalidParams
  4156. }
  4157. return nil
  4158. }
  4159. // Represents the response from the server after AWS Device Farm makes a request
  4160. // to return information about the remote access session.
  4161. type ListRemoteAccessSessionsOutput struct {
  4162. _ struct{} `type:"structure"`
  4163. // An identifier that was returned from the previous call to this operation,
  4164. // which can be used to return the next set of items in the list.
  4165. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4166. // A container representing the metadata from the service about each remote
  4167. // access session you are requesting.
  4168. RemoteAccessSessions []*RemoteAccessSession `locationName:"remoteAccessSessions" type:"list"`
  4169. }
  4170. // String returns the string representation
  4171. func (s ListRemoteAccessSessionsOutput) String() string {
  4172. return awsutil.Prettify(s)
  4173. }
  4174. // GoString returns the string representation
  4175. func (s ListRemoteAccessSessionsOutput) GoString() string {
  4176. return s.String()
  4177. }
  4178. // Represents a request to the list runs operation.
  4179. type ListRunsInput struct {
  4180. _ struct{} `type:"structure"`
  4181. // The runs' ARNs.
  4182. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  4183. // An identifier that was returned from the previous call to this operation,
  4184. // which can be used to return the next set of items in the list.
  4185. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4186. }
  4187. // String returns the string representation
  4188. func (s ListRunsInput) String() string {
  4189. return awsutil.Prettify(s)
  4190. }
  4191. // GoString returns the string representation
  4192. func (s ListRunsInput) GoString() string {
  4193. return s.String()
  4194. }
  4195. // Validate inspects the fields of the type to determine if they are valid.
  4196. func (s *ListRunsInput) Validate() error {
  4197. invalidParams := request.ErrInvalidParams{Context: "ListRunsInput"}
  4198. if s.Arn == nil {
  4199. invalidParams.Add(request.NewErrParamRequired("Arn"))
  4200. }
  4201. if s.Arn != nil && len(*s.Arn) < 32 {
  4202. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  4203. }
  4204. if s.NextToken != nil && len(*s.NextToken) < 4 {
  4205. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  4206. }
  4207. if invalidParams.Len() > 0 {
  4208. return invalidParams
  4209. }
  4210. return nil
  4211. }
  4212. // Represents the result of a list runs request.
  4213. type ListRunsOutput struct {
  4214. _ struct{} `type:"structure"`
  4215. // If the number of items that are returned is significantly large, this is
  4216. // an identifier that is also returned, which can be used in a subsequent call
  4217. // to this operation to return the next set of items in the list.
  4218. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4219. // Information about the runs.
  4220. Runs []*Run `locationName:"runs" type:"list"`
  4221. }
  4222. // String returns the string representation
  4223. func (s ListRunsOutput) String() string {
  4224. return awsutil.Prettify(s)
  4225. }
  4226. // GoString returns the string representation
  4227. func (s ListRunsOutput) GoString() string {
  4228. return s.String()
  4229. }
  4230. // Represents a request to the list samples operation.
  4231. type ListSamplesInput struct {
  4232. _ struct{} `type:"structure"`
  4233. // The samples' ARNs.
  4234. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  4235. // An identifier that was returned from the previous call to this operation,
  4236. // which can be used to return the next set of items in the list.
  4237. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4238. }
  4239. // String returns the string representation
  4240. func (s ListSamplesInput) String() string {
  4241. return awsutil.Prettify(s)
  4242. }
  4243. // GoString returns the string representation
  4244. func (s ListSamplesInput) GoString() string {
  4245. return s.String()
  4246. }
  4247. // Validate inspects the fields of the type to determine if they are valid.
  4248. func (s *ListSamplesInput) Validate() error {
  4249. invalidParams := request.ErrInvalidParams{Context: "ListSamplesInput"}
  4250. if s.Arn == nil {
  4251. invalidParams.Add(request.NewErrParamRequired("Arn"))
  4252. }
  4253. if s.Arn != nil && len(*s.Arn) < 32 {
  4254. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  4255. }
  4256. if s.NextToken != nil && len(*s.NextToken) < 4 {
  4257. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  4258. }
  4259. if invalidParams.Len() > 0 {
  4260. return invalidParams
  4261. }
  4262. return nil
  4263. }
  4264. // Represents the result of a list samples request.
  4265. type ListSamplesOutput struct {
  4266. _ struct{} `type:"structure"`
  4267. // If the number of items that are returned is significantly large, this is
  4268. // an identifier that is also returned, which can be used in a subsequent call
  4269. // to this operation to return the next set of items in the list.
  4270. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4271. // Information about the samples.
  4272. Samples []*Sample `locationName:"samples" type:"list"`
  4273. }
  4274. // String returns the string representation
  4275. func (s ListSamplesOutput) String() string {
  4276. return awsutil.Prettify(s)
  4277. }
  4278. // GoString returns the string representation
  4279. func (s ListSamplesOutput) GoString() string {
  4280. return s.String()
  4281. }
  4282. // Represents a request to the list suites operation.
  4283. type ListSuitesInput struct {
  4284. _ struct{} `type:"structure"`
  4285. // The suites' ARNs.
  4286. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  4287. // An identifier that was returned from the previous call to this operation,
  4288. // which can be used to return the next set of items in the list.
  4289. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4290. }
  4291. // String returns the string representation
  4292. func (s ListSuitesInput) String() string {
  4293. return awsutil.Prettify(s)
  4294. }
  4295. // GoString returns the string representation
  4296. func (s ListSuitesInput) GoString() string {
  4297. return s.String()
  4298. }
  4299. // Validate inspects the fields of the type to determine if they are valid.
  4300. func (s *ListSuitesInput) Validate() error {
  4301. invalidParams := request.ErrInvalidParams{Context: "ListSuitesInput"}
  4302. if s.Arn == nil {
  4303. invalidParams.Add(request.NewErrParamRequired("Arn"))
  4304. }
  4305. if s.Arn != nil && len(*s.Arn) < 32 {
  4306. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  4307. }
  4308. if s.NextToken != nil && len(*s.NextToken) < 4 {
  4309. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  4310. }
  4311. if invalidParams.Len() > 0 {
  4312. return invalidParams
  4313. }
  4314. return nil
  4315. }
  4316. // Represents the result of a list suites request.
  4317. type ListSuitesOutput struct {
  4318. _ struct{} `type:"structure"`
  4319. // If the number of items that are returned is significantly large, this is
  4320. // an identifier that is also returned, which can be used in a subsequent call
  4321. // to this operation to return the next set of items in the list.
  4322. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4323. // Information about the suites.
  4324. Suites []*Suite `locationName:"suites" type:"list"`
  4325. }
  4326. // String returns the string representation
  4327. func (s ListSuitesOutput) String() string {
  4328. return awsutil.Prettify(s)
  4329. }
  4330. // GoString returns the string representation
  4331. func (s ListSuitesOutput) GoString() string {
  4332. return s.String()
  4333. }
  4334. // Represents a request to the list tests operation.
  4335. type ListTestsInput struct {
  4336. _ struct{} `type:"structure"`
  4337. // The tests' ARNs.
  4338. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  4339. // An identifier that was returned from the previous call to this operation,
  4340. // which can be used to return the next set of items in the list.
  4341. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4342. }
  4343. // String returns the string representation
  4344. func (s ListTestsInput) String() string {
  4345. return awsutil.Prettify(s)
  4346. }
  4347. // GoString returns the string representation
  4348. func (s ListTestsInput) GoString() string {
  4349. return s.String()
  4350. }
  4351. // Validate inspects the fields of the type to determine if they are valid.
  4352. func (s *ListTestsInput) Validate() error {
  4353. invalidParams := request.ErrInvalidParams{Context: "ListTestsInput"}
  4354. if s.Arn == nil {
  4355. invalidParams.Add(request.NewErrParamRequired("Arn"))
  4356. }
  4357. if s.Arn != nil && len(*s.Arn) < 32 {
  4358. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  4359. }
  4360. if s.NextToken != nil && len(*s.NextToken) < 4 {
  4361. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  4362. }
  4363. if invalidParams.Len() > 0 {
  4364. return invalidParams
  4365. }
  4366. return nil
  4367. }
  4368. // Represents the result of a list tests request.
  4369. type ListTestsOutput struct {
  4370. _ struct{} `type:"structure"`
  4371. // If the number of items that are returned is significantly large, this is
  4372. // an identifier that is also returned, which can be used in a subsequent call
  4373. // to this operation to return the next set of items in the list.
  4374. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4375. // Information about the tests.
  4376. Tests []*Test `locationName:"tests" type:"list"`
  4377. }
  4378. // String returns the string representation
  4379. func (s ListTestsOutput) String() string {
  4380. return awsutil.Prettify(s)
  4381. }
  4382. // GoString returns the string representation
  4383. func (s ListTestsOutput) GoString() string {
  4384. return s.String()
  4385. }
  4386. // Represents a request to the list unique problems operation.
  4387. type ListUniqueProblemsInput struct {
  4388. _ struct{} `type:"structure"`
  4389. // The unique problems' ARNs.
  4390. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  4391. // An identifier that was returned from the previous call to this operation,
  4392. // which can be used to return the next set of items in the list.
  4393. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4394. }
  4395. // String returns the string representation
  4396. func (s ListUniqueProblemsInput) String() string {
  4397. return awsutil.Prettify(s)
  4398. }
  4399. // GoString returns the string representation
  4400. func (s ListUniqueProblemsInput) GoString() string {
  4401. return s.String()
  4402. }
  4403. // Validate inspects the fields of the type to determine if they are valid.
  4404. func (s *ListUniqueProblemsInput) Validate() error {
  4405. invalidParams := request.ErrInvalidParams{Context: "ListUniqueProblemsInput"}
  4406. if s.Arn == nil {
  4407. invalidParams.Add(request.NewErrParamRequired("Arn"))
  4408. }
  4409. if s.Arn != nil && len(*s.Arn) < 32 {
  4410. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  4411. }
  4412. if s.NextToken != nil && len(*s.NextToken) < 4 {
  4413. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  4414. }
  4415. if invalidParams.Len() > 0 {
  4416. return invalidParams
  4417. }
  4418. return nil
  4419. }
  4420. // Represents the result of a list unique problems request.
  4421. type ListUniqueProblemsOutput struct {
  4422. _ struct{} `type:"structure"`
  4423. // If the number of items that are returned is significantly large, this is
  4424. // an identifier that is also returned, which can be used in a subsequent call
  4425. // to this operation to return the next set of items in the list.
  4426. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4427. // Information about the unique problems.
  4428. //
  4429. // Allowed values include:
  4430. //
  4431. // PENDING: A pending condition.
  4432. //
  4433. // PASSED: A passing condition.
  4434. //
  4435. // WARNED: A warning condition.
  4436. //
  4437. // FAILED: A failed condition.
  4438. //
  4439. // SKIPPED: A skipped condition.
  4440. //
  4441. // ERRORED: An error condition.
  4442. //
  4443. // STOPPED: A stopped condition.
  4444. UniqueProblems map[string][]*UniqueProblem `locationName:"uniqueProblems" type:"map"`
  4445. }
  4446. // String returns the string representation
  4447. func (s ListUniqueProblemsOutput) String() string {
  4448. return awsutil.Prettify(s)
  4449. }
  4450. // GoString returns the string representation
  4451. func (s ListUniqueProblemsOutput) GoString() string {
  4452. return s.String()
  4453. }
  4454. // Represents a request to the list uploads operation.
  4455. type ListUploadsInput struct {
  4456. _ struct{} `type:"structure"`
  4457. // The uploads' ARNs.
  4458. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  4459. // An identifier that was returned from the previous call to this operation,
  4460. // which can be used to return the next set of items in the list.
  4461. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4462. }
  4463. // String returns the string representation
  4464. func (s ListUploadsInput) String() string {
  4465. return awsutil.Prettify(s)
  4466. }
  4467. // GoString returns the string representation
  4468. func (s ListUploadsInput) GoString() string {
  4469. return s.String()
  4470. }
  4471. // Validate inspects the fields of the type to determine if they are valid.
  4472. func (s *ListUploadsInput) Validate() error {
  4473. invalidParams := request.ErrInvalidParams{Context: "ListUploadsInput"}
  4474. if s.Arn == nil {
  4475. invalidParams.Add(request.NewErrParamRequired("Arn"))
  4476. }
  4477. if s.Arn != nil && len(*s.Arn) < 32 {
  4478. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  4479. }
  4480. if s.NextToken != nil && len(*s.NextToken) < 4 {
  4481. invalidParams.Add(request.NewErrParamMinLen("NextToken", 4))
  4482. }
  4483. if invalidParams.Len() > 0 {
  4484. return invalidParams
  4485. }
  4486. return nil
  4487. }
  4488. // Represents the result of a list uploads request.
  4489. type ListUploadsOutput struct {
  4490. _ struct{} `type:"structure"`
  4491. // If the number of items that are returned is significantly large, this is
  4492. // an identifier that is also returned, which can be used in a subsequent call
  4493. // to this operation to return the next set of items in the list.
  4494. NextToken *string `locationName:"nextToken" min:"4" type:"string"`
  4495. // Information about the uploads.
  4496. Uploads []*Upload `locationName:"uploads" type:"list"`
  4497. }
  4498. // String returns the string representation
  4499. func (s ListUploadsOutput) String() string {
  4500. return awsutil.Prettify(s)
  4501. }
  4502. // GoString returns the string representation
  4503. func (s ListUploadsOutput) GoString() string {
  4504. return s.String()
  4505. }
  4506. // Represents a latitude and longitude pair, expressed in geographic coordinate
  4507. // system degrees (for example 47.6204, -122.3491).
  4508. //
  4509. // Elevation is currently not supported.
  4510. type Location struct {
  4511. _ struct{} `type:"structure"`
  4512. // The latitude.
  4513. Latitude *float64 `locationName:"latitude" type:"double" required:"true"`
  4514. // The longitude.
  4515. Longitude *float64 `locationName:"longitude" type:"double" required:"true"`
  4516. }
  4517. // String returns the string representation
  4518. func (s Location) String() string {
  4519. return awsutil.Prettify(s)
  4520. }
  4521. // GoString returns the string representation
  4522. func (s Location) GoString() string {
  4523. return s.String()
  4524. }
  4525. // Validate inspects the fields of the type to determine if they are valid.
  4526. func (s *Location) Validate() error {
  4527. invalidParams := request.ErrInvalidParams{Context: "Location"}
  4528. if s.Latitude == nil {
  4529. invalidParams.Add(request.NewErrParamRequired("Latitude"))
  4530. }
  4531. if s.Longitude == nil {
  4532. invalidParams.Add(request.NewErrParamRequired("Longitude"))
  4533. }
  4534. if invalidParams.Len() > 0 {
  4535. return invalidParams
  4536. }
  4537. return nil
  4538. }
  4539. // A number representing the monetary amount for an offering or transaction.
  4540. type MonetaryAmount struct {
  4541. _ struct{} `type:"structure"`
  4542. // The numerical amount of an offering or transaction.
  4543. Amount *float64 `locationName:"amount" type:"double"`
  4544. // The currency code of a monetary amount. For example, USD means "U.S. dollars."
  4545. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCode"`
  4546. }
  4547. // String returns the string representation
  4548. func (s MonetaryAmount) String() string {
  4549. return awsutil.Prettify(s)
  4550. }
  4551. // GoString returns the string representation
  4552. func (s MonetaryAmount) GoString() string {
  4553. return s.String()
  4554. }
  4555. // Represents the metadata of a device offering.
  4556. type Offering struct {
  4557. _ struct{} `type:"structure"`
  4558. // A string describing the offering.
  4559. Description *string `locationName:"description" type:"string"`
  4560. // The ID that corresponds to a device offering.
  4561. Id *string `locationName:"id" min:"32" type:"string"`
  4562. // The platform of the device (e.g., ANDROID or IOS).
  4563. Platform *string `locationName:"platform" type:"string" enum:"DevicePlatform"`
  4564. // Specifies whether there are recurring charges for the offering.
  4565. RecurringCharges []*RecurringCharge `locationName:"recurringCharges" type:"list"`
  4566. // The type of offering (e.g., "RECURRING") for a device.
  4567. Type *string `locationName:"type" type:"string" enum:"OfferingType"`
  4568. }
  4569. // String returns the string representation
  4570. func (s Offering) String() string {
  4571. return awsutil.Prettify(s)
  4572. }
  4573. // GoString returns the string representation
  4574. func (s Offering) GoString() string {
  4575. return s.String()
  4576. }
  4577. // The status of the offering.
  4578. type OfferingStatus struct {
  4579. _ struct{} `type:"structure"`
  4580. // The date on which the offering is effective.
  4581. EffectiveOn *time.Time `locationName:"effectiveOn" type:"timestamp" timestampFormat:"unix"`
  4582. // Represents the metadata of an offering status.
  4583. Offering *Offering `locationName:"offering" type:"structure"`
  4584. // The number of available devices in the offering.
  4585. Quantity *int64 `locationName:"quantity" type:"integer"`
  4586. // The type specified for the offering status.
  4587. Type *string `locationName:"type" type:"string" enum:"OfferingTransactionType"`
  4588. }
  4589. // String returns the string representation
  4590. func (s OfferingStatus) String() string {
  4591. return awsutil.Prettify(s)
  4592. }
  4593. // GoString returns the string representation
  4594. func (s OfferingStatus) GoString() string {
  4595. return s.String()
  4596. }
  4597. // Represents the metadata of an offering transaction.
  4598. type OfferingTransaction struct {
  4599. _ struct{} `type:"structure"`
  4600. // The cost of an offering transaction.
  4601. Cost *MonetaryAmount `locationName:"cost" type:"structure"`
  4602. // The date on which an offering transaction was created.
  4603. CreatedOn *time.Time `locationName:"createdOn" type:"timestamp" timestampFormat:"unix"`
  4604. // The status of an offering transaction.
  4605. OfferingStatus *OfferingStatus `locationName:"offeringStatus" type:"structure"`
  4606. // The transaction ID of the offering transaction.
  4607. TransactionId *string `locationName:"transactionId" min:"32" type:"string"`
  4608. }
  4609. // String returns the string representation
  4610. func (s OfferingTransaction) String() string {
  4611. return awsutil.Prettify(s)
  4612. }
  4613. // GoString returns the string representation
  4614. func (s OfferingTransaction) GoString() string {
  4615. return s.String()
  4616. }
  4617. // Represents a specific warning or failure.
  4618. type Problem struct {
  4619. _ struct{} `type:"structure"`
  4620. // Information about the associated device.
  4621. Device *Device `locationName:"device" type:"structure"`
  4622. // Information about the associated job.
  4623. Job *ProblemDetail `locationName:"job" type:"structure"`
  4624. // A message about the problem's result.
  4625. Message *string `locationName:"message" type:"string"`
  4626. // The problem's result.
  4627. //
  4628. // Allowed values include:
  4629. //
  4630. // PENDING: A pending condition.
  4631. //
  4632. // PASSED: A passing condition.
  4633. //
  4634. // WARNED: A warning condition.
  4635. //
  4636. // FAILED: A failed condition.
  4637. //
  4638. // SKIPPED: A skipped condition.
  4639. //
  4640. // ERRORED: An error condition.
  4641. //
  4642. // STOPPED: A stopped condition.
  4643. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"`
  4644. // Information about the associated run.
  4645. Run *ProblemDetail `locationName:"run" type:"structure"`
  4646. // Information about the associated suite.
  4647. Suite *ProblemDetail `locationName:"suite" type:"structure"`
  4648. // Information about the associated test.
  4649. Test *ProblemDetail `locationName:"test" type:"structure"`
  4650. }
  4651. // String returns the string representation
  4652. func (s Problem) String() string {
  4653. return awsutil.Prettify(s)
  4654. }
  4655. // GoString returns the string representation
  4656. func (s Problem) GoString() string {
  4657. return s.String()
  4658. }
  4659. // Information about a problem detail.
  4660. type ProblemDetail struct {
  4661. _ struct{} `type:"structure"`
  4662. // The problem detail's ARN.
  4663. Arn *string `locationName:"arn" min:"32" type:"string"`
  4664. // The problem detail's name.
  4665. Name *string `locationName:"name" type:"string"`
  4666. }
  4667. // String returns the string representation
  4668. func (s ProblemDetail) String() string {
  4669. return awsutil.Prettify(s)
  4670. }
  4671. // GoString returns the string representation
  4672. func (s ProblemDetail) GoString() string {
  4673. return s.String()
  4674. }
  4675. // Represents an operating-system neutral workspace for running and managing
  4676. // tests.
  4677. type Project struct {
  4678. _ struct{} `type:"structure"`
  4679. // The project's ARN.
  4680. Arn *string `locationName:"arn" min:"32" type:"string"`
  4681. // When the project was created.
  4682. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  4683. // The project's name.
  4684. Name *string `locationName:"name" type:"string"`
  4685. }
  4686. // String returns the string representation
  4687. func (s Project) String() string {
  4688. return awsutil.Prettify(s)
  4689. }
  4690. // GoString returns the string representation
  4691. func (s Project) GoString() string {
  4692. return s.String()
  4693. }
  4694. // Represents a request for a purchase offering.
  4695. type PurchaseOfferingInput struct {
  4696. _ struct{} `type:"structure"`
  4697. // The ID of the offering.
  4698. OfferingId *string `locationName:"offeringId" min:"32" type:"string"`
  4699. // The number of device slots you wish to purchase in an offering request.
  4700. Quantity *int64 `locationName:"quantity" type:"integer"`
  4701. }
  4702. // String returns the string representation
  4703. func (s PurchaseOfferingInput) String() string {
  4704. return awsutil.Prettify(s)
  4705. }
  4706. // GoString returns the string representation
  4707. func (s PurchaseOfferingInput) GoString() string {
  4708. return s.String()
  4709. }
  4710. // Validate inspects the fields of the type to determine if they are valid.
  4711. func (s *PurchaseOfferingInput) Validate() error {
  4712. invalidParams := request.ErrInvalidParams{Context: "PurchaseOfferingInput"}
  4713. if s.OfferingId != nil && len(*s.OfferingId) < 32 {
  4714. invalidParams.Add(request.NewErrParamMinLen("OfferingId", 32))
  4715. }
  4716. if invalidParams.Len() > 0 {
  4717. return invalidParams
  4718. }
  4719. return nil
  4720. }
  4721. // The result of the purchase offering (e.g., success or failure).
  4722. type PurchaseOfferingOutput struct {
  4723. _ struct{} `type:"structure"`
  4724. // Represents the offering transaction for the purchase result.
  4725. OfferingTransaction *OfferingTransaction `locationName:"offeringTransaction" type:"structure"`
  4726. }
  4727. // String returns the string representation
  4728. func (s PurchaseOfferingOutput) String() string {
  4729. return awsutil.Prettify(s)
  4730. }
  4731. // GoString returns the string representation
  4732. func (s PurchaseOfferingOutput) GoString() string {
  4733. return s.String()
  4734. }
  4735. // Represents the set of radios and their states on a device. Examples of radios
  4736. // include Wi-Fi, GPS, Bluetooth, and NFC.
  4737. type Radios struct {
  4738. _ struct{} `type:"structure"`
  4739. // True if Bluetooth is enabled at the beginning of the test; otherwise, false.
  4740. Bluetooth *bool `locationName:"bluetooth" type:"boolean"`
  4741. // True if GPS is enabled at the beginning of the test; otherwise, false.
  4742. Gps *bool `locationName:"gps" type:"boolean"`
  4743. // True if NFC is enabled at the beginning of the test; otherwise, false.
  4744. Nfc *bool `locationName:"nfc" type:"boolean"`
  4745. // True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
  4746. Wifi *bool `locationName:"wifi" type:"boolean"`
  4747. }
  4748. // String returns the string representation
  4749. func (s Radios) String() string {
  4750. return awsutil.Prettify(s)
  4751. }
  4752. // GoString returns the string representation
  4753. func (s Radios) GoString() string {
  4754. return s.String()
  4755. }
  4756. // Specifies whether charges for devices will be recurring.
  4757. type RecurringCharge struct {
  4758. _ struct{} `type:"structure"`
  4759. // The cost of the recurring charge.
  4760. Cost *MonetaryAmount `locationName:"cost" type:"structure"`
  4761. // The frequency in which charges will recur.
  4762. Frequency *string `locationName:"frequency" type:"string" enum:"RecurringChargeFrequency"`
  4763. }
  4764. // String returns the string representation
  4765. func (s RecurringCharge) String() string {
  4766. return awsutil.Prettify(s)
  4767. }
  4768. // GoString returns the string representation
  4769. func (s RecurringCharge) GoString() string {
  4770. return s.String()
  4771. }
  4772. // Represents information about the remote access session.
  4773. type RemoteAccessSession struct {
  4774. _ struct{} `type:"structure"`
  4775. // The Amazon Resource Name (ARN) of the remote access session.
  4776. Arn *string `locationName:"arn" min:"32" type:"string"`
  4777. // The billing method of the remote access session. Possible values include
  4778. // METERED or UNMETERED. For more information about metered devices, see AWS
  4779. // Device Farm terminology (http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology)."
  4780. BillingMethod *string `locationName:"billingMethod" type:"string" enum:"BillingMethod"`
  4781. // The date and time the remote access session was created.
  4782. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  4783. // Represents a device type that an app is tested against.
  4784. Device *Device `locationName:"device" type:"structure"`
  4785. // Represents the total (metered or unmetered) minutes used by the resource
  4786. // to run tests. Contains the sum of minutes consumed by all children.
  4787. DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"`
  4788. // The endpoint for the remote access sesssion.
  4789. Endpoint *string `locationName:"endpoint" type:"string"`
  4790. // A message about the remote access session.
  4791. Message *string `locationName:"message" type:"string"`
  4792. // The name of the remote access session.
  4793. Name *string `locationName:"name" type:"string"`
  4794. // The result of the remote access session. Can be any of the following:
  4795. //
  4796. // PENDING: A pending condition.
  4797. //
  4798. // PASSED: A passing condition.
  4799. //
  4800. // WARNED: A warning condition.
  4801. //
  4802. // FAILED: A failed condition.
  4803. //
  4804. // SKIPPED: A skipped condition.
  4805. //
  4806. // ERRORED: An error condition.
  4807. //
  4808. // STOPPED: A stopped condition.
  4809. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"`
  4810. // The date and time the remote access session was started.
  4811. Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
  4812. // The status of the remote access session. Can be any of the following:
  4813. //
  4814. // PENDING: A pending status.
  4815. //
  4816. // PENDING_CONCURRENCY: A pending concurrency status.
  4817. //
  4818. // PENDING_DEVICE: A pending device status.
  4819. //
  4820. // PROCESSING: A processing status.
  4821. //
  4822. // SCHEDULING: A scheduling status.
  4823. //
  4824. // PREPARING: A preparing status.
  4825. //
  4826. // RUNNING: A running status.
  4827. //
  4828. // COMPLETED: A completed status.
  4829. //
  4830. // STOPPING: A stopping status.
  4831. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"`
  4832. // The date and time the remote access session was stopped.
  4833. Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
  4834. }
  4835. // String returns the string representation
  4836. func (s RemoteAccessSession) String() string {
  4837. return awsutil.Prettify(s)
  4838. }
  4839. // GoString returns the string representation
  4840. func (s RemoteAccessSession) GoString() string {
  4841. return s.String()
  4842. }
  4843. // A request representing an offering renewal.
  4844. type RenewOfferingInput struct {
  4845. _ struct{} `type:"structure"`
  4846. // The ID of a request to renew an offering.
  4847. OfferingId *string `locationName:"offeringId" min:"32" type:"string"`
  4848. // The quantity requested in an offering renewal.
  4849. Quantity *int64 `locationName:"quantity" type:"integer"`
  4850. }
  4851. // String returns the string representation
  4852. func (s RenewOfferingInput) String() string {
  4853. return awsutil.Prettify(s)
  4854. }
  4855. // GoString returns the string representation
  4856. func (s RenewOfferingInput) GoString() string {
  4857. return s.String()
  4858. }
  4859. // Validate inspects the fields of the type to determine if they are valid.
  4860. func (s *RenewOfferingInput) Validate() error {
  4861. invalidParams := request.ErrInvalidParams{Context: "RenewOfferingInput"}
  4862. if s.OfferingId != nil && len(*s.OfferingId) < 32 {
  4863. invalidParams.Add(request.NewErrParamMinLen("OfferingId", 32))
  4864. }
  4865. if invalidParams.Len() > 0 {
  4866. return invalidParams
  4867. }
  4868. return nil
  4869. }
  4870. // The result of a renewal offering.
  4871. type RenewOfferingOutput struct {
  4872. _ struct{} `type:"structure"`
  4873. // Represents the status of the offering transaction for the renewal.
  4874. OfferingTransaction *OfferingTransaction `locationName:"offeringTransaction" type:"structure"`
  4875. }
  4876. // String returns the string representation
  4877. func (s RenewOfferingOutput) String() string {
  4878. return awsutil.Prettify(s)
  4879. }
  4880. // GoString returns the string representation
  4881. func (s RenewOfferingOutput) GoString() string {
  4882. return s.String()
  4883. }
  4884. // Represents the screen resolution of a device in height and width, expressed
  4885. // in pixels.
  4886. type Resolution struct {
  4887. _ struct{} `type:"structure"`
  4888. // The screen resolution's height, expressed in pixels.
  4889. Height *int64 `locationName:"height" type:"integer"`
  4890. // The screen resolution's width, expressed in pixels.
  4891. Width *int64 `locationName:"width" type:"integer"`
  4892. }
  4893. // String returns the string representation
  4894. func (s Resolution) String() string {
  4895. return awsutil.Prettify(s)
  4896. }
  4897. // GoString returns the string representation
  4898. func (s Resolution) GoString() string {
  4899. return s.String()
  4900. }
  4901. // Represents a condition for a device pool.
  4902. type Rule struct {
  4903. _ struct{} `type:"structure"`
  4904. // The rule's stringified attribute. For example, specify the value as "\"abc\"".
  4905. //
  4906. // Allowed values include:
  4907. //
  4908. // ARN: The ARN.
  4909. //
  4910. // FORM_FACTOR: The form factor (for example, phone or tablet).
  4911. //
  4912. // MANUFACTURER: The manufacturer.
  4913. //
  4914. // PLATFORM: The platform (for example, Android or iOS).
  4915. Attribute *string `locationName:"attribute" type:"string" enum:"DeviceAttribute"`
  4916. // The rule's operator.
  4917. //
  4918. // EQUALS: The equals operator.
  4919. //
  4920. // GREATER_THAN: The greater-than operator.
  4921. //
  4922. // IN: The in operator.
  4923. //
  4924. // LESS_THAN: The less-than operator.
  4925. //
  4926. // NOT_IN: The not-in operator.
  4927. Operator *string `locationName:"operator" type:"string" enum:"RuleOperator"`
  4928. // The rule's value.
  4929. Value *string `locationName:"value" type:"string"`
  4930. }
  4931. // String returns the string representation
  4932. func (s Rule) String() string {
  4933. return awsutil.Prettify(s)
  4934. }
  4935. // GoString returns the string representation
  4936. func (s Rule) GoString() string {
  4937. return s.String()
  4938. }
  4939. // Represents an app on a set of devices with a specific test and configuration.
  4940. type Run struct {
  4941. _ struct{} `type:"structure"`
  4942. // The run's ARN.
  4943. Arn *string `locationName:"arn" min:"32" type:"string"`
  4944. // Specifies the billing method for a test run: metered or unmetered. If the
  4945. // parameter is not specified, the default value is unmetered.
  4946. BillingMethod *string `locationName:"billingMethod" type:"string" enum:"BillingMethod"`
  4947. // The total number of completed jobs.
  4948. CompletedJobs *int64 `locationName:"completedJobs" type:"integer"`
  4949. // The run's result counters.
  4950. Counters *Counters `locationName:"counters" type:"structure"`
  4951. // When the run was created.
  4952. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  4953. // Represents the total (metered or unmetered) minutes used by the test run.
  4954. DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"`
  4955. // A message about the run's result.
  4956. Message *string `locationName:"message" type:"string"`
  4957. // The run's name.
  4958. Name *string `locationName:"name" type:"string"`
  4959. // The run's platform.
  4960. //
  4961. // Allowed values include:
  4962. //
  4963. // ANDROID: The Android platform.
  4964. //
  4965. // IOS: The iOS platform.
  4966. Platform *string `locationName:"platform" type:"string" enum:"DevicePlatform"`
  4967. // The run's result.
  4968. //
  4969. // Allowed values include:
  4970. //
  4971. // PENDING: A pending condition.
  4972. //
  4973. // PASSED: A passing condition.
  4974. //
  4975. // WARNED: A warning condition.
  4976. //
  4977. // FAILED: A failed condition.
  4978. //
  4979. // SKIPPED: A skipped condition.
  4980. //
  4981. // ERRORED: An error condition.
  4982. //
  4983. // STOPPED: A stopped condition.
  4984. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"`
  4985. // The run's start time.
  4986. Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
  4987. // The run's status.
  4988. //
  4989. // Allowed values include:
  4990. //
  4991. // PENDING: A pending status.
  4992. //
  4993. // PENDING_CONCURRENCY: A pending concurrency status.
  4994. //
  4995. // PENDING_DEVICE: A pending device status.
  4996. //
  4997. // PROCESSING: A processing status.
  4998. //
  4999. // SCHEDULING: A scheduling status.
  5000. //
  5001. // PREPARING: A preparing status.
  5002. //
  5003. // RUNNING: A running status.
  5004. //
  5005. // COMPLETED: A completed status.
  5006. //
  5007. // STOPPING: A stopping status.
  5008. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"`
  5009. // The run's stop time.
  5010. Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
  5011. // The total number of jobs for the run.
  5012. TotalJobs *int64 `locationName:"totalJobs" type:"integer"`
  5013. // The run's type.
  5014. //
  5015. // Must be one of the following values:
  5016. //
  5017. // BUILTIN_FUZZ: The built-in fuzz type.
  5018. //
  5019. // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android
  5020. // app, interacting with it and capturing screenshots at the same time.
  5021. //
  5022. // APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
  5023. //
  5024. // APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
  5025. //
  5026. // APPIUM_PYTHON: The Appium Python type.
  5027. //
  5028. // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
  5029. //
  5030. // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
  5031. //
  5032. // APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
  5033. //
  5034. // CALABASH: The Calabash type.
  5035. //
  5036. // INSTRUMENTATION: The Instrumentation type.
  5037. //
  5038. // UIAUTOMATION: The uiautomation type.
  5039. //
  5040. // UIAUTOMATOR: The uiautomator type.
  5041. //
  5042. // XCTEST: The XCode test type.
  5043. //
  5044. // XCTEST_UI: The XCode UI test type.
  5045. Type *string `locationName:"type" type:"string" enum:"TestType"`
  5046. }
  5047. // String returns the string representation
  5048. func (s Run) String() string {
  5049. return awsutil.Prettify(s)
  5050. }
  5051. // GoString returns the string representation
  5052. func (s Run) GoString() string {
  5053. return s.String()
  5054. }
  5055. // Represents a sample of performance data.
  5056. type Sample struct {
  5057. _ struct{} `type:"structure"`
  5058. // The sample's ARN.
  5059. Arn *string `locationName:"arn" min:"32" type:"string"`
  5060. // The sample's type.
  5061. //
  5062. // Must be one of the following values:
  5063. //
  5064. // CPU: A CPU sample type. This is expressed as the app processing CPU time
  5065. // (including child processes) as reported by process, as a percentage.
  5066. //
  5067. // MEMORY: A memory usage sample type. This is expressed as the total proportional
  5068. // set size of an app process, in kilobytes.
  5069. //
  5070. // NATIVE_AVG_DRAWTIME
  5071. //
  5072. // NATIVE_FPS
  5073. //
  5074. // NATIVE_FRAMES
  5075. //
  5076. // NATIVE_MAX_DRAWTIME
  5077. //
  5078. // NATIVE_MIN_DRAWTIME
  5079. //
  5080. // OPENGL_AVG_DRAWTIME
  5081. //
  5082. // OPENGL_FPS
  5083. //
  5084. // OPENGL_FRAMES
  5085. //
  5086. // OPENGL_MAX_DRAWTIME
  5087. //
  5088. // OPENGL_MIN_DRAWTIME
  5089. //
  5090. // RX
  5091. //
  5092. // RX_RATE: The total number of bytes per second (TCP and UDP) that are sent,
  5093. // by app process.
  5094. //
  5095. // THREADS: A threads sample type. This is expressed as the total number of
  5096. // threads per app process.
  5097. //
  5098. // TX
  5099. //
  5100. // TX_RATE: The total number of bytes per second (TCP and UDP) that are received,
  5101. // by app process.
  5102. Type *string `locationName:"type" type:"string" enum:"SampleType"`
  5103. // The pre-signed Amazon S3 URL that can be used with a corresponding GET request
  5104. // to download the sample's file.
  5105. Url *string `locationName:"url" type:"string"`
  5106. }
  5107. // String returns the string representation
  5108. func (s Sample) String() string {
  5109. return awsutil.Prettify(s)
  5110. }
  5111. // GoString returns the string representation
  5112. func (s Sample) GoString() string {
  5113. return s.String()
  5114. }
  5115. // Represents the settings for a run. Includes things like location, radio states,
  5116. // auxiliary apps, and network profiles.
  5117. type ScheduleRunConfiguration struct {
  5118. _ struct{} `type:"structure"`
  5119. // A list of auxiliary apps for the run.
  5120. AuxiliaryApps []*string `locationName:"auxiliaryApps" type:"list"`
  5121. // Specifies the billing method for a test run: metered or unmetered. If the
  5122. // parameter is not specified, the default value is unmetered.
  5123. BillingMethod *string `locationName:"billingMethod" type:"string" enum:"BillingMethod"`
  5124. // The ARN of the extra data for the run. The extra data is a .zip file that
  5125. // AWS Device Farm will extract to external data for Android or the app's sandbox
  5126. // for iOS.
  5127. ExtraDataPackageArn *string `locationName:"extraDataPackageArn" min:"32" type:"string"`
  5128. // Information about the locale that is used for the run.
  5129. Locale *string `locationName:"locale" type:"string"`
  5130. // Information about the location that is used for the run.
  5131. Location *Location `locationName:"location" type:"structure"`
  5132. // Reserved for internal use.
  5133. NetworkProfileArn *string `locationName:"networkProfileArn" min:"32" type:"string"`
  5134. // Information about the radio states for the run.
  5135. Radios *Radios `locationName:"radios" type:"structure"`
  5136. }
  5137. // String returns the string representation
  5138. func (s ScheduleRunConfiguration) String() string {
  5139. return awsutil.Prettify(s)
  5140. }
  5141. // GoString returns the string representation
  5142. func (s ScheduleRunConfiguration) GoString() string {
  5143. return s.String()
  5144. }
  5145. // Validate inspects the fields of the type to determine if they are valid.
  5146. func (s *ScheduleRunConfiguration) Validate() error {
  5147. invalidParams := request.ErrInvalidParams{Context: "ScheduleRunConfiguration"}
  5148. if s.ExtraDataPackageArn != nil && len(*s.ExtraDataPackageArn) < 32 {
  5149. invalidParams.Add(request.NewErrParamMinLen("ExtraDataPackageArn", 32))
  5150. }
  5151. if s.NetworkProfileArn != nil && len(*s.NetworkProfileArn) < 32 {
  5152. invalidParams.Add(request.NewErrParamMinLen("NetworkProfileArn", 32))
  5153. }
  5154. if s.Location != nil {
  5155. if err := s.Location.Validate(); err != nil {
  5156. invalidParams.AddNested("Location", err.(request.ErrInvalidParams))
  5157. }
  5158. }
  5159. if invalidParams.Len() > 0 {
  5160. return invalidParams
  5161. }
  5162. return nil
  5163. }
  5164. // Represents a request to the schedule run operation.
  5165. type ScheduleRunInput struct {
  5166. _ struct{} `type:"structure"`
  5167. // The ARN of the app to schedule a run.
  5168. AppArn *string `locationName:"appArn" min:"32" type:"string"`
  5169. // Information about the settings for the run to be scheduled.
  5170. Configuration *ScheduleRunConfiguration `locationName:"configuration" type:"structure"`
  5171. // The ARN of the device pool for the run to be scheduled.
  5172. DevicePoolArn *string `locationName:"devicePoolArn" min:"32" type:"string" required:"true"`
  5173. // The name for the run to be scheduled.
  5174. Name *string `locationName:"name" type:"string"`
  5175. // The ARN of the project for the run to be scheduled.
  5176. ProjectArn *string `locationName:"projectArn" min:"32" type:"string" required:"true"`
  5177. // Information about the test for the run to be scheduled.
  5178. Test *ScheduleRunTest `locationName:"test" type:"structure" required:"true"`
  5179. }
  5180. // String returns the string representation
  5181. func (s ScheduleRunInput) String() string {
  5182. return awsutil.Prettify(s)
  5183. }
  5184. // GoString returns the string representation
  5185. func (s ScheduleRunInput) GoString() string {
  5186. return s.String()
  5187. }
  5188. // Validate inspects the fields of the type to determine if they are valid.
  5189. func (s *ScheduleRunInput) Validate() error {
  5190. invalidParams := request.ErrInvalidParams{Context: "ScheduleRunInput"}
  5191. if s.AppArn != nil && len(*s.AppArn) < 32 {
  5192. invalidParams.Add(request.NewErrParamMinLen("AppArn", 32))
  5193. }
  5194. if s.DevicePoolArn == nil {
  5195. invalidParams.Add(request.NewErrParamRequired("DevicePoolArn"))
  5196. }
  5197. if s.DevicePoolArn != nil && len(*s.DevicePoolArn) < 32 {
  5198. invalidParams.Add(request.NewErrParamMinLen("DevicePoolArn", 32))
  5199. }
  5200. if s.ProjectArn == nil {
  5201. invalidParams.Add(request.NewErrParamRequired("ProjectArn"))
  5202. }
  5203. if s.ProjectArn != nil && len(*s.ProjectArn) < 32 {
  5204. invalidParams.Add(request.NewErrParamMinLen("ProjectArn", 32))
  5205. }
  5206. if s.Test == nil {
  5207. invalidParams.Add(request.NewErrParamRequired("Test"))
  5208. }
  5209. if s.Configuration != nil {
  5210. if err := s.Configuration.Validate(); err != nil {
  5211. invalidParams.AddNested("Configuration", err.(request.ErrInvalidParams))
  5212. }
  5213. }
  5214. if s.Test != nil {
  5215. if err := s.Test.Validate(); err != nil {
  5216. invalidParams.AddNested("Test", err.(request.ErrInvalidParams))
  5217. }
  5218. }
  5219. if invalidParams.Len() > 0 {
  5220. return invalidParams
  5221. }
  5222. return nil
  5223. }
  5224. // Represents the result of a schedule run request.
  5225. type ScheduleRunOutput struct {
  5226. _ struct{} `type:"structure"`
  5227. // Information about the scheduled run.
  5228. Run *Run `locationName:"run" type:"structure"`
  5229. }
  5230. // String returns the string representation
  5231. func (s ScheduleRunOutput) String() string {
  5232. return awsutil.Prettify(s)
  5233. }
  5234. // GoString returns the string representation
  5235. func (s ScheduleRunOutput) GoString() string {
  5236. return s.String()
  5237. }
  5238. // Represents additional test settings.
  5239. type ScheduleRunTest struct {
  5240. _ struct{} `type:"structure"`
  5241. // The test's filter.
  5242. Filter *string `locationName:"filter" type:"string"`
  5243. // The test's parameters, such as test framework parameters and fixture settings.
  5244. Parameters map[string]*string `locationName:"parameters" type:"map"`
  5245. // The ARN of the uploaded test that will be run.
  5246. TestPackageArn *string `locationName:"testPackageArn" min:"32" type:"string"`
  5247. // The test's type.
  5248. //
  5249. // Must be one of the following values:
  5250. //
  5251. // BUILTIN_FUZZ: The built-in fuzz type.
  5252. //
  5253. // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android
  5254. // app, interacting with it and capturing screenshots at the same time.
  5255. //
  5256. // APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
  5257. //
  5258. // APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
  5259. //
  5260. // APPIUM_PYTHON: The Appium Python type.
  5261. //
  5262. // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
  5263. //
  5264. // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
  5265. //
  5266. // APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
  5267. //
  5268. // CALABASH: The Calabash type.
  5269. //
  5270. // INSTRUMENTATION: The Instrumentation type.
  5271. //
  5272. // UIAUTOMATION: The uiautomation type.
  5273. //
  5274. // UIAUTOMATOR: The uiautomator type.
  5275. //
  5276. // XCTEST: The XCode test type.
  5277. //
  5278. // XCTEST_UI: The XCode UI test type.
  5279. Type *string `locationName:"type" type:"string" required:"true" enum:"TestType"`
  5280. }
  5281. // String returns the string representation
  5282. func (s ScheduleRunTest) String() string {
  5283. return awsutil.Prettify(s)
  5284. }
  5285. // GoString returns the string representation
  5286. func (s ScheduleRunTest) GoString() string {
  5287. return s.String()
  5288. }
  5289. // Validate inspects the fields of the type to determine if they are valid.
  5290. func (s *ScheduleRunTest) Validate() error {
  5291. invalidParams := request.ErrInvalidParams{Context: "ScheduleRunTest"}
  5292. if s.TestPackageArn != nil && len(*s.TestPackageArn) < 32 {
  5293. invalidParams.Add(request.NewErrParamMinLen("TestPackageArn", 32))
  5294. }
  5295. if s.Type == nil {
  5296. invalidParams.Add(request.NewErrParamRequired("Type"))
  5297. }
  5298. if invalidParams.Len() > 0 {
  5299. return invalidParams
  5300. }
  5301. return nil
  5302. }
  5303. // Represents the request to stop the remote access session.
  5304. type StopRemoteAccessSessionInput struct {
  5305. _ struct{} `type:"structure"`
  5306. // The Amazon Resource Name (ARN) of the remote access session you wish to stop.
  5307. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  5308. }
  5309. // String returns the string representation
  5310. func (s StopRemoteAccessSessionInput) String() string {
  5311. return awsutil.Prettify(s)
  5312. }
  5313. // GoString returns the string representation
  5314. func (s StopRemoteAccessSessionInput) GoString() string {
  5315. return s.String()
  5316. }
  5317. // Validate inspects the fields of the type to determine if they are valid.
  5318. func (s *StopRemoteAccessSessionInput) Validate() error {
  5319. invalidParams := request.ErrInvalidParams{Context: "StopRemoteAccessSessionInput"}
  5320. if s.Arn == nil {
  5321. invalidParams.Add(request.NewErrParamRequired("Arn"))
  5322. }
  5323. if s.Arn != nil && len(*s.Arn) < 32 {
  5324. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  5325. }
  5326. if invalidParams.Len() > 0 {
  5327. return invalidParams
  5328. }
  5329. return nil
  5330. }
  5331. // Represents the response from the server that describes the remote access
  5332. // session when AWS Device Farm stops the session.
  5333. type StopRemoteAccessSessionOutput struct {
  5334. _ struct{} `type:"structure"`
  5335. // A container representing the metadata from the service about the remote access
  5336. // session you are stopping.
  5337. RemoteAccessSession *RemoteAccessSession `locationName:"remoteAccessSession" type:"structure"`
  5338. }
  5339. // String returns the string representation
  5340. func (s StopRemoteAccessSessionOutput) String() string {
  5341. return awsutil.Prettify(s)
  5342. }
  5343. // GoString returns the string representation
  5344. func (s StopRemoteAccessSessionOutput) GoString() string {
  5345. return s.String()
  5346. }
  5347. // Represents the request to stop a specific run.
  5348. type StopRunInput struct {
  5349. _ struct{} `type:"structure"`
  5350. // Represents the Amazon Resource Name (ARN) of the Device Farm run you wish
  5351. // to stop.
  5352. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  5353. }
  5354. // String returns the string representation
  5355. func (s StopRunInput) String() string {
  5356. return awsutil.Prettify(s)
  5357. }
  5358. // GoString returns the string representation
  5359. func (s StopRunInput) GoString() string {
  5360. return s.String()
  5361. }
  5362. // Validate inspects the fields of the type to determine if they are valid.
  5363. func (s *StopRunInput) Validate() error {
  5364. invalidParams := request.ErrInvalidParams{Context: "StopRunInput"}
  5365. if s.Arn == nil {
  5366. invalidParams.Add(request.NewErrParamRequired("Arn"))
  5367. }
  5368. if s.Arn != nil && len(*s.Arn) < 32 {
  5369. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  5370. }
  5371. if invalidParams.Len() > 0 {
  5372. return invalidParams
  5373. }
  5374. return nil
  5375. }
  5376. // Represents the results of your stop run attempt.
  5377. type StopRunOutput struct {
  5378. _ struct{} `type:"structure"`
  5379. // Represents an app on a set of devices with a specific test and configuration.
  5380. Run *Run `locationName:"run" type:"structure"`
  5381. }
  5382. // String returns the string representation
  5383. func (s StopRunOutput) String() string {
  5384. return awsutil.Prettify(s)
  5385. }
  5386. // GoString returns the string representation
  5387. func (s StopRunOutput) GoString() string {
  5388. return s.String()
  5389. }
  5390. // Represents a collection of one or more tests.
  5391. type Suite struct {
  5392. _ struct{} `type:"structure"`
  5393. // The suite's ARN.
  5394. Arn *string `locationName:"arn" min:"32" type:"string"`
  5395. // The suite's result counters.
  5396. Counters *Counters `locationName:"counters" type:"structure"`
  5397. // When the suite was created.
  5398. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  5399. // Represents the total (metered or unmetered) minutes used by the test suite.
  5400. DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"`
  5401. // A message about the suite's result.
  5402. Message *string `locationName:"message" type:"string"`
  5403. // The suite's name.
  5404. Name *string `locationName:"name" type:"string"`
  5405. // The suite's result.
  5406. //
  5407. // Allowed values include:
  5408. //
  5409. // PENDING: A pending condition.
  5410. //
  5411. // PASSED: A passing condition.
  5412. //
  5413. // WARNED: A warning condition.
  5414. //
  5415. // FAILED: A failed condition.
  5416. //
  5417. // SKIPPED: A skipped condition.
  5418. //
  5419. // ERRORED: An error condition.
  5420. //
  5421. // STOPPED: A stopped condition.
  5422. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"`
  5423. // The suite's start time.
  5424. Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
  5425. // The suite's status.
  5426. //
  5427. // Allowed values include:
  5428. //
  5429. // PENDING: A pending status.
  5430. //
  5431. // PENDING_CONCURRENCY: A pending concurrency status.
  5432. //
  5433. // PENDING_DEVICE: A pending device status.
  5434. //
  5435. // PROCESSING: A processing status.
  5436. //
  5437. // SCHEDULING: A scheduling status.
  5438. //
  5439. // PREPARING: A preparing status.
  5440. //
  5441. // RUNNING: A running status.
  5442. //
  5443. // COMPLETED: A completed status.
  5444. //
  5445. // STOPPING: A stopping status.
  5446. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"`
  5447. // The suite's stop time.
  5448. Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
  5449. // The suite's type.
  5450. //
  5451. // Must be one of the following values:
  5452. //
  5453. // BUILTIN_FUZZ: The built-in fuzz type.
  5454. //
  5455. // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android
  5456. // app, interacting with it and capturing screenshots at the same time.
  5457. //
  5458. // APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
  5459. //
  5460. // APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
  5461. //
  5462. // APPIUM_PYTHON: The Appium Python type.
  5463. //
  5464. // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
  5465. //
  5466. // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
  5467. //
  5468. // APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
  5469. //
  5470. // CALABASH: The Calabash type.
  5471. //
  5472. // INSTRUMENTATION: The Instrumentation type.
  5473. //
  5474. // UIAUTOMATION: The uiautomation type.
  5475. //
  5476. // UIAUTOMATOR: The uiautomator type.
  5477. //
  5478. // XCTEST: The XCode test type.
  5479. //
  5480. // XCTEST_UI: The XCode UI test type.
  5481. Type *string `locationName:"type" type:"string" enum:"TestType"`
  5482. }
  5483. // String returns the string representation
  5484. func (s Suite) String() string {
  5485. return awsutil.Prettify(s)
  5486. }
  5487. // GoString returns the string representation
  5488. func (s Suite) GoString() string {
  5489. return s.String()
  5490. }
  5491. // Represents a condition that is evaluated.
  5492. type Test struct {
  5493. _ struct{} `type:"structure"`
  5494. // The test's ARN.
  5495. Arn *string `locationName:"arn" min:"32" type:"string"`
  5496. // The test's result counters.
  5497. Counters *Counters `locationName:"counters" type:"structure"`
  5498. // When the test was created.
  5499. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  5500. // Represents the total (metered or unmetered) minutes used by the test.
  5501. DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"`
  5502. // A message about the test's result.
  5503. Message *string `locationName:"message" type:"string"`
  5504. // The test's name.
  5505. Name *string `locationName:"name" type:"string"`
  5506. // The test's result.
  5507. //
  5508. // Allowed values include:
  5509. //
  5510. // PENDING: A pending condition.
  5511. //
  5512. // PASSED: A passing condition.
  5513. //
  5514. // WARNED: A warning condition.
  5515. //
  5516. // FAILED: A failed condition.
  5517. //
  5518. // SKIPPED: A skipped condition.
  5519. //
  5520. // ERRORED: An error condition.
  5521. //
  5522. // STOPPED: A stopped condition.
  5523. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"`
  5524. // The test's start time.
  5525. Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
  5526. // The test's status.
  5527. //
  5528. // Allowed values include:
  5529. //
  5530. // PENDING: A pending status.
  5531. //
  5532. // PENDING_CONCURRENCY: A pending concurrency status.
  5533. //
  5534. // PENDING_DEVICE: A pending device status.
  5535. //
  5536. // PROCESSING: A processing status.
  5537. //
  5538. // SCHEDULING: A scheduling status.
  5539. //
  5540. // PREPARING: A preparing status.
  5541. //
  5542. // RUNNING: A running status.
  5543. //
  5544. // COMPLETED: A completed status.
  5545. //
  5546. // STOPPING: A stopping status.
  5547. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"`
  5548. // The test's stop time.
  5549. Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
  5550. // The test's type.
  5551. //
  5552. // Must be one of the following values:
  5553. //
  5554. // BUILTIN_FUZZ: The built-in fuzz type.
  5555. //
  5556. // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android
  5557. // app, interacting with it and capturing screenshots at the same time.
  5558. //
  5559. // APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
  5560. //
  5561. // APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
  5562. //
  5563. // APPIUM_PYTHON: The Appium Python type.
  5564. //
  5565. // APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
  5566. //
  5567. // APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
  5568. //
  5569. // APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
  5570. //
  5571. // CALABASH: The Calabash type.
  5572. //
  5573. // INSTRUMENTATION: The Instrumentation type.
  5574. //
  5575. // UIAUTOMATION: The uiautomation type.
  5576. //
  5577. // UIAUTOMATOR: The uiautomator type.
  5578. //
  5579. // XCTEST: The XCode test type.
  5580. //
  5581. // XCTEST_UI: The XCode UI test type.
  5582. Type *string `locationName:"type" type:"string" enum:"TestType"`
  5583. }
  5584. // String returns the string representation
  5585. func (s Test) String() string {
  5586. return awsutil.Prettify(s)
  5587. }
  5588. // GoString returns the string representation
  5589. func (s Test) GoString() string {
  5590. return s.String()
  5591. }
  5592. // A collection of one or more problems, grouped by their result.
  5593. type UniqueProblem struct {
  5594. _ struct{} `type:"structure"`
  5595. // A message about the unique problems' result.
  5596. Message *string `locationName:"message" type:"string"`
  5597. // Information about the problems.
  5598. Problems []*Problem `locationName:"problems" type:"list"`
  5599. }
  5600. // String returns the string representation
  5601. func (s UniqueProblem) String() string {
  5602. return awsutil.Prettify(s)
  5603. }
  5604. // GoString returns the string representation
  5605. func (s UniqueProblem) GoString() string {
  5606. return s.String()
  5607. }
  5608. // Represents a request to the update device pool operation.
  5609. type UpdateDevicePoolInput struct {
  5610. _ struct{} `type:"structure"`
  5611. // The Amazon Resourc Name (ARN) of the Device Farm device pool you wish to
  5612. // update.
  5613. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  5614. // A description of the device pool you wish to update.
  5615. Description *string `locationName:"description" type:"string"`
  5616. // A string representing the name of the device pool you wish to update.
  5617. Name *string `locationName:"name" type:"string"`
  5618. // Represents the rules you wish to modify for the device pool. Updating rules
  5619. // is optional; however, if you choose to update rules for your request, the
  5620. // update will replace the existing rules.
  5621. Rules []*Rule `locationName:"rules" type:"list"`
  5622. }
  5623. // String returns the string representation
  5624. func (s UpdateDevicePoolInput) String() string {
  5625. return awsutil.Prettify(s)
  5626. }
  5627. // GoString returns the string representation
  5628. func (s UpdateDevicePoolInput) GoString() string {
  5629. return s.String()
  5630. }
  5631. // Validate inspects the fields of the type to determine if they are valid.
  5632. func (s *UpdateDevicePoolInput) Validate() error {
  5633. invalidParams := request.ErrInvalidParams{Context: "UpdateDevicePoolInput"}
  5634. if s.Arn == nil {
  5635. invalidParams.Add(request.NewErrParamRequired("Arn"))
  5636. }
  5637. if s.Arn != nil && len(*s.Arn) < 32 {
  5638. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  5639. }
  5640. if invalidParams.Len() > 0 {
  5641. return invalidParams
  5642. }
  5643. return nil
  5644. }
  5645. // Represents the result of an update device pool request.
  5646. type UpdateDevicePoolOutput struct {
  5647. _ struct{} `type:"structure"`
  5648. // Represents a collection of device types.
  5649. DevicePool *DevicePool `locationName:"devicePool" type:"structure"`
  5650. }
  5651. // String returns the string representation
  5652. func (s UpdateDevicePoolOutput) String() string {
  5653. return awsutil.Prettify(s)
  5654. }
  5655. // GoString returns the string representation
  5656. func (s UpdateDevicePoolOutput) GoString() string {
  5657. return s.String()
  5658. }
  5659. // Represents a request to the update project operation.
  5660. type UpdateProjectInput struct {
  5661. _ struct{} `type:"structure"`
  5662. // The Amazon Resource Name (ARN) of the project whose name you wish to update.
  5663. Arn *string `locationName:"arn" min:"32" type:"string" required:"true"`
  5664. // A string representing the new name of the project that you are updating.
  5665. Name *string `locationName:"name" type:"string"`
  5666. }
  5667. // String returns the string representation
  5668. func (s UpdateProjectInput) String() string {
  5669. return awsutil.Prettify(s)
  5670. }
  5671. // GoString returns the string representation
  5672. func (s UpdateProjectInput) GoString() string {
  5673. return s.String()
  5674. }
  5675. // Validate inspects the fields of the type to determine if they are valid.
  5676. func (s *UpdateProjectInput) Validate() error {
  5677. invalidParams := request.ErrInvalidParams{Context: "UpdateProjectInput"}
  5678. if s.Arn == nil {
  5679. invalidParams.Add(request.NewErrParamRequired("Arn"))
  5680. }
  5681. if s.Arn != nil && len(*s.Arn) < 32 {
  5682. invalidParams.Add(request.NewErrParamMinLen("Arn", 32))
  5683. }
  5684. if invalidParams.Len() > 0 {
  5685. return invalidParams
  5686. }
  5687. return nil
  5688. }
  5689. // Represents the result of an update project request.
  5690. type UpdateProjectOutput struct {
  5691. _ struct{} `type:"structure"`
  5692. // Represents an operating-system neutral workspace for running and managing
  5693. // tests.
  5694. Project *Project `locationName:"project" type:"structure"`
  5695. }
  5696. // String returns the string representation
  5697. func (s UpdateProjectOutput) String() string {
  5698. return awsutil.Prettify(s)
  5699. }
  5700. // GoString returns the string representation
  5701. func (s UpdateProjectOutput) GoString() string {
  5702. return s.String()
  5703. }
  5704. // An app or a set of one or more tests to upload or that have been uploaded.
  5705. type Upload struct {
  5706. _ struct{} `type:"structure"`
  5707. // The upload's ARN.
  5708. Arn *string `locationName:"arn" min:"32" type:"string"`
  5709. // The upload's content type (for example, "application/octet-stream").
  5710. ContentType *string `locationName:"contentType" type:"string"`
  5711. // When the upload was created.
  5712. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  5713. // A message about the upload's result.
  5714. Message *string `locationName:"message" type:"string"`
  5715. // The upload's metadata. For example, for Android, this contains information
  5716. // that is parsed from the manifest and is displayed in the AWS Device Farm
  5717. // console after the associated app is uploaded.
  5718. Metadata *string `locationName:"metadata" type:"string"`
  5719. // The upload's file name.
  5720. Name *string `locationName:"name" type:"string"`
  5721. // The upload's status.
  5722. //
  5723. // Must be one of the following values:
  5724. //
  5725. // FAILED: A failed status.
  5726. //
  5727. // INITIALIZED: An initialized status.
  5728. //
  5729. // PROCESSING: A processing status.
  5730. //
  5731. // SUCCEEDED: A succeeded status.
  5732. Status *string `locationName:"status" type:"string" enum:"UploadStatus"`
  5733. // The upload's type.
  5734. //
  5735. // Must be one of the following values:
  5736. //
  5737. // ANDROID_APP: An Android upload.
  5738. //
  5739. // IOS_APP: An iOS upload.
  5740. //
  5741. // WEB_APP: A web appliction upload.
  5742. //
  5743. // EXTERNAL_DATA: An external data upload.
  5744. //
  5745. // APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.
  5746. //
  5747. // APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.
  5748. //
  5749. // APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.
  5750. //
  5751. // APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.
  5752. //
  5753. // APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package
  5754. // upload.
  5755. //
  5756. // APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.
  5757. //
  5758. // CALABASH_TEST_PACKAGE: A Calabash test package upload.
  5759. //
  5760. // INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.
  5761. //
  5762. // UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.
  5763. //
  5764. // UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.
  5765. //
  5766. // XCTEST_TEST_PACKAGE: An XCode test package upload.
  5767. //
  5768. // XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.
  5769. Type *string `locationName:"type" type:"string" enum:"UploadType"`
  5770. // The pre-signed Amazon S3 URL that was used to store a file through a corresponding
  5771. // PUT request.
  5772. Url *string `locationName:"url" type:"string"`
  5773. }
  5774. // String returns the string representation
  5775. func (s Upload) String() string {
  5776. return awsutil.Prettify(s)
  5777. }
  5778. // GoString returns the string representation
  5779. func (s Upload) GoString() string {
  5780. return s.String()
  5781. }
  5782. const (
  5783. // @enum ArtifactCategory
  5784. ArtifactCategoryScreenshot = "SCREENSHOT"
  5785. // @enum ArtifactCategory
  5786. ArtifactCategoryFile = "FILE"
  5787. // @enum ArtifactCategory
  5788. ArtifactCategoryLog = "LOG"
  5789. )
  5790. const (
  5791. // @enum ArtifactType
  5792. ArtifactTypeUnknown = "UNKNOWN"
  5793. // @enum ArtifactType
  5794. ArtifactTypeScreenshot = "SCREENSHOT"
  5795. // @enum ArtifactType
  5796. ArtifactTypeDeviceLog = "DEVICE_LOG"
  5797. // @enum ArtifactType
  5798. ArtifactTypeMessageLog = "MESSAGE_LOG"
  5799. // @enum ArtifactType
  5800. ArtifactTypeVideoLog = "VIDEO_LOG"
  5801. // @enum ArtifactType
  5802. ArtifactTypeResultLog = "RESULT_LOG"
  5803. // @enum ArtifactType
  5804. ArtifactTypeServiceLog = "SERVICE_LOG"
  5805. // @enum ArtifactType
  5806. ArtifactTypeWebkitLog = "WEBKIT_LOG"
  5807. // @enum ArtifactType
  5808. ArtifactTypeInstrumentationOutput = "INSTRUMENTATION_OUTPUT"
  5809. // @enum ArtifactType
  5810. ArtifactTypeExerciserMonkeyOutput = "EXERCISER_MONKEY_OUTPUT"
  5811. // @enum ArtifactType
  5812. ArtifactTypeCalabashJsonOutput = "CALABASH_JSON_OUTPUT"
  5813. // @enum ArtifactType
  5814. ArtifactTypeCalabashPrettyOutput = "CALABASH_PRETTY_OUTPUT"
  5815. // @enum ArtifactType
  5816. ArtifactTypeCalabashStandardOutput = "CALABASH_STANDARD_OUTPUT"
  5817. // @enum ArtifactType
  5818. ArtifactTypeCalabashJavaXmlOutput = "CALABASH_JAVA_XML_OUTPUT"
  5819. // @enum ArtifactType
  5820. ArtifactTypeAutomationOutput = "AUTOMATION_OUTPUT"
  5821. // @enum ArtifactType
  5822. ArtifactTypeAppiumServerOutput = "APPIUM_SERVER_OUTPUT"
  5823. // @enum ArtifactType
  5824. ArtifactTypeAppiumJavaOutput = "APPIUM_JAVA_OUTPUT"
  5825. // @enum ArtifactType
  5826. ArtifactTypeAppiumJavaXmlOutput = "APPIUM_JAVA_XML_OUTPUT"
  5827. // @enum ArtifactType
  5828. ArtifactTypeAppiumPythonOutput = "APPIUM_PYTHON_OUTPUT"
  5829. // @enum ArtifactType
  5830. ArtifactTypeAppiumPythonXmlOutput = "APPIUM_PYTHON_XML_OUTPUT"
  5831. // @enum ArtifactType
  5832. ArtifactTypeExplorerEventLog = "EXPLORER_EVENT_LOG"
  5833. // @enum ArtifactType
  5834. ArtifactTypeExplorerSummaryLog = "EXPLORER_SUMMARY_LOG"
  5835. // @enum ArtifactType
  5836. ArtifactTypeApplicationCrashReport = "APPLICATION_CRASH_REPORT"
  5837. // @enum ArtifactType
  5838. ArtifactTypeXctestLog = "XCTEST_LOG"
  5839. // @enum ArtifactType
  5840. ArtifactTypeVideo = "VIDEO"
  5841. )
  5842. const (
  5843. // @enum BillingMethod
  5844. BillingMethodMetered = "METERED"
  5845. // @enum BillingMethod
  5846. BillingMethodUnmetered = "UNMETERED"
  5847. )
  5848. const (
  5849. // @enum CurrencyCode
  5850. CurrencyCodeUsd = "USD"
  5851. )
  5852. const (
  5853. // @enum DeviceAttribute
  5854. DeviceAttributeArn = "ARN"
  5855. // @enum DeviceAttribute
  5856. DeviceAttributePlatform = "PLATFORM"
  5857. // @enum DeviceAttribute
  5858. DeviceAttributeFormFactor = "FORM_FACTOR"
  5859. // @enum DeviceAttribute
  5860. DeviceAttributeManufacturer = "MANUFACTURER"
  5861. // @enum DeviceAttribute
  5862. DeviceAttributeRemoteAccessEnabled = "REMOTE_ACCESS_ENABLED"
  5863. )
  5864. const (
  5865. // @enum DeviceFormFactor
  5866. DeviceFormFactorPhone = "PHONE"
  5867. // @enum DeviceFormFactor
  5868. DeviceFormFactorTablet = "TABLET"
  5869. )
  5870. const (
  5871. // @enum DevicePlatform
  5872. DevicePlatformAndroid = "ANDROID"
  5873. // @enum DevicePlatform
  5874. DevicePlatformIos = "IOS"
  5875. )
  5876. const (
  5877. // @enum DevicePoolType
  5878. DevicePoolTypeCurated = "CURATED"
  5879. // @enum DevicePoolType
  5880. DevicePoolTypePrivate = "PRIVATE"
  5881. )
  5882. const (
  5883. // @enum ExecutionResult
  5884. ExecutionResultPending = "PENDING"
  5885. // @enum ExecutionResult
  5886. ExecutionResultPassed = "PASSED"
  5887. // @enum ExecutionResult
  5888. ExecutionResultWarned = "WARNED"
  5889. // @enum ExecutionResult
  5890. ExecutionResultFailed = "FAILED"
  5891. // @enum ExecutionResult
  5892. ExecutionResultSkipped = "SKIPPED"
  5893. // @enum ExecutionResult
  5894. ExecutionResultErrored = "ERRORED"
  5895. // @enum ExecutionResult
  5896. ExecutionResultStopped = "STOPPED"
  5897. )
  5898. const (
  5899. // @enum ExecutionStatus
  5900. ExecutionStatusPending = "PENDING"
  5901. // @enum ExecutionStatus
  5902. ExecutionStatusPendingConcurrency = "PENDING_CONCURRENCY"
  5903. // @enum ExecutionStatus
  5904. ExecutionStatusPendingDevice = "PENDING_DEVICE"
  5905. // @enum ExecutionStatus
  5906. ExecutionStatusProcessing = "PROCESSING"
  5907. // @enum ExecutionStatus
  5908. ExecutionStatusScheduling = "SCHEDULING"
  5909. // @enum ExecutionStatus
  5910. ExecutionStatusPreparing = "PREPARING"
  5911. // @enum ExecutionStatus
  5912. ExecutionStatusRunning = "RUNNING"
  5913. // @enum ExecutionStatus
  5914. ExecutionStatusCompleted = "COMPLETED"
  5915. // @enum ExecutionStatus
  5916. ExecutionStatusStopping = "STOPPING"
  5917. )
  5918. const (
  5919. // @enum OfferingTransactionType
  5920. OfferingTransactionTypePurchase = "PURCHASE"
  5921. // @enum OfferingTransactionType
  5922. OfferingTransactionTypeRenew = "RENEW"
  5923. // @enum OfferingTransactionType
  5924. OfferingTransactionTypeSystem = "SYSTEM"
  5925. )
  5926. const (
  5927. // @enum OfferingType
  5928. OfferingTypeRecurring = "RECURRING"
  5929. )
  5930. const (
  5931. // @enum RecurringChargeFrequency
  5932. RecurringChargeFrequencyMonthly = "MONTHLY"
  5933. )
  5934. const (
  5935. // @enum RuleOperator
  5936. RuleOperatorEquals = "EQUALS"
  5937. // @enum RuleOperator
  5938. RuleOperatorLessThan = "LESS_THAN"
  5939. // @enum RuleOperator
  5940. RuleOperatorGreaterThan = "GREATER_THAN"
  5941. // @enum RuleOperator
  5942. RuleOperatorIn = "IN"
  5943. // @enum RuleOperator
  5944. RuleOperatorNotIn = "NOT_IN"
  5945. )
  5946. const (
  5947. // @enum SampleType
  5948. SampleTypeCpu = "CPU"
  5949. // @enum SampleType
  5950. SampleTypeMemory = "MEMORY"
  5951. // @enum SampleType
  5952. SampleTypeThreads = "THREADS"
  5953. // @enum SampleType
  5954. SampleTypeRxRate = "RX_RATE"
  5955. // @enum SampleType
  5956. SampleTypeTxRate = "TX_RATE"
  5957. // @enum SampleType
  5958. SampleTypeRx = "RX"
  5959. // @enum SampleType
  5960. SampleTypeTx = "TX"
  5961. // @enum SampleType
  5962. SampleTypeNativeFrames = "NATIVE_FRAMES"
  5963. // @enum SampleType
  5964. SampleTypeNativeFps = "NATIVE_FPS"
  5965. // @enum SampleType
  5966. SampleTypeNativeMinDrawtime = "NATIVE_MIN_DRAWTIME"
  5967. // @enum SampleType
  5968. SampleTypeNativeAvgDrawtime = "NATIVE_AVG_DRAWTIME"
  5969. // @enum SampleType
  5970. SampleTypeNativeMaxDrawtime = "NATIVE_MAX_DRAWTIME"
  5971. // @enum SampleType
  5972. SampleTypeOpenglFrames = "OPENGL_FRAMES"
  5973. // @enum SampleType
  5974. SampleTypeOpenglFps = "OPENGL_FPS"
  5975. // @enum SampleType
  5976. SampleTypeOpenglMinDrawtime = "OPENGL_MIN_DRAWTIME"
  5977. // @enum SampleType
  5978. SampleTypeOpenglAvgDrawtime = "OPENGL_AVG_DRAWTIME"
  5979. // @enum SampleType
  5980. SampleTypeOpenglMaxDrawtime = "OPENGL_MAX_DRAWTIME"
  5981. )
  5982. const (
  5983. // @enum TestType
  5984. TestTypeBuiltinFuzz = "BUILTIN_FUZZ"
  5985. // @enum TestType
  5986. TestTypeBuiltinExplorer = "BUILTIN_EXPLORER"
  5987. // @enum TestType
  5988. TestTypeAppiumJavaJunit = "APPIUM_JAVA_JUNIT"
  5989. // @enum TestType
  5990. TestTypeAppiumJavaTestng = "APPIUM_JAVA_TESTNG"
  5991. // @enum TestType
  5992. TestTypeAppiumPython = "APPIUM_PYTHON"
  5993. // @enum TestType
  5994. TestTypeAppiumWebJavaJunit = "APPIUM_WEB_JAVA_JUNIT"
  5995. // @enum TestType
  5996. TestTypeAppiumWebJavaTestng = "APPIUM_WEB_JAVA_TESTNG"
  5997. // @enum TestType
  5998. TestTypeAppiumWebPython = "APPIUM_WEB_PYTHON"
  5999. // @enum TestType
  6000. TestTypeCalabash = "CALABASH"
  6001. // @enum TestType
  6002. TestTypeInstrumentation = "INSTRUMENTATION"
  6003. // @enum TestType
  6004. TestTypeUiautomation = "UIAUTOMATION"
  6005. // @enum TestType
  6006. TestTypeUiautomator = "UIAUTOMATOR"
  6007. // @enum TestType
  6008. TestTypeXctest = "XCTEST"
  6009. // @enum TestType
  6010. TestTypeXctestUi = "XCTEST_UI"
  6011. )
  6012. const (
  6013. // @enum UploadStatus
  6014. UploadStatusInitialized = "INITIALIZED"
  6015. // @enum UploadStatus
  6016. UploadStatusProcessing = "PROCESSING"
  6017. // @enum UploadStatus
  6018. UploadStatusSucceeded = "SUCCEEDED"
  6019. // @enum UploadStatus
  6020. UploadStatusFailed = "FAILED"
  6021. )
  6022. const (
  6023. // @enum UploadType
  6024. UploadTypeAndroidApp = "ANDROID_APP"
  6025. // @enum UploadType
  6026. UploadTypeIosApp = "IOS_APP"
  6027. // @enum UploadType
  6028. UploadTypeWebApp = "WEB_APP"
  6029. // @enum UploadType
  6030. UploadTypeExternalData = "EXTERNAL_DATA"
  6031. // @enum UploadType
  6032. UploadTypeAppiumJavaJunitTestPackage = "APPIUM_JAVA_JUNIT_TEST_PACKAGE"
  6033. // @enum UploadType
  6034. UploadTypeAppiumJavaTestngTestPackage = "APPIUM_JAVA_TESTNG_TEST_PACKAGE"
  6035. // @enum UploadType
  6036. UploadTypeAppiumPythonTestPackage = "APPIUM_PYTHON_TEST_PACKAGE"
  6037. // @enum UploadType
  6038. UploadTypeAppiumWebJavaJunitTestPackage = "APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE"
  6039. // @enum UploadType
  6040. UploadTypeAppiumWebJavaTestngTestPackage = "APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE"
  6041. // @enum UploadType
  6042. UploadTypeAppiumWebPythonTestPackage = "APPIUM_WEB_PYTHON_TEST_PACKAGE"
  6043. // @enum UploadType
  6044. UploadTypeCalabashTestPackage = "CALABASH_TEST_PACKAGE"
  6045. // @enum UploadType
  6046. UploadTypeInstrumentationTestPackage = "INSTRUMENTATION_TEST_PACKAGE"
  6047. // @enum UploadType
  6048. UploadTypeUiautomationTestPackage = "UIAUTOMATION_TEST_PACKAGE"
  6049. // @enum UploadType
  6050. UploadTypeUiautomatorTestPackage = "UIAUTOMATOR_TEST_PACKAGE"
  6051. // @enum UploadType
  6052. UploadTypeXctestTestPackage = "XCTEST_TEST_PACKAGE"
  6053. // @enum UploadType
  6054. UploadTypeXctestUiTestPackage = "XCTEST_UI_TEST_PACKAGE"
  6055. )