api.go 97 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630
  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 request for the CreateDevicePool operation.
  11. func (c *DeviceFarm) CreateDevicePoolRequest(input *CreateDevicePoolInput) (req *request.Request, output *CreateDevicePoolOutput) {
  12. op := &request.Operation{
  13. Name: opCreateDevicePool,
  14. HTTPMethod: "POST",
  15. HTTPPath: "/",
  16. }
  17. if input == nil {
  18. input = &CreateDevicePoolInput{}
  19. }
  20. req = c.newRequest(op, input, output)
  21. output = &CreateDevicePoolOutput{}
  22. req.Data = output
  23. return
  24. }
  25. // Creates a device pool.
  26. func (c *DeviceFarm) CreateDevicePool(input *CreateDevicePoolInput) (*CreateDevicePoolOutput, error) {
  27. req, out := c.CreateDevicePoolRequest(input)
  28. err := req.Send()
  29. return out, err
  30. }
  31. const opCreateProject = "CreateProject"
  32. // CreateProjectRequest generates a request for the CreateProject operation.
  33. func (c *DeviceFarm) CreateProjectRequest(input *CreateProjectInput) (req *request.Request, output *CreateProjectOutput) {
  34. op := &request.Operation{
  35. Name: opCreateProject,
  36. HTTPMethod: "POST",
  37. HTTPPath: "/",
  38. }
  39. if input == nil {
  40. input = &CreateProjectInput{}
  41. }
  42. req = c.newRequest(op, input, output)
  43. output = &CreateProjectOutput{}
  44. req.Data = output
  45. return
  46. }
  47. // Creates a new project.
  48. func (c *DeviceFarm) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error) {
  49. req, out := c.CreateProjectRequest(input)
  50. err := req.Send()
  51. return out, err
  52. }
  53. const opCreateUpload = "CreateUpload"
  54. // CreateUploadRequest generates a request for the CreateUpload operation.
  55. func (c *DeviceFarm) CreateUploadRequest(input *CreateUploadInput) (req *request.Request, output *CreateUploadOutput) {
  56. op := &request.Operation{
  57. Name: opCreateUpload,
  58. HTTPMethod: "POST",
  59. HTTPPath: "/",
  60. }
  61. if input == nil {
  62. input = &CreateUploadInput{}
  63. }
  64. req = c.newRequest(op, input, output)
  65. output = &CreateUploadOutput{}
  66. req.Data = output
  67. return
  68. }
  69. // Uploads an app or test scripts.
  70. func (c *DeviceFarm) CreateUpload(input *CreateUploadInput) (*CreateUploadOutput, error) {
  71. req, out := c.CreateUploadRequest(input)
  72. err := req.Send()
  73. return out, err
  74. }
  75. const opGetAccountSettings = "GetAccountSettings"
  76. // GetAccountSettingsRequest generates a request for the GetAccountSettings operation.
  77. func (c *DeviceFarm) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput) {
  78. op := &request.Operation{
  79. Name: opGetAccountSettings,
  80. HTTPMethod: "POST",
  81. HTTPPath: "/",
  82. }
  83. if input == nil {
  84. input = &GetAccountSettingsInput{}
  85. }
  86. req = c.newRequest(op, input, output)
  87. output = &GetAccountSettingsOutput{}
  88. req.Data = output
  89. return
  90. }
  91. // Returns the number of unmetered iOS and/or unmetered Android devices that
  92. // have been purchased by the account.
  93. func (c *DeviceFarm) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) {
  94. req, out := c.GetAccountSettingsRequest(input)
  95. err := req.Send()
  96. return out, err
  97. }
  98. const opGetDevice = "GetDevice"
  99. // GetDeviceRequest generates a request for the GetDevice operation.
  100. func (c *DeviceFarm) GetDeviceRequest(input *GetDeviceInput) (req *request.Request, output *GetDeviceOutput) {
  101. op := &request.Operation{
  102. Name: opGetDevice,
  103. HTTPMethod: "POST",
  104. HTTPPath: "/",
  105. }
  106. if input == nil {
  107. input = &GetDeviceInput{}
  108. }
  109. req = c.newRequest(op, input, output)
  110. output = &GetDeviceOutput{}
  111. req.Data = output
  112. return
  113. }
  114. // Gets information about a unique device type.
  115. func (c *DeviceFarm) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) {
  116. req, out := c.GetDeviceRequest(input)
  117. err := req.Send()
  118. return out, err
  119. }
  120. const opGetDevicePool = "GetDevicePool"
  121. // GetDevicePoolRequest generates a request for the GetDevicePool operation.
  122. func (c *DeviceFarm) GetDevicePoolRequest(input *GetDevicePoolInput) (req *request.Request, output *GetDevicePoolOutput) {
  123. op := &request.Operation{
  124. Name: opGetDevicePool,
  125. HTTPMethod: "POST",
  126. HTTPPath: "/",
  127. }
  128. if input == nil {
  129. input = &GetDevicePoolInput{}
  130. }
  131. req = c.newRequest(op, input, output)
  132. output = &GetDevicePoolOutput{}
  133. req.Data = output
  134. return
  135. }
  136. // Gets information about a device pool.
  137. func (c *DeviceFarm) GetDevicePool(input *GetDevicePoolInput) (*GetDevicePoolOutput, error) {
  138. req, out := c.GetDevicePoolRequest(input)
  139. err := req.Send()
  140. return out, err
  141. }
  142. const opGetDevicePoolCompatibility = "GetDevicePoolCompatibility"
  143. // GetDevicePoolCompatibilityRequest generates a request for the GetDevicePoolCompatibility operation.
  144. func (c *DeviceFarm) GetDevicePoolCompatibilityRequest(input *GetDevicePoolCompatibilityInput) (req *request.Request, output *GetDevicePoolCompatibilityOutput) {
  145. op := &request.Operation{
  146. Name: opGetDevicePoolCompatibility,
  147. HTTPMethod: "POST",
  148. HTTPPath: "/",
  149. }
  150. if input == nil {
  151. input = &GetDevicePoolCompatibilityInput{}
  152. }
  153. req = c.newRequest(op, input, output)
  154. output = &GetDevicePoolCompatibilityOutput{}
  155. req.Data = output
  156. return
  157. }
  158. // Gets information about compatibility with a device pool.
  159. func (c *DeviceFarm) GetDevicePoolCompatibility(input *GetDevicePoolCompatibilityInput) (*GetDevicePoolCompatibilityOutput, error) {
  160. req, out := c.GetDevicePoolCompatibilityRequest(input)
  161. err := req.Send()
  162. return out, err
  163. }
  164. const opGetJob = "GetJob"
  165. // GetJobRequest generates a request for the GetJob operation.
  166. func (c *DeviceFarm) GetJobRequest(input *GetJobInput) (req *request.Request, output *GetJobOutput) {
  167. op := &request.Operation{
  168. Name: opGetJob,
  169. HTTPMethod: "POST",
  170. HTTPPath: "/",
  171. }
  172. if input == nil {
  173. input = &GetJobInput{}
  174. }
  175. req = c.newRequest(op, input, output)
  176. output = &GetJobOutput{}
  177. req.Data = output
  178. return
  179. }
  180. // Gets information about a job.
  181. func (c *DeviceFarm) GetJob(input *GetJobInput) (*GetJobOutput, error) {
  182. req, out := c.GetJobRequest(input)
  183. err := req.Send()
  184. return out, err
  185. }
  186. const opGetProject = "GetProject"
  187. // GetProjectRequest generates a request for the GetProject operation.
  188. func (c *DeviceFarm) GetProjectRequest(input *GetProjectInput) (req *request.Request, output *GetProjectOutput) {
  189. op := &request.Operation{
  190. Name: opGetProject,
  191. HTTPMethod: "POST",
  192. HTTPPath: "/",
  193. }
  194. if input == nil {
  195. input = &GetProjectInput{}
  196. }
  197. req = c.newRequest(op, input, output)
  198. output = &GetProjectOutput{}
  199. req.Data = output
  200. return
  201. }
  202. // Gets information about a project.
  203. func (c *DeviceFarm) GetProject(input *GetProjectInput) (*GetProjectOutput, error) {
  204. req, out := c.GetProjectRequest(input)
  205. err := req.Send()
  206. return out, err
  207. }
  208. const opGetRun = "GetRun"
  209. // GetRunRequest generates a request for the GetRun operation.
  210. func (c *DeviceFarm) GetRunRequest(input *GetRunInput) (req *request.Request, output *GetRunOutput) {
  211. op := &request.Operation{
  212. Name: opGetRun,
  213. HTTPMethod: "POST",
  214. HTTPPath: "/",
  215. }
  216. if input == nil {
  217. input = &GetRunInput{}
  218. }
  219. req = c.newRequest(op, input, output)
  220. output = &GetRunOutput{}
  221. req.Data = output
  222. return
  223. }
  224. // Gets information about a run.
  225. func (c *DeviceFarm) GetRun(input *GetRunInput) (*GetRunOutput, error) {
  226. req, out := c.GetRunRequest(input)
  227. err := req.Send()
  228. return out, err
  229. }
  230. const opGetSuite = "GetSuite"
  231. // GetSuiteRequest generates a request for the GetSuite operation.
  232. func (c *DeviceFarm) GetSuiteRequest(input *GetSuiteInput) (req *request.Request, output *GetSuiteOutput) {
  233. op := &request.Operation{
  234. Name: opGetSuite,
  235. HTTPMethod: "POST",
  236. HTTPPath: "/",
  237. }
  238. if input == nil {
  239. input = &GetSuiteInput{}
  240. }
  241. req = c.newRequest(op, input, output)
  242. output = &GetSuiteOutput{}
  243. req.Data = output
  244. return
  245. }
  246. // Gets information about a suite.
  247. func (c *DeviceFarm) GetSuite(input *GetSuiteInput) (*GetSuiteOutput, error) {
  248. req, out := c.GetSuiteRequest(input)
  249. err := req.Send()
  250. return out, err
  251. }
  252. const opGetTest = "GetTest"
  253. // GetTestRequest generates a request for the GetTest operation.
  254. func (c *DeviceFarm) GetTestRequest(input *GetTestInput) (req *request.Request, output *GetTestOutput) {
  255. op := &request.Operation{
  256. Name: opGetTest,
  257. HTTPMethod: "POST",
  258. HTTPPath: "/",
  259. }
  260. if input == nil {
  261. input = &GetTestInput{}
  262. }
  263. req = c.newRequest(op, input, output)
  264. output = &GetTestOutput{}
  265. req.Data = output
  266. return
  267. }
  268. // Gets information about a test.
  269. func (c *DeviceFarm) GetTest(input *GetTestInput) (*GetTestOutput, error) {
  270. req, out := c.GetTestRequest(input)
  271. err := req.Send()
  272. return out, err
  273. }
  274. const opGetUpload = "GetUpload"
  275. // GetUploadRequest generates a request for the GetUpload operation.
  276. func (c *DeviceFarm) GetUploadRequest(input *GetUploadInput) (req *request.Request, output *GetUploadOutput) {
  277. op := &request.Operation{
  278. Name: opGetUpload,
  279. HTTPMethod: "POST",
  280. HTTPPath: "/",
  281. }
  282. if input == nil {
  283. input = &GetUploadInput{}
  284. }
  285. req = c.newRequest(op, input, output)
  286. output = &GetUploadOutput{}
  287. req.Data = output
  288. return
  289. }
  290. // Gets information about an upload.
  291. func (c *DeviceFarm) GetUpload(input *GetUploadInput) (*GetUploadOutput, error) {
  292. req, out := c.GetUploadRequest(input)
  293. err := req.Send()
  294. return out, err
  295. }
  296. const opListArtifacts = "ListArtifacts"
  297. // ListArtifactsRequest generates a request for the ListArtifacts operation.
  298. func (c *DeviceFarm) ListArtifactsRequest(input *ListArtifactsInput) (req *request.Request, output *ListArtifactsOutput) {
  299. op := &request.Operation{
  300. Name: opListArtifacts,
  301. HTTPMethod: "POST",
  302. HTTPPath: "/",
  303. Paginator: &request.Paginator{
  304. InputTokens: []string{"nextToken"},
  305. OutputTokens: []string{"nextToken"},
  306. LimitToken: "",
  307. TruncationToken: "",
  308. },
  309. }
  310. if input == nil {
  311. input = &ListArtifactsInput{}
  312. }
  313. req = c.newRequest(op, input, output)
  314. output = &ListArtifactsOutput{}
  315. req.Data = output
  316. return
  317. }
  318. // Gets information about artifacts.
  319. func (c *DeviceFarm) ListArtifacts(input *ListArtifactsInput) (*ListArtifactsOutput, error) {
  320. req, out := c.ListArtifactsRequest(input)
  321. err := req.Send()
  322. return out, err
  323. }
  324. func (c *DeviceFarm) ListArtifactsPages(input *ListArtifactsInput, fn func(p *ListArtifactsOutput, lastPage bool) (shouldContinue bool)) error {
  325. page, _ := c.ListArtifactsRequest(input)
  326. return page.EachPage(func(p interface{}, lastPage bool) bool {
  327. return fn(p.(*ListArtifactsOutput), lastPage)
  328. })
  329. }
  330. const opListDevicePools = "ListDevicePools"
  331. // ListDevicePoolsRequest generates a request for the ListDevicePools operation.
  332. func (c *DeviceFarm) ListDevicePoolsRequest(input *ListDevicePoolsInput) (req *request.Request, output *ListDevicePoolsOutput) {
  333. op := &request.Operation{
  334. Name: opListDevicePools,
  335. HTTPMethod: "POST",
  336. HTTPPath: "/",
  337. Paginator: &request.Paginator{
  338. InputTokens: []string{"nextToken"},
  339. OutputTokens: []string{"nextToken"},
  340. LimitToken: "",
  341. TruncationToken: "",
  342. },
  343. }
  344. if input == nil {
  345. input = &ListDevicePoolsInput{}
  346. }
  347. req = c.newRequest(op, input, output)
  348. output = &ListDevicePoolsOutput{}
  349. req.Data = output
  350. return
  351. }
  352. // Gets information about device pools.
  353. func (c *DeviceFarm) ListDevicePools(input *ListDevicePoolsInput) (*ListDevicePoolsOutput, error) {
  354. req, out := c.ListDevicePoolsRequest(input)
  355. err := req.Send()
  356. return out, err
  357. }
  358. func (c *DeviceFarm) ListDevicePoolsPages(input *ListDevicePoolsInput, fn func(p *ListDevicePoolsOutput, lastPage bool) (shouldContinue bool)) error {
  359. page, _ := c.ListDevicePoolsRequest(input)
  360. return page.EachPage(func(p interface{}, lastPage bool) bool {
  361. return fn(p.(*ListDevicePoolsOutput), lastPage)
  362. })
  363. }
  364. const opListDevices = "ListDevices"
  365. // ListDevicesRequest generates a request for the ListDevices operation.
  366. func (c *DeviceFarm) ListDevicesRequest(input *ListDevicesInput) (req *request.Request, output *ListDevicesOutput) {
  367. op := &request.Operation{
  368. Name: opListDevices,
  369. HTTPMethod: "POST",
  370. HTTPPath: "/",
  371. Paginator: &request.Paginator{
  372. InputTokens: []string{"nextToken"},
  373. OutputTokens: []string{"nextToken"},
  374. LimitToken: "",
  375. TruncationToken: "",
  376. },
  377. }
  378. if input == nil {
  379. input = &ListDevicesInput{}
  380. }
  381. req = c.newRequest(op, input, output)
  382. output = &ListDevicesOutput{}
  383. req.Data = output
  384. return
  385. }
  386. // Gets information about unique device types.
  387. func (c *DeviceFarm) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error) {
  388. req, out := c.ListDevicesRequest(input)
  389. err := req.Send()
  390. return out, err
  391. }
  392. func (c *DeviceFarm) ListDevicesPages(input *ListDevicesInput, fn func(p *ListDevicesOutput, lastPage bool) (shouldContinue bool)) error {
  393. page, _ := c.ListDevicesRequest(input)
  394. return page.EachPage(func(p interface{}, lastPage bool) bool {
  395. return fn(p.(*ListDevicesOutput), lastPage)
  396. })
  397. }
  398. const opListJobs = "ListJobs"
  399. // ListJobsRequest generates a request for the ListJobs operation.
  400. func (c *DeviceFarm) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) {
  401. op := &request.Operation{
  402. Name: opListJobs,
  403. HTTPMethod: "POST",
  404. HTTPPath: "/",
  405. Paginator: &request.Paginator{
  406. InputTokens: []string{"nextToken"},
  407. OutputTokens: []string{"nextToken"},
  408. LimitToken: "",
  409. TruncationToken: "",
  410. },
  411. }
  412. if input == nil {
  413. input = &ListJobsInput{}
  414. }
  415. req = c.newRequest(op, input, output)
  416. output = &ListJobsOutput{}
  417. req.Data = output
  418. return
  419. }
  420. // Gets information about jobs.
  421. func (c *DeviceFarm) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) {
  422. req, out := c.ListJobsRequest(input)
  423. err := req.Send()
  424. return out, err
  425. }
  426. func (c *DeviceFarm) ListJobsPages(input *ListJobsInput, fn func(p *ListJobsOutput, lastPage bool) (shouldContinue bool)) error {
  427. page, _ := c.ListJobsRequest(input)
  428. return page.EachPage(func(p interface{}, lastPage bool) bool {
  429. return fn(p.(*ListJobsOutput), lastPage)
  430. })
  431. }
  432. const opListProjects = "ListProjects"
  433. // ListProjectsRequest generates a request for the ListProjects operation.
  434. func (c *DeviceFarm) ListProjectsRequest(input *ListProjectsInput) (req *request.Request, output *ListProjectsOutput) {
  435. op := &request.Operation{
  436. Name: opListProjects,
  437. HTTPMethod: "POST",
  438. HTTPPath: "/",
  439. Paginator: &request.Paginator{
  440. InputTokens: []string{"nextToken"},
  441. OutputTokens: []string{"nextToken"},
  442. LimitToken: "",
  443. TruncationToken: "",
  444. },
  445. }
  446. if input == nil {
  447. input = &ListProjectsInput{}
  448. }
  449. req = c.newRequest(op, input, output)
  450. output = &ListProjectsOutput{}
  451. req.Data = output
  452. return
  453. }
  454. // Gets information about projects.
  455. func (c *DeviceFarm) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error) {
  456. req, out := c.ListProjectsRequest(input)
  457. err := req.Send()
  458. return out, err
  459. }
  460. func (c *DeviceFarm) ListProjectsPages(input *ListProjectsInput, fn func(p *ListProjectsOutput, lastPage bool) (shouldContinue bool)) error {
  461. page, _ := c.ListProjectsRequest(input)
  462. return page.EachPage(func(p interface{}, lastPage bool) bool {
  463. return fn(p.(*ListProjectsOutput), lastPage)
  464. })
  465. }
  466. const opListRuns = "ListRuns"
  467. // ListRunsRequest generates a request for the ListRuns operation.
  468. func (c *DeviceFarm) ListRunsRequest(input *ListRunsInput) (req *request.Request, output *ListRunsOutput) {
  469. op := &request.Operation{
  470. Name: opListRuns,
  471. HTTPMethod: "POST",
  472. HTTPPath: "/",
  473. Paginator: &request.Paginator{
  474. InputTokens: []string{"nextToken"},
  475. OutputTokens: []string{"nextToken"},
  476. LimitToken: "",
  477. TruncationToken: "",
  478. },
  479. }
  480. if input == nil {
  481. input = &ListRunsInput{}
  482. }
  483. req = c.newRequest(op, input, output)
  484. output = &ListRunsOutput{}
  485. req.Data = output
  486. return
  487. }
  488. // Gets information about runs.
  489. func (c *DeviceFarm) ListRuns(input *ListRunsInput) (*ListRunsOutput, error) {
  490. req, out := c.ListRunsRequest(input)
  491. err := req.Send()
  492. return out, err
  493. }
  494. func (c *DeviceFarm) ListRunsPages(input *ListRunsInput, fn func(p *ListRunsOutput, lastPage bool) (shouldContinue bool)) error {
  495. page, _ := c.ListRunsRequest(input)
  496. return page.EachPage(func(p interface{}, lastPage bool) bool {
  497. return fn(p.(*ListRunsOutput), lastPage)
  498. })
  499. }
  500. const opListSamples = "ListSamples"
  501. // ListSamplesRequest generates a request for the ListSamples operation.
  502. func (c *DeviceFarm) ListSamplesRequest(input *ListSamplesInput) (req *request.Request, output *ListSamplesOutput) {
  503. op := &request.Operation{
  504. Name: opListSamples,
  505. HTTPMethod: "POST",
  506. HTTPPath: "/",
  507. Paginator: &request.Paginator{
  508. InputTokens: []string{"nextToken"},
  509. OutputTokens: []string{"nextToken"},
  510. LimitToken: "",
  511. TruncationToken: "",
  512. },
  513. }
  514. if input == nil {
  515. input = &ListSamplesInput{}
  516. }
  517. req = c.newRequest(op, input, output)
  518. output = &ListSamplesOutput{}
  519. req.Data = output
  520. return
  521. }
  522. // Gets information about samples.
  523. func (c *DeviceFarm) ListSamples(input *ListSamplesInput) (*ListSamplesOutput, error) {
  524. req, out := c.ListSamplesRequest(input)
  525. err := req.Send()
  526. return out, err
  527. }
  528. func (c *DeviceFarm) ListSamplesPages(input *ListSamplesInput, fn func(p *ListSamplesOutput, lastPage bool) (shouldContinue bool)) error {
  529. page, _ := c.ListSamplesRequest(input)
  530. return page.EachPage(func(p interface{}, lastPage bool) bool {
  531. return fn(p.(*ListSamplesOutput), lastPage)
  532. })
  533. }
  534. const opListSuites = "ListSuites"
  535. // ListSuitesRequest generates a request for the ListSuites operation.
  536. func (c *DeviceFarm) ListSuitesRequest(input *ListSuitesInput) (req *request.Request, output *ListSuitesOutput) {
  537. op := &request.Operation{
  538. Name: opListSuites,
  539. HTTPMethod: "POST",
  540. HTTPPath: "/",
  541. Paginator: &request.Paginator{
  542. InputTokens: []string{"nextToken"},
  543. OutputTokens: []string{"nextToken"},
  544. LimitToken: "",
  545. TruncationToken: "",
  546. },
  547. }
  548. if input == nil {
  549. input = &ListSuitesInput{}
  550. }
  551. req = c.newRequest(op, input, output)
  552. output = &ListSuitesOutput{}
  553. req.Data = output
  554. return
  555. }
  556. // Gets information about suites.
  557. func (c *DeviceFarm) ListSuites(input *ListSuitesInput) (*ListSuitesOutput, error) {
  558. req, out := c.ListSuitesRequest(input)
  559. err := req.Send()
  560. return out, err
  561. }
  562. func (c *DeviceFarm) ListSuitesPages(input *ListSuitesInput, fn func(p *ListSuitesOutput, lastPage bool) (shouldContinue bool)) error {
  563. page, _ := c.ListSuitesRequest(input)
  564. return page.EachPage(func(p interface{}, lastPage bool) bool {
  565. return fn(p.(*ListSuitesOutput), lastPage)
  566. })
  567. }
  568. const opListTests = "ListTests"
  569. // ListTestsRequest generates a request for the ListTests operation.
  570. func (c *DeviceFarm) ListTestsRequest(input *ListTestsInput) (req *request.Request, output *ListTestsOutput) {
  571. op := &request.Operation{
  572. Name: opListTests,
  573. HTTPMethod: "POST",
  574. HTTPPath: "/",
  575. Paginator: &request.Paginator{
  576. InputTokens: []string{"nextToken"},
  577. OutputTokens: []string{"nextToken"},
  578. LimitToken: "",
  579. TruncationToken: "",
  580. },
  581. }
  582. if input == nil {
  583. input = &ListTestsInput{}
  584. }
  585. req = c.newRequest(op, input, output)
  586. output = &ListTestsOutput{}
  587. req.Data = output
  588. return
  589. }
  590. // Gets information about tests.
  591. func (c *DeviceFarm) ListTests(input *ListTestsInput) (*ListTestsOutput, error) {
  592. req, out := c.ListTestsRequest(input)
  593. err := req.Send()
  594. return out, err
  595. }
  596. func (c *DeviceFarm) ListTestsPages(input *ListTestsInput, fn func(p *ListTestsOutput, lastPage bool) (shouldContinue bool)) error {
  597. page, _ := c.ListTestsRequest(input)
  598. return page.EachPage(func(p interface{}, lastPage bool) bool {
  599. return fn(p.(*ListTestsOutput), lastPage)
  600. })
  601. }
  602. const opListUniqueProblems = "ListUniqueProblems"
  603. // ListUniqueProblemsRequest generates a request for the ListUniqueProblems operation.
  604. func (c *DeviceFarm) ListUniqueProblemsRequest(input *ListUniqueProblemsInput) (req *request.Request, output *ListUniqueProblemsOutput) {
  605. op := &request.Operation{
  606. Name: opListUniqueProblems,
  607. HTTPMethod: "POST",
  608. HTTPPath: "/",
  609. Paginator: &request.Paginator{
  610. InputTokens: []string{"nextToken"},
  611. OutputTokens: []string{"nextToken"},
  612. LimitToken: "",
  613. TruncationToken: "",
  614. },
  615. }
  616. if input == nil {
  617. input = &ListUniqueProblemsInput{}
  618. }
  619. req = c.newRequest(op, input, output)
  620. output = &ListUniqueProblemsOutput{}
  621. req.Data = output
  622. return
  623. }
  624. // Gets information about unique problems.
  625. func (c *DeviceFarm) ListUniqueProblems(input *ListUniqueProblemsInput) (*ListUniqueProblemsOutput, error) {
  626. req, out := c.ListUniqueProblemsRequest(input)
  627. err := req.Send()
  628. return out, err
  629. }
  630. func (c *DeviceFarm) ListUniqueProblemsPages(input *ListUniqueProblemsInput, fn func(p *ListUniqueProblemsOutput, lastPage bool) (shouldContinue bool)) error {
  631. page, _ := c.ListUniqueProblemsRequest(input)
  632. return page.EachPage(func(p interface{}, lastPage bool) bool {
  633. return fn(p.(*ListUniqueProblemsOutput), lastPage)
  634. })
  635. }
  636. const opListUploads = "ListUploads"
  637. // ListUploadsRequest generates a request for the ListUploads operation.
  638. func (c *DeviceFarm) ListUploadsRequest(input *ListUploadsInput) (req *request.Request, output *ListUploadsOutput) {
  639. op := &request.Operation{
  640. Name: opListUploads,
  641. HTTPMethod: "POST",
  642. HTTPPath: "/",
  643. Paginator: &request.Paginator{
  644. InputTokens: []string{"nextToken"},
  645. OutputTokens: []string{"nextToken"},
  646. LimitToken: "",
  647. TruncationToken: "",
  648. },
  649. }
  650. if input == nil {
  651. input = &ListUploadsInput{}
  652. }
  653. req = c.newRequest(op, input, output)
  654. output = &ListUploadsOutput{}
  655. req.Data = output
  656. return
  657. }
  658. // Gets information about uploads.
  659. func (c *DeviceFarm) ListUploads(input *ListUploadsInput) (*ListUploadsOutput, error) {
  660. req, out := c.ListUploadsRequest(input)
  661. err := req.Send()
  662. return out, err
  663. }
  664. func (c *DeviceFarm) ListUploadsPages(input *ListUploadsInput, fn func(p *ListUploadsOutput, lastPage bool) (shouldContinue bool)) error {
  665. page, _ := c.ListUploadsRequest(input)
  666. return page.EachPage(func(p interface{}, lastPage bool) bool {
  667. return fn(p.(*ListUploadsOutput), lastPage)
  668. })
  669. }
  670. const opScheduleRun = "ScheduleRun"
  671. // ScheduleRunRequest generates a request for the ScheduleRun operation.
  672. func (c *DeviceFarm) ScheduleRunRequest(input *ScheduleRunInput) (req *request.Request, output *ScheduleRunOutput) {
  673. op := &request.Operation{
  674. Name: opScheduleRun,
  675. HTTPMethod: "POST",
  676. HTTPPath: "/",
  677. }
  678. if input == nil {
  679. input = &ScheduleRunInput{}
  680. }
  681. req = c.newRequest(op, input, output)
  682. output = &ScheduleRunOutput{}
  683. req.Data = output
  684. return
  685. }
  686. // Schedules a run.
  687. func (c *DeviceFarm) ScheduleRun(input *ScheduleRunInput) (*ScheduleRunOutput, error) {
  688. req, out := c.ScheduleRunRequest(input)
  689. err := req.Send()
  690. return out, err
  691. }
  692. // A container for account-level settings within AWS Device Farm.
  693. type AccountSettings struct {
  694. // The AWS account number specified in the AccountSettings container.
  695. AwsAccountNumber *string `locationName:"awsAccountNumber" type:"string"`
  696. // Returns the unmetered devices you have purchased.
  697. UnmeteredDevices map[string]*int64 `locationName:"unmeteredDevices" type:"map"`
  698. metadataAccountSettings `json:"-" xml:"-"`
  699. }
  700. type metadataAccountSettings struct {
  701. SDKShapeTraits bool `type:"structure"`
  702. }
  703. // String returns the string representation
  704. func (s AccountSettings) String() string {
  705. return awsutil.Prettify(s)
  706. }
  707. // GoString returns the string representation
  708. func (s AccountSettings) GoString() string {
  709. return s.String()
  710. }
  711. // Represents the output of a test. Examples of artifacts include logs and screenshots.
  712. type Artifact struct {
  713. // The artifact's ARN.
  714. Arn *string `locationName:"arn" type:"string"`
  715. // The artifact's file extension.
  716. Extension *string `locationName:"extension" type:"string"`
  717. // The artifact's name.
  718. Name *string `locationName:"name" type:"string"`
  719. // The artifact's type.
  720. //
  721. // Allowed values include the following:
  722. //
  723. // APPIUM_JAVA_OUTPUT: The Appium Java output type.
  724. //
  725. // APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.
  726. //
  727. // APPIUM_SERVER_OUTPUT: The Appium server output type.
  728. //
  729. // AUTOMATION_OUTPUT: The automation output type.
  730. //
  731. // CALABASH_JSON_OUTPUT: The Calabash JSON output type.
  732. //
  733. // CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.
  734. //
  735. // CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.
  736. //
  737. // CALABASH_STANDARD_OUTPUT: The Calabash standard output type.
  738. //
  739. // DEVICE_LOG: The device log type.
  740. //
  741. // EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an
  742. // Android fuzz test.
  743. //
  744. // INSTRUMENTATION_OUTPUT: The instrumentation type.
  745. //
  746. // MESSAGE_LOG: The message log type.
  747. //
  748. // RESULT_LOG: The result log type.
  749. //
  750. // SCREENSHOT: The screenshot type.
  751. //
  752. // SERVICE_LOG: The service log type.
  753. //
  754. // UNKNOWN: An unknown type.
  755. Type *string `locationName:"type" type:"string" enum:"ArtifactType"`
  756. // The pre-signed Amazon S3 URL that can be used with a corresponding GET request
  757. // to download the artifact's file.
  758. Url *string `locationName:"url" type:"string"`
  759. metadataArtifact `json:"-" xml:"-"`
  760. }
  761. type metadataArtifact struct {
  762. SDKShapeTraits bool `type:"structure"`
  763. }
  764. // String returns the string representation
  765. func (s Artifact) String() string {
  766. return awsutil.Prettify(s)
  767. }
  768. // GoString returns the string representation
  769. func (s Artifact) GoString() string {
  770. return s.String()
  771. }
  772. // Represents the amount of CPU that an app is using on a physical device.
  773. //
  774. // Note that this does not represent system-wide CPU usage.
  775. type CPU struct {
  776. // The CPU's architecture, for example x86 or ARM.
  777. Architecture *string `locationName:"architecture" type:"string"`
  778. // The clock speed of the device's CPU, expressed in hertz (Hz). For example,
  779. // a 1.2 GHz CPU is expressed as 1200000000.
  780. Clock *float64 `locationName:"clock" type:"double"`
  781. // The CPU's frequency.
  782. Frequency *string `locationName:"frequency" type:"string"`
  783. metadataCPU `json:"-" xml:"-"`
  784. }
  785. type metadataCPU struct {
  786. SDKShapeTraits bool `type:"structure"`
  787. }
  788. // String returns the string representation
  789. func (s CPU) String() string {
  790. return awsutil.Prettify(s)
  791. }
  792. // GoString returns the string representation
  793. func (s CPU) GoString() string {
  794. return s.String()
  795. }
  796. // Represents entity counters.
  797. type Counters struct {
  798. // The number of errored entities.
  799. Errored *int64 `locationName:"errored" type:"integer"`
  800. // The number of failed entities.
  801. Failed *int64 `locationName:"failed" type:"integer"`
  802. // The number of passed entities.
  803. Passed *int64 `locationName:"passed" type:"integer"`
  804. // The number of skipped entities.
  805. Skipped *int64 `locationName:"skipped" type:"integer"`
  806. // The number of stopped entities.
  807. Stopped *int64 `locationName:"stopped" type:"integer"`
  808. // The total number of entities.
  809. Total *int64 `locationName:"total" type:"integer"`
  810. // The number of warned entities.
  811. Warned *int64 `locationName:"warned" type:"integer"`
  812. metadataCounters `json:"-" xml:"-"`
  813. }
  814. type metadataCounters struct {
  815. SDKShapeTraits bool `type:"structure"`
  816. }
  817. // String returns the string representation
  818. func (s Counters) String() string {
  819. return awsutil.Prettify(s)
  820. }
  821. // GoString returns the string representation
  822. func (s Counters) GoString() string {
  823. return s.String()
  824. }
  825. // Represents a request to the create device pool operation.
  826. type CreateDevicePoolInput struct {
  827. // The device pool's description.
  828. Description *string `locationName:"description" type:"string"`
  829. // The device pool's name.
  830. Name *string `locationName:"name" type:"string" required:"true"`
  831. // The ARN of the project for the device pool.
  832. ProjectArn *string `locationName:"projectArn" type:"string" required:"true"`
  833. // The device pool's rules.
  834. Rules []*Rule `locationName:"rules" type:"list" required:"true"`
  835. metadataCreateDevicePoolInput `json:"-" xml:"-"`
  836. }
  837. type metadataCreateDevicePoolInput struct {
  838. SDKShapeTraits bool `type:"structure"`
  839. }
  840. // String returns the string representation
  841. func (s CreateDevicePoolInput) String() string {
  842. return awsutil.Prettify(s)
  843. }
  844. // GoString returns the string representation
  845. func (s CreateDevicePoolInput) GoString() string {
  846. return s.String()
  847. }
  848. // Represents the result of a create device pool request.
  849. type CreateDevicePoolOutput struct {
  850. // The newly created device pool.
  851. DevicePool *DevicePool `locationName:"devicePool" type:"structure"`
  852. metadataCreateDevicePoolOutput `json:"-" xml:"-"`
  853. }
  854. type metadataCreateDevicePoolOutput struct {
  855. SDKShapeTraits bool `type:"structure"`
  856. }
  857. // String returns the string representation
  858. func (s CreateDevicePoolOutput) String() string {
  859. return awsutil.Prettify(s)
  860. }
  861. // GoString returns the string representation
  862. func (s CreateDevicePoolOutput) GoString() string {
  863. return s.String()
  864. }
  865. // Represents a request to the create project operation.
  866. type CreateProjectInput struct {
  867. // The project's name.
  868. Name *string `locationName:"name" type:"string" required:"true"`
  869. metadataCreateProjectInput `json:"-" xml:"-"`
  870. }
  871. type metadataCreateProjectInput struct {
  872. SDKShapeTraits bool `type:"structure"`
  873. }
  874. // String returns the string representation
  875. func (s CreateProjectInput) String() string {
  876. return awsutil.Prettify(s)
  877. }
  878. // GoString returns the string representation
  879. func (s CreateProjectInput) GoString() string {
  880. return s.String()
  881. }
  882. // Represents the result of a create project request.
  883. type CreateProjectOutput struct {
  884. // The newly created project.
  885. Project *Project `locationName:"project" type:"structure"`
  886. metadataCreateProjectOutput `json:"-" xml:"-"`
  887. }
  888. type metadataCreateProjectOutput struct {
  889. SDKShapeTraits bool `type:"structure"`
  890. }
  891. // String returns the string representation
  892. func (s CreateProjectOutput) String() string {
  893. return awsutil.Prettify(s)
  894. }
  895. // GoString returns the string representation
  896. func (s CreateProjectOutput) GoString() string {
  897. return s.String()
  898. }
  899. // Represents a request to the create upload operation.
  900. type CreateUploadInput struct {
  901. // The upload's content type (for example, "application/octet-stream").
  902. ContentType *string `locationName:"contentType" type:"string"`
  903. // The upload's file name.
  904. Name *string `locationName:"name" type:"string" required:"true"`
  905. // The ARN of the project for the upload.
  906. ProjectArn *string `locationName:"projectArn" type:"string" required:"true"`
  907. // The upload's upload type.
  908. //
  909. // Must be one of the following values:
  910. //
  911. // ANDROID_APP: An Android upload.
  912. //
  913. // IOS_APP: An iOS upload.
  914. //
  915. // EXTERNAL_DATA: An external data upload.
  916. //
  917. // APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.
  918. //
  919. // APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.
  920. //
  921. // CALABASH_TEST_PACKAGE: A Calabash test package upload.
  922. //
  923. // INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.
  924. //
  925. // UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.
  926. //
  927. // XCTEST_TEST_PACKAGE: An XCode test package upload.
  928. Type *string `locationName:"type" type:"string" required:"true" enum:"UploadType"`
  929. metadataCreateUploadInput `json:"-" xml:"-"`
  930. }
  931. type metadataCreateUploadInput struct {
  932. SDKShapeTraits bool `type:"structure"`
  933. }
  934. // String returns the string representation
  935. func (s CreateUploadInput) String() string {
  936. return awsutil.Prettify(s)
  937. }
  938. // GoString returns the string representation
  939. func (s CreateUploadInput) GoString() string {
  940. return s.String()
  941. }
  942. // Represents the result of a create upload request.
  943. type CreateUploadOutput struct {
  944. // The newly created upload.
  945. Upload *Upload `locationName:"upload" type:"structure"`
  946. metadataCreateUploadOutput `json:"-" xml:"-"`
  947. }
  948. type metadataCreateUploadOutput struct {
  949. SDKShapeTraits bool `type:"structure"`
  950. }
  951. // String returns the string representation
  952. func (s CreateUploadOutput) String() string {
  953. return awsutil.Prettify(s)
  954. }
  955. // GoString returns the string representation
  956. func (s CreateUploadOutput) GoString() string {
  957. return s.String()
  958. }
  959. // Represents a device type that an app is tested against.
  960. type Device struct {
  961. // The device's ARN.
  962. Arn *string `locationName:"arn" type:"string"`
  963. // The device's carrier.
  964. Carrier *string `locationName:"carrier" type:"string"`
  965. // Information about the device's CPU.
  966. Cpu *CPU `locationName:"cpu" type:"structure"`
  967. // The device's form factor.
  968. //
  969. // Allowed values include:
  970. //
  971. // PHONE: The phone form factor.
  972. //
  973. // TABLET: The tablet form factor.
  974. FormFactor *string `locationName:"formFactor" type:"string" enum:"DeviceFormFactor"`
  975. // The device's heap size, expressed in bytes.
  976. HeapSize *int64 `locationName:"heapSize" type:"long"`
  977. // The device's image name.
  978. Image *string `locationName:"image" type:"string"`
  979. // The device's manufacturer name.
  980. Manufacturer *string `locationName:"manufacturer" type:"string"`
  981. // The device's total memory size, expressed in bytes.
  982. Memory *int64 `locationName:"memory" type:"long"`
  983. // The device's model name.
  984. Model *string `locationName:"model" type:"string"`
  985. // The device's display name.
  986. Name *string `locationName:"name" type:"string"`
  987. // The device's operating system type.
  988. Os *string `locationName:"os" type:"string"`
  989. // The device's platform.
  990. //
  991. // Allowed values include:
  992. //
  993. // ANDROID: The Android platform.
  994. //
  995. // IOS: The iOS platform.
  996. Platform *string `locationName:"platform" type:"string" enum:"DevicePlatform"`
  997. // The device's radio.
  998. Radio *string `locationName:"radio" type:"string"`
  999. // Represents the screen resolution of a device in height and width, expressed
  1000. // in pixels.
  1001. Resolution *Resolution `locationName:"resolution" type:"structure"`
  1002. metadataDevice `json:"-" xml:"-"`
  1003. }
  1004. type metadataDevice struct {
  1005. SDKShapeTraits bool `type:"structure"`
  1006. }
  1007. // String returns the string representation
  1008. func (s Device) String() string {
  1009. return awsutil.Prettify(s)
  1010. }
  1011. // GoString returns the string representation
  1012. func (s Device) GoString() string {
  1013. return s.String()
  1014. }
  1015. // Represents a collection of device types.
  1016. type DevicePool struct {
  1017. // The device pool's ARN.
  1018. Arn *string `locationName:"arn" type:"string"`
  1019. // The device pool's description.
  1020. Description *string `locationName:"description" type:"string"`
  1021. // The device pool's name.
  1022. Name *string `locationName:"name" type:"string"`
  1023. // Information about the device pool's rules.
  1024. Rules []*Rule `locationName:"rules" type:"list"`
  1025. // The device pool's type.
  1026. //
  1027. // Allowed values include:
  1028. //
  1029. // CURATED: A device pool that is created and managed by AWS Device Farm.
  1030. //
  1031. // PRIVATE: A device pool that is created and managed by the device pool developer.
  1032. Type *string `locationName:"type" type:"string" enum:"DevicePoolType"`
  1033. metadataDevicePool `json:"-" xml:"-"`
  1034. }
  1035. type metadataDevicePool struct {
  1036. SDKShapeTraits bool `type:"structure"`
  1037. }
  1038. // String returns the string representation
  1039. func (s DevicePool) String() string {
  1040. return awsutil.Prettify(s)
  1041. }
  1042. // GoString returns the string representation
  1043. func (s DevicePool) GoString() string {
  1044. return s.String()
  1045. }
  1046. // Represents a device pool compatibility result.
  1047. type DevicePoolCompatibilityResult struct {
  1048. // Whether the result was compatible with the device pool.
  1049. Compatible *bool `locationName:"compatible" type:"boolean"`
  1050. // Represents a device type that an app is tested against.
  1051. Device *Device `locationName:"device" type:"structure"`
  1052. // Information about the compatibility.
  1053. IncompatibilityMessages []*IncompatibilityMessage `locationName:"incompatibilityMessages" type:"list"`
  1054. metadataDevicePoolCompatibilityResult `json:"-" xml:"-"`
  1055. }
  1056. type metadataDevicePoolCompatibilityResult struct {
  1057. SDKShapeTraits bool `type:"structure"`
  1058. }
  1059. // String returns the string representation
  1060. func (s DevicePoolCompatibilityResult) String() string {
  1061. return awsutil.Prettify(s)
  1062. }
  1063. // GoString returns the string representation
  1064. func (s DevicePoolCompatibilityResult) GoString() string {
  1065. return s.String()
  1066. }
  1067. type GetAccountSettingsInput struct {
  1068. metadataGetAccountSettingsInput `json:"-" xml:"-"`
  1069. }
  1070. type metadataGetAccountSettingsInput struct {
  1071. SDKShapeTraits bool `type:"structure"`
  1072. }
  1073. // String returns the string representation
  1074. func (s GetAccountSettingsInput) String() string {
  1075. return awsutil.Prettify(s)
  1076. }
  1077. // GoString returns the string representation
  1078. func (s GetAccountSettingsInput) GoString() string {
  1079. return s.String()
  1080. }
  1081. type GetAccountSettingsOutput struct {
  1082. // A container for account-level settings within AWS Device Farm.
  1083. AccountSettings *AccountSettings `locationName:"accountSettings" type:"structure"`
  1084. metadataGetAccountSettingsOutput `json:"-" xml:"-"`
  1085. }
  1086. type metadataGetAccountSettingsOutput struct {
  1087. SDKShapeTraits bool `type:"structure"`
  1088. }
  1089. // String returns the string representation
  1090. func (s GetAccountSettingsOutput) String() string {
  1091. return awsutil.Prettify(s)
  1092. }
  1093. // GoString returns the string representation
  1094. func (s GetAccountSettingsOutput) GoString() string {
  1095. return s.String()
  1096. }
  1097. // Represents a request to the get device request.
  1098. type GetDeviceInput struct {
  1099. // The device type's ARN.
  1100. Arn *string `locationName:"arn" type:"string" required:"true"`
  1101. metadataGetDeviceInput `json:"-" xml:"-"`
  1102. }
  1103. type metadataGetDeviceInput struct {
  1104. SDKShapeTraits bool `type:"structure"`
  1105. }
  1106. // String returns the string representation
  1107. func (s GetDeviceInput) String() string {
  1108. return awsutil.Prettify(s)
  1109. }
  1110. // GoString returns the string representation
  1111. func (s GetDeviceInput) GoString() string {
  1112. return s.String()
  1113. }
  1114. // Represents the result of a get device request.
  1115. type GetDeviceOutput struct {
  1116. // Represents a device type that an app is tested against.
  1117. Device *Device `locationName:"device" type:"structure"`
  1118. metadataGetDeviceOutput `json:"-" xml:"-"`
  1119. }
  1120. type metadataGetDeviceOutput struct {
  1121. SDKShapeTraits bool `type:"structure"`
  1122. }
  1123. // String returns the string representation
  1124. func (s GetDeviceOutput) String() string {
  1125. return awsutil.Prettify(s)
  1126. }
  1127. // GoString returns the string representation
  1128. func (s GetDeviceOutput) GoString() string {
  1129. return s.String()
  1130. }
  1131. // Represents a request to the get device pool compatibility operation.
  1132. type GetDevicePoolCompatibilityInput struct {
  1133. // The ARN of the app that is associated with the specified device pool.
  1134. AppArn *string `locationName:"appArn" type:"string" required:"true"`
  1135. // The device pool's ARN.
  1136. DevicePoolArn *string `locationName:"devicePoolArn" type:"string" required:"true"`
  1137. // The test type for the specified device pool.
  1138. //
  1139. // Allowed values include the following:
  1140. //
  1141. // BUILTIN_FUZZ: The built-in fuzz type.
  1142. //
  1143. // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android
  1144. // app, interacting with it and capturing screenshots at the same time.
  1145. //
  1146. // APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
  1147. //
  1148. // APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
  1149. //
  1150. // CALABASH: The Calabash type.
  1151. //
  1152. // INSTRUMENTATION: The Instrumentation type.
  1153. //
  1154. // UIAUTOMATION: The uiautomation type.
  1155. //
  1156. // UIAUTOMATOR: The uiautomator type.
  1157. //
  1158. // XCTEST: The XCode test type.
  1159. TestType *string `locationName:"testType" type:"string" enum:"TestType"`
  1160. metadataGetDevicePoolCompatibilityInput `json:"-" xml:"-"`
  1161. }
  1162. type metadataGetDevicePoolCompatibilityInput struct {
  1163. SDKShapeTraits bool `type:"structure"`
  1164. }
  1165. // String returns the string representation
  1166. func (s GetDevicePoolCompatibilityInput) String() string {
  1167. return awsutil.Prettify(s)
  1168. }
  1169. // GoString returns the string representation
  1170. func (s GetDevicePoolCompatibilityInput) GoString() string {
  1171. return s.String()
  1172. }
  1173. // Represents the result of describe device pool compatibility request.
  1174. type GetDevicePoolCompatibilityOutput struct {
  1175. // Information about compatible devices.
  1176. CompatibleDevices []*DevicePoolCompatibilityResult `locationName:"compatibleDevices" type:"list"`
  1177. // Information about incompatible devices.
  1178. IncompatibleDevices []*DevicePoolCompatibilityResult `locationName:"incompatibleDevices" type:"list"`
  1179. metadataGetDevicePoolCompatibilityOutput `json:"-" xml:"-"`
  1180. }
  1181. type metadataGetDevicePoolCompatibilityOutput struct {
  1182. SDKShapeTraits bool `type:"structure"`
  1183. }
  1184. // String returns the string representation
  1185. func (s GetDevicePoolCompatibilityOutput) String() string {
  1186. return awsutil.Prettify(s)
  1187. }
  1188. // GoString returns the string representation
  1189. func (s GetDevicePoolCompatibilityOutput) GoString() string {
  1190. return s.String()
  1191. }
  1192. // Represents a request to the get device pool operation.
  1193. type GetDevicePoolInput struct {
  1194. // The device pool's ARN.
  1195. Arn *string `locationName:"arn" type:"string" required:"true"`
  1196. metadataGetDevicePoolInput `json:"-" xml:"-"`
  1197. }
  1198. type metadataGetDevicePoolInput struct {
  1199. SDKShapeTraits bool `type:"structure"`
  1200. }
  1201. // String returns the string representation
  1202. func (s GetDevicePoolInput) String() string {
  1203. return awsutil.Prettify(s)
  1204. }
  1205. // GoString returns the string representation
  1206. func (s GetDevicePoolInput) GoString() string {
  1207. return s.String()
  1208. }
  1209. // Represents the result of a get device pool request.
  1210. type GetDevicePoolOutput struct {
  1211. // Represents a collection of device types.
  1212. DevicePool *DevicePool `locationName:"devicePool" type:"structure"`
  1213. metadataGetDevicePoolOutput `json:"-" xml:"-"`
  1214. }
  1215. type metadataGetDevicePoolOutput struct {
  1216. SDKShapeTraits bool `type:"structure"`
  1217. }
  1218. // String returns the string representation
  1219. func (s GetDevicePoolOutput) String() string {
  1220. return awsutil.Prettify(s)
  1221. }
  1222. // GoString returns the string representation
  1223. func (s GetDevicePoolOutput) GoString() string {
  1224. return s.String()
  1225. }
  1226. // Represents a request to the get job operation.
  1227. type GetJobInput struct {
  1228. // The job's ARN.
  1229. Arn *string `locationName:"arn" type:"string" required:"true"`
  1230. metadataGetJobInput `json:"-" xml:"-"`
  1231. }
  1232. type metadataGetJobInput struct {
  1233. SDKShapeTraits bool `type:"structure"`
  1234. }
  1235. // String returns the string representation
  1236. func (s GetJobInput) String() string {
  1237. return awsutil.Prettify(s)
  1238. }
  1239. // GoString returns the string representation
  1240. func (s GetJobInput) GoString() string {
  1241. return s.String()
  1242. }
  1243. // Represents the result of a get job request.
  1244. type GetJobOutput struct {
  1245. // Represents a device.
  1246. Job *Job `locationName:"job" type:"structure"`
  1247. metadataGetJobOutput `json:"-" xml:"-"`
  1248. }
  1249. type metadataGetJobOutput struct {
  1250. SDKShapeTraits bool `type:"structure"`
  1251. }
  1252. // String returns the string representation
  1253. func (s GetJobOutput) String() string {
  1254. return awsutil.Prettify(s)
  1255. }
  1256. // GoString returns the string representation
  1257. func (s GetJobOutput) GoString() string {
  1258. return s.String()
  1259. }
  1260. // Represents a request to the get project operation.
  1261. type GetProjectInput struct {
  1262. // The project's ARN.
  1263. Arn *string `locationName:"arn" type:"string" required:"true"`
  1264. metadataGetProjectInput `json:"-" xml:"-"`
  1265. }
  1266. type metadataGetProjectInput struct {
  1267. SDKShapeTraits bool `type:"structure"`
  1268. }
  1269. // String returns the string representation
  1270. func (s GetProjectInput) String() string {
  1271. return awsutil.Prettify(s)
  1272. }
  1273. // GoString returns the string representation
  1274. func (s GetProjectInput) GoString() string {
  1275. return s.String()
  1276. }
  1277. // Represents the result of a get project request.
  1278. type GetProjectOutput struct {
  1279. // Represents an operating-system neutral workspace for running and managing
  1280. // tests.
  1281. Project *Project `locationName:"project" type:"structure"`
  1282. metadataGetProjectOutput `json:"-" xml:"-"`
  1283. }
  1284. type metadataGetProjectOutput struct {
  1285. SDKShapeTraits bool `type:"structure"`
  1286. }
  1287. // String returns the string representation
  1288. func (s GetProjectOutput) String() string {
  1289. return awsutil.Prettify(s)
  1290. }
  1291. // GoString returns the string representation
  1292. func (s GetProjectOutput) GoString() string {
  1293. return s.String()
  1294. }
  1295. // Represents a request to the get run operation.
  1296. type GetRunInput struct {
  1297. // The run's ARN.
  1298. Arn *string `locationName:"arn" type:"string" required:"true"`
  1299. metadataGetRunInput `json:"-" xml:"-"`
  1300. }
  1301. type metadataGetRunInput struct {
  1302. SDKShapeTraits bool `type:"structure"`
  1303. }
  1304. // String returns the string representation
  1305. func (s GetRunInput) String() string {
  1306. return awsutil.Prettify(s)
  1307. }
  1308. // GoString returns the string representation
  1309. func (s GetRunInput) GoString() string {
  1310. return s.String()
  1311. }
  1312. // Represents the result of a get run request.
  1313. type GetRunOutput struct {
  1314. // Represents an app on a set of devices with a specific test and configuration.
  1315. Run *Run `locationName:"run" type:"structure"`
  1316. metadataGetRunOutput `json:"-" xml:"-"`
  1317. }
  1318. type metadataGetRunOutput struct {
  1319. SDKShapeTraits bool `type:"structure"`
  1320. }
  1321. // String returns the string representation
  1322. func (s GetRunOutput) String() string {
  1323. return awsutil.Prettify(s)
  1324. }
  1325. // GoString returns the string representation
  1326. func (s GetRunOutput) GoString() string {
  1327. return s.String()
  1328. }
  1329. // Represents a request to the get suite operation.
  1330. type GetSuiteInput struct {
  1331. // The suite's ARN.
  1332. Arn *string `locationName:"arn" type:"string" required:"true"`
  1333. metadataGetSuiteInput `json:"-" xml:"-"`
  1334. }
  1335. type metadataGetSuiteInput struct {
  1336. SDKShapeTraits bool `type:"structure"`
  1337. }
  1338. // String returns the string representation
  1339. func (s GetSuiteInput) String() string {
  1340. return awsutil.Prettify(s)
  1341. }
  1342. // GoString returns the string representation
  1343. func (s GetSuiteInput) GoString() string {
  1344. return s.String()
  1345. }
  1346. // Represents the result of a get suite request.
  1347. type GetSuiteOutput struct {
  1348. // Represents a collection of one or more tests.
  1349. Suite *Suite `locationName:"suite" type:"structure"`
  1350. metadataGetSuiteOutput `json:"-" xml:"-"`
  1351. }
  1352. type metadataGetSuiteOutput struct {
  1353. SDKShapeTraits bool `type:"structure"`
  1354. }
  1355. // String returns the string representation
  1356. func (s GetSuiteOutput) String() string {
  1357. return awsutil.Prettify(s)
  1358. }
  1359. // GoString returns the string representation
  1360. func (s GetSuiteOutput) GoString() string {
  1361. return s.String()
  1362. }
  1363. // Represents a request to the get test operation.
  1364. type GetTestInput struct {
  1365. // The test's ARN.
  1366. Arn *string `locationName:"arn" type:"string" required:"true"`
  1367. metadataGetTestInput `json:"-" xml:"-"`
  1368. }
  1369. type metadataGetTestInput struct {
  1370. SDKShapeTraits bool `type:"structure"`
  1371. }
  1372. // String returns the string representation
  1373. func (s GetTestInput) String() string {
  1374. return awsutil.Prettify(s)
  1375. }
  1376. // GoString returns the string representation
  1377. func (s GetTestInput) GoString() string {
  1378. return s.String()
  1379. }
  1380. // Represents the result of a get test request.
  1381. type GetTestOutput struct {
  1382. // Represents a condition that is evaluated.
  1383. Test *Test `locationName:"test" type:"structure"`
  1384. metadataGetTestOutput `json:"-" xml:"-"`
  1385. }
  1386. type metadataGetTestOutput struct {
  1387. SDKShapeTraits bool `type:"structure"`
  1388. }
  1389. // String returns the string representation
  1390. func (s GetTestOutput) String() string {
  1391. return awsutil.Prettify(s)
  1392. }
  1393. // GoString returns the string representation
  1394. func (s GetTestOutput) GoString() string {
  1395. return s.String()
  1396. }
  1397. // Represents a request to the get upload operation.
  1398. type GetUploadInput struct {
  1399. // The upload's ARN.
  1400. Arn *string `locationName:"arn" type:"string" required:"true"`
  1401. metadataGetUploadInput `json:"-" xml:"-"`
  1402. }
  1403. type metadataGetUploadInput struct {
  1404. SDKShapeTraits bool `type:"structure"`
  1405. }
  1406. // String returns the string representation
  1407. func (s GetUploadInput) String() string {
  1408. return awsutil.Prettify(s)
  1409. }
  1410. // GoString returns the string representation
  1411. func (s GetUploadInput) GoString() string {
  1412. return s.String()
  1413. }
  1414. // Represents the result of a get upload request.
  1415. type GetUploadOutput struct {
  1416. // An app or a set of one or more tests to upload or that have been uploaded.
  1417. Upload *Upload `locationName:"upload" type:"structure"`
  1418. metadataGetUploadOutput `json:"-" xml:"-"`
  1419. }
  1420. type metadataGetUploadOutput struct {
  1421. SDKShapeTraits bool `type:"structure"`
  1422. }
  1423. // String returns the string representation
  1424. func (s GetUploadOutput) String() string {
  1425. return awsutil.Prettify(s)
  1426. }
  1427. // GoString returns the string representation
  1428. func (s GetUploadOutput) GoString() string {
  1429. return s.String()
  1430. }
  1431. // Represents information about incompatibility.
  1432. type IncompatibilityMessage struct {
  1433. // A message about the incompatibility.
  1434. Message *string `locationName:"message" type:"string"`
  1435. // The type of incompatibility.
  1436. //
  1437. // Allowed values include:
  1438. //
  1439. // ARN: The ARN.
  1440. //
  1441. // FORM_FACTOR: The form factor (for example, phone or tablet).
  1442. //
  1443. // MANUFACTURER: The manufacturer.
  1444. //
  1445. // PLATFORM: The platform (for example, Android or iOS).
  1446. Type *string `locationName:"type" type:"string" enum:"DeviceAttribute"`
  1447. metadataIncompatibilityMessage `json:"-" xml:"-"`
  1448. }
  1449. type metadataIncompatibilityMessage struct {
  1450. SDKShapeTraits bool `type:"structure"`
  1451. }
  1452. // String returns the string representation
  1453. func (s IncompatibilityMessage) String() string {
  1454. return awsutil.Prettify(s)
  1455. }
  1456. // GoString returns the string representation
  1457. func (s IncompatibilityMessage) GoString() string {
  1458. return s.String()
  1459. }
  1460. // Represents a device.
  1461. type Job struct {
  1462. // The job's ARN.
  1463. Arn *string `locationName:"arn" type:"string"`
  1464. // The job's result counters.
  1465. Counters *Counters `locationName:"counters" type:"structure"`
  1466. // When the job was created.
  1467. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  1468. // Represents a device type that an app is tested against.
  1469. Device *Device `locationName:"device" type:"structure"`
  1470. // A message about the job's result.
  1471. Message *string `locationName:"message" type:"string"`
  1472. // The job's name.
  1473. Name *string `locationName:"name" type:"string"`
  1474. // The job's result.
  1475. //
  1476. // Allowed values include:
  1477. //
  1478. // ERRORED: An error condition.
  1479. //
  1480. // FAILED: A failed condition.
  1481. //
  1482. // SKIPPED: A skipped condition.
  1483. //
  1484. // STOPPED: A stopped condition.
  1485. //
  1486. // PASSED: A passing condition.
  1487. //
  1488. // PENDING: A pending condition.
  1489. //
  1490. // WARNED: A warning condition.
  1491. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"`
  1492. // The job's start time.
  1493. Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
  1494. // The job's status.
  1495. //
  1496. // Allowed values include:
  1497. //
  1498. // COMPLETED: A completed status.
  1499. //
  1500. // PENDING: A pending status.
  1501. //
  1502. // PROCESSING: A processing status.
  1503. //
  1504. // RUNNING: A running status.
  1505. //
  1506. // SCHEDULING: A scheduling status.
  1507. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"`
  1508. // The job's stop time.
  1509. Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
  1510. // The job's type.
  1511. //
  1512. // Allowed values include the following:
  1513. //
  1514. // BUILTIN_FUZZ: The built-in fuzz type.
  1515. //
  1516. // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android
  1517. // app, interacting with it and capturing screenshots at the same time.
  1518. //
  1519. // APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
  1520. //
  1521. // APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
  1522. //
  1523. // CALABASH: The Calabash type.
  1524. //
  1525. // INSTRUMENTATION: The Instrumentation type.
  1526. //
  1527. // UIAUTOMATION: The uiautomation type.
  1528. //
  1529. // UIAUTOMATOR: The uiautomator type.
  1530. //
  1531. // XCTEST: The XCode test type.
  1532. Type *string `locationName:"type" type:"string" enum:"TestType"`
  1533. metadataJob `json:"-" xml:"-"`
  1534. }
  1535. type metadataJob struct {
  1536. SDKShapeTraits bool `type:"structure"`
  1537. }
  1538. // String returns the string representation
  1539. func (s Job) String() string {
  1540. return awsutil.Prettify(s)
  1541. }
  1542. // GoString returns the string representation
  1543. func (s Job) GoString() string {
  1544. return s.String()
  1545. }
  1546. // Represents a request to the list artifacts operation.
  1547. type ListArtifactsInput struct {
  1548. // The artifacts' ARNs.
  1549. Arn *string `locationName:"arn" type:"string" required:"true"`
  1550. // An identifier that was returned from the previous call to this operation,
  1551. // which can be used to return the next set of items in the list.
  1552. NextToken *string `locationName:"nextToken" type:"string"`
  1553. // The artifacts' type.
  1554. //
  1555. // Allowed values include:
  1556. //
  1557. // FILE: The artifacts are files. LOG: The artifacts are logs. SCREENSHOT:
  1558. // The artifacts are screenshots.
  1559. Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactCategory"`
  1560. metadataListArtifactsInput `json:"-" xml:"-"`
  1561. }
  1562. type metadataListArtifactsInput struct {
  1563. SDKShapeTraits bool `type:"structure"`
  1564. }
  1565. // String returns the string representation
  1566. func (s ListArtifactsInput) String() string {
  1567. return awsutil.Prettify(s)
  1568. }
  1569. // GoString returns the string representation
  1570. func (s ListArtifactsInput) GoString() string {
  1571. return s.String()
  1572. }
  1573. // Represents the result of a list artifacts operation.
  1574. type ListArtifactsOutput struct {
  1575. // Information about the artifacts.
  1576. Artifacts []*Artifact `locationName:"artifacts" type:"list"`
  1577. // If the number of items that are returned is significantly large, this is
  1578. // an identifier that is also returned, which can be used in a subsequent call
  1579. // to this operation to return the next set of items in the list.
  1580. NextToken *string `locationName:"nextToken" type:"string"`
  1581. metadataListArtifactsOutput `json:"-" xml:"-"`
  1582. }
  1583. type metadataListArtifactsOutput struct {
  1584. SDKShapeTraits bool `type:"structure"`
  1585. }
  1586. // String returns the string representation
  1587. func (s ListArtifactsOutput) String() string {
  1588. return awsutil.Prettify(s)
  1589. }
  1590. // GoString returns the string representation
  1591. func (s ListArtifactsOutput) GoString() string {
  1592. return s.String()
  1593. }
  1594. // Represents the result of a list device pools request.
  1595. type ListDevicePoolsInput struct {
  1596. // The project ARN.
  1597. Arn *string `locationName:"arn" type:"string" required:"true"`
  1598. // An identifier that was returned from the previous call to this operation,
  1599. // which can be used to return the next set of items in the list.
  1600. NextToken *string `locationName:"nextToken" type:"string"`
  1601. // The device pools' type.
  1602. //
  1603. // Allowed values include:
  1604. //
  1605. // CURATED: A device pool that is created and managed by AWS Device Farm.
  1606. //
  1607. // PRIVATE: A device pool that is created and managed by the device pool developer.
  1608. Type *string `locationName:"type" type:"string" enum:"DevicePoolType"`
  1609. metadataListDevicePoolsInput `json:"-" xml:"-"`
  1610. }
  1611. type metadataListDevicePoolsInput struct {
  1612. SDKShapeTraits bool `type:"structure"`
  1613. }
  1614. // String returns the string representation
  1615. func (s ListDevicePoolsInput) String() string {
  1616. return awsutil.Prettify(s)
  1617. }
  1618. // GoString returns the string representation
  1619. func (s ListDevicePoolsInput) GoString() string {
  1620. return s.String()
  1621. }
  1622. // Represents the result of a list device pools request.
  1623. type ListDevicePoolsOutput struct {
  1624. // Information about the device pools.
  1625. DevicePools []*DevicePool `locationName:"devicePools" type:"list"`
  1626. // If the number of items that are returned is significantly large, this is
  1627. // an identifier that is also returned, which can be used in a subsequent call
  1628. // to this operation to return the next set of items in the list.
  1629. NextToken *string `locationName:"nextToken" type:"string"`
  1630. metadataListDevicePoolsOutput `json:"-" xml:"-"`
  1631. }
  1632. type metadataListDevicePoolsOutput struct {
  1633. SDKShapeTraits bool `type:"structure"`
  1634. }
  1635. // String returns the string representation
  1636. func (s ListDevicePoolsOutput) String() string {
  1637. return awsutil.Prettify(s)
  1638. }
  1639. // GoString returns the string representation
  1640. func (s ListDevicePoolsOutput) GoString() string {
  1641. return s.String()
  1642. }
  1643. // Represents the result of a list devices request.
  1644. type ListDevicesInput struct {
  1645. // The device types' ARNs.
  1646. Arn *string `locationName:"arn" type:"string"`
  1647. // An identifier that was returned from the previous call to this operation,
  1648. // which can be used to return the next set of items in the list.
  1649. NextToken *string `locationName:"nextToken" type:"string"`
  1650. metadataListDevicesInput `json:"-" xml:"-"`
  1651. }
  1652. type metadataListDevicesInput struct {
  1653. SDKShapeTraits bool `type:"structure"`
  1654. }
  1655. // String returns the string representation
  1656. func (s ListDevicesInput) String() string {
  1657. return awsutil.Prettify(s)
  1658. }
  1659. // GoString returns the string representation
  1660. func (s ListDevicesInput) GoString() string {
  1661. return s.String()
  1662. }
  1663. // Represents the result of a list devices operation.
  1664. type ListDevicesOutput struct {
  1665. // Information about the devices.
  1666. Devices []*Device `locationName:"devices" type:"list"`
  1667. // If the number of items that are returned is significantly large, this is
  1668. // an identifier that is also returned, which can be used in a subsequent call
  1669. // to this operation to return the next set of items in the list.
  1670. NextToken *string `locationName:"nextToken" type:"string"`
  1671. metadataListDevicesOutput `json:"-" xml:"-"`
  1672. }
  1673. type metadataListDevicesOutput struct {
  1674. SDKShapeTraits bool `type:"structure"`
  1675. }
  1676. // String returns the string representation
  1677. func (s ListDevicesOutput) String() string {
  1678. return awsutil.Prettify(s)
  1679. }
  1680. // GoString returns the string representation
  1681. func (s ListDevicesOutput) GoString() string {
  1682. return s.String()
  1683. }
  1684. // Represents a request to the list jobs operation.
  1685. type ListJobsInput struct {
  1686. // The jobs' ARNs.
  1687. Arn *string `locationName:"arn" type:"string" required:"true"`
  1688. // An identifier that was returned from the previous call to this operation,
  1689. // which can be used to return the next set of items in the list.
  1690. NextToken *string `locationName:"nextToken" type:"string"`
  1691. metadataListJobsInput `json:"-" xml:"-"`
  1692. }
  1693. type metadataListJobsInput struct {
  1694. SDKShapeTraits bool `type:"structure"`
  1695. }
  1696. // String returns the string representation
  1697. func (s ListJobsInput) String() string {
  1698. return awsutil.Prettify(s)
  1699. }
  1700. // GoString returns the string representation
  1701. func (s ListJobsInput) GoString() string {
  1702. return s.String()
  1703. }
  1704. // Represents the result of a list jobs request.
  1705. type ListJobsOutput struct {
  1706. // Information about the jobs.
  1707. Jobs []*Job `locationName:"jobs" type:"list"`
  1708. // If the number of items that are returned is significantly large, this is
  1709. // an identifier that is also returned, which can be used in a subsequent call
  1710. // to this operation to return the next set of items in the list.
  1711. NextToken *string `locationName:"nextToken" type:"string"`
  1712. metadataListJobsOutput `json:"-" xml:"-"`
  1713. }
  1714. type metadataListJobsOutput struct {
  1715. SDKShapeTraits bool `type:"structure"`
  1716. }
  1717. // String returns the string representation
  1718. func (s ListJobsOutput) String() string {
  1719. return awsutil.Prettify(s)
  1720. }
  1721. // GoString returns the string representation
  1722. func (s ListJobsOutput) GoString() string {
  1723. return s.String()
  1724. }
  1725. // Represents a request to the list projects operation.
  1726. type ListProjectsInput struct {
  1727. // The projects' ARNs.
  1728. Arn *string `locationName:"arn" type:"string"`
  1729. // An identifier that was returned from the previous call to this operation,
  1730. // which can be used to return the next set of items in the list.
  1731. NextToken *string `locationName:"nextToken" type:"string"`
  1732. metadataListProjectsInput `json:"-" xml:"-"`
  1733. }
  1734. type metadataListProjectsInput struct {
  1735. SDKShapeTraits bool `type:"structure"`
  1736. }
  1737. // String returns the string representation
  1738. func (s ListProjectsInput) String() string {
  1739. return awsutil.Prettify(s)
  1740. }
  1741. // GoString returns the string representation
  1742. func (s ListProjectsInput) GoString() string {
  1743. return s.String()
  1744. }
  1745. // Represents the result of a list projects request.
  1746. type ListProjectsOutput struct {
  1747. // If the number of items that are returned is significantly large, this is
  1748. // an identifier that is also returned, which can be used in a subsequent call
  1749. // to this operation to return the next set of items in the list.
  1750. NextToken *string `locationName:"nextToken" type:"string"`
  1751. // Information about the projects.
  1752. Projects []*Project `locationName:"projects" type:"list"`
  1753. metadataListProjectsOutput `json:"-" xml:"-"`
  1754. }
  1755. type metadataListProjectsOutput struct {
  1756. SDKShapeTraits bool `type:"structure"`
  1757. }
  1758. // String returns the string representation
  1759. func (s ListProjectsOutput) String() string {
  1760. return awsutil.Prettify(s)
  1761. }
  1762. // GoString returns the string representation
  1763. func (s ListProjectsOutput) GoString() string {
  1764. return s.String()
  1765. }
  1766. // Represents a request to the list runs operation.
  1767. type ListRunsInput struct {
  1768. // The runs' ARNs.
  1769. Arn *string `locationName:"arn" type:"string" required:"true"`
  1770. // An identifier that was returned from the previous call to this operation,
  1771. // which can be used to return the next set of items in the list.
  1772. NextToken *string `locationName:"nextToken" type:"string"`
  1773. metadataListRunsInput `json:"-" xml:"-"`
  1774. }
  1775. type metadataListRunsInput struct {
  1776. SDKShapeTraits bool `type:"structure"`
  1777. }
  1778. // String returns the string representation
  1779. func (s ListRunsInput) String() string {
  1780. return awsutil.Prettify(s)
  1781. }
  1782. // GoString returns the string representation
  1783. func (s ListRunsInput) GoString() string {
  1784. return s.String()
  1785. }
  1786. // Represents the result of a list runs request.
  1787. type ListRunsOutput struct {
  1788. // If the number of items that are returned is significantly large, this is
  1789. // an identifier that is also returned, which can be used in a subsequent call
  1790. // to this operation to return the next set of items in the list.
  1791. NextToken *string `locationName:"nextToken" type:"string"`
  1792. // Information about the runs.
  1793. Runs []*Run `locationName:"runs" type:"list"`
  1794. metadataListRunsOutput `json:"-" xml:"-"`
  1795. }
  1796. type metadataListRunsOutput struct {
  1797. SDKShapeTraits bool `type:"structure"`
  1798. }
  1799. // String returns the string representation
  1800. func (s ListRunsOutput) String() string {
  1801. return awsutil.Prettify(s)
  1802. }
  1803. // GoString returns the string representation
  1804. func (s ListRunsOutput) GoString() string {
  1805. return s.String()
  1806. }
  1807. // Represents a request to the list samples operation.
  1808. type ListSamplesInput struct {
  1809. // The samples' ARNs.
  1810. Arn *string `locationName:"arn" type:"string" required:"true"`
  1811. // An identifier that was returned from the previous call to this operation,
  1812. // which can be used to return the next set of items in the list.
  1813. NextToken *string `locationName:"nextToken" type:"string"`
  1814. metadataListSamplesInput `json:"-" xml:"-"`
  1815. }
  1816. type metadataListSamplesInput struct {
  1817. SDKShapeTraits bool `type:"structure"`
  1818. }
  1819. // String returns the string representation
  1820. func (s ListSamplesInput) String() string {
  1821. return awsutil.Prettify(s)
  1822. }
  1823. // GoString returns the string representation
  1824. func (s ListSamplesInput) GoString() string {
  1825. return s.String()
  1826. }
  1827. // Represents the result of a list samples request.
  1828. type ListSamplesOutput struct {
  1829. // If the number of items that are returned is significantly large, this is
  1830. // an identifier that is also returned, which can be used in a subsequent call
  1831. // to this operation to return the next set of items in the list.
  1832. NextToken *string `locationName:"nextToken" type:"string"`
  1833. // Information about the samples.
  1834. Samples []*Sample `locationName:"samples" type:"list"`
  1835. metadataListSamplesOutput `json:"-" xml:"-"`
  1836. }
  1837. type metadataListSamplesOutput struct {
  1838. SDKShapeTraits bool `type:"structure"`
  1839. }
  1840. // String returns the string representation
  1841. func (s ListSamplesOutput) String() string {
  1842. return awsutil.Prettify(s)
  1843. }
  1844. // GoString returns the string representation
  1845. func (s ListSamplesOutput) GoString() string {
  1846. return s.String()
  1847. }
  1848. // Represents a request to the list suites operation.
  1849. type ListSuitesInput struct {
  1850. // The suites' ARNs.
  1851. Arn *string `locationName:"arn" type:"string" required:"true"`
  1852. // An identifier that was returned from the previous call to this operation,
  1853. // which can be used to return the next set of items in the list.
  1854. NextToken *string `locationName:"nextToken" type:"string"`
  1855. metadataListSuitesInput `json:"-" xml:"-"`
  1856. }
  1857. type metadataListSuitesInput struct {
  1858. SDKShapeTraits bool `type:"structure"`
  1859. }
  1860. // String returns the string representation
  1861. func (s ListSuitesInput) String() string {
  1862. return awsutil.Prettify(s)
  1863. }
  1864. // GoString returns the string representation
  1865. func (s ListSuitesInput) GoString() string {
  1866. return s.String()
  1867. }
  1868. // Represents the result of a list suites request.
  1869. type ListSuitesOutput struct {
  1870. // If the number of items that are returned is significantly large, this is
  1871. // an identifier that is also returned, which can be used in a subsequent call
  1872. // to this operation to return the next set of items in the list.
  1873. NextToken *string `locationName:"nextToken" type:"string"`
  1874. // Information about the suites.
  1875. Suites []*Suite `locationName:"suites" type:"list"`
  1876. metadataListSuitesOutput `json:"-" xml:"-"`
  1877. }
  1878. type metadataListSuitesOutput struct {
  1879. SDKShapeTraits bool `type:"structure"`
  1880. }
  1881. // String returns the string representation
  1882. func (s ListSuitesOutput) String() string {
  1883. return awsutil.Prettify(s)
  1884. }
  1885. // GoString returns the string representation
  1886. func (s ListSuitesOutput) GoString() string {
  1887. return s.String()
  1888. }
  1889. // Represents a request to the list tests operation.
  1890. type ListTestsInput struct {
  1891. // The tests' ARNs.
  1892. Arn *string `locationName:"arn" type:"string" required:"true"`
  1893. // An identifier that was returned from the previous call to this operation,
  1894. // which can be used to return the next set of items in the list.
  1895. NextToken *string `locationName:"nextToken" type:"string"`
  1896. metadataListTestsInput `json:"-" xml:"-"`
  1897. }
  1898. type metadataListTestsInput struct {
  1899. SDKShapeTraits bool `type:"structure"`
  1900. }
  1901. // String returns the string representation
  1902. func (s ListTestsInput) String() string {
  1903. return awsutil.Prettify(s)
  1904. }
  1905. // GoString returns the string representation
  1906. func (s ListTestsInput) GoString() string {
  1907. return s.String()
  1908. }
  1909. // Represents the result of a list tests request.
  1910. type ListTestsOutput struct {
  1911. // If the number of items that are returned is significantly large, this is
  1912. // an identifier that is also returned, which can be used in a subsequent call
  1913. // to this operation to return the next set of items in the list.
  1914. NextToken *string `locationName:"nextToken" type:"string"`
  1915. // Information about the tests.
  1916. Tests []*Test `locationName:"tests" type:"list"`
  1917. metadataListTestsOutput `json:"-" xml:"-"`
  1918. }
  1919. type metadataListTestsOutput struct {
  1920. SDKShapeTraits bool `type:"structure"`
  1921. }
  1922. // String returns the string representation
  1923. func (s ListTestsOutput) String() string {
  1924. return awsutil.Prettify(s)
  1925. }
  1926. // GoString returns the string representation
  1927. func (s ListTestsOutput) GoString() string {
  1928. return s.String()
  1929. }
  1930. // Represents a request to the list unique problems operation.
  1931. type ListUniqueProblemsInput struct {
  1932. // The unique problems' ARNs.
  1933. Arn *string `locationName:"arn" type:"string" required:"true"`
  1934. // An identifier that was returned from the previous call to this operation,
  1935. // which can be used to return the next set of items in the list.
  1936. NextToken *string `locationName:"nextToken" type:"string"`
  1937. metadataListUniqueProblemsInput `json:"-" xml:"-"`
  1938. }
  1939. type metadataListUniqueProblemsInput struct {
  1940. SDKShapeTraits bool `type:"structure"`
  1941. }
  1942. // String returns the string representation
  1943. func (s ListUniqueProblemsInput) String() string {
  1944. return awsutil.Prettify(s)
  1945. }
  1946. // GoString returns the string representation
  1947. func (s ListUniqueProblemsInput) GoString() string {
  1948. return s.String()
  1949. }
  1950. // Represents the result of a list unique problems request.
  1951. type ListUniqueProblemsOutput struct {
  1952. // If the number of items that are returned is significantly large, this is
  1953. // an identifier that is also returned, which can be used in a subsequent call
  1954. // to this operation to return the next set of items in the list.
  1955. NextToken *string `locationName:"nextToken" type:"string"`
  1956. // Information about the unique problems.
  1957. //
  1958. // Allowed values include:
  1959. //
  1960. // ERRORED: An error condition.
  1961. //
  1962. // FAILED: A failed condition.
  1963. //
  1964. // SKIPPED: A skipped condition.
  1965. //
  1966. // STOPPED: A stopped condition.
  1967. //
  1968. // PASSED: A passing condition.
  1969. //
  1970. // PENDING: A pending condition.
  1971. //
  1972. // WARNED: A warning condition.
  1973. UniqueProblems map[string][]*UniqueProblem `locationName:"uniqueProblems" type:"map"`
  1974. metadataListUniqueProblemsOutput `json:"-" xml:"-"`
  1975. }
  1976. type metadataListUniqueProblemsOutput struct {
  1977. SDKShapeTraits bool `type:"structure"`
  1978. }
  1979. // String returns the string representation
  1980. func (s ListUniqueProblemsOutput) String() string {
  1981. return awsutil.Prettify(s)
  1982. }
  1983. // GoString returns the string representation
  1984. func (s ListUniqueProblemsOutput) GoString() string {
  1985. return s.String()
  1986. }
  1987. // Represents a request to the list uploads operation.
  1988. type ListUploadsInput struct {
  1989. // The uploads' ARNs.
  1990. Arn *string `locationName:"arn" type:"string" required:"true"`
  1991. // An identifier that was returned from the previous call to this operation,
  1992. // which can be used to return the next set of items in the list.
  1993. NextToken *string `locationName:"nextToken" type:"string"`
  1994. metadataListUploadsInput `json:"-" xml:"-"`
  1995. }
  1996. type metadataListUploadsInput struct {
  1997. SDKShapeTraits bool `type:"structure"`
  1998. }
  1999. // String returns the string representation
  2000. func (s ListUploadsInput) String() string {
  2001. return awsutil.Prettify(s)
  2002. }
  2003. // GoString returns the string representation
  2004. func (s ListUploadsInput) GoString() string {
  2005. return s.String()
  2006. }
  2007. // Represents the result of a list uploads request.
  2008. type ListUploadsOutput struct {
  2009. // If the number of items that are returned is significantly large, this is
  2010. // an identifier that is also returned, which can be used in a subsequent call
  2011. // to this operation to return the next set of items in the list.
  2012. NextToken *string `locationName:"nextToken" type:"string"`
  2013. // Information about the uploads.
  2014. Uploads []*Upload `locationName:"uploads" type:"list"`
  2015. metadataListUploadsOutput `json:"-" xml:"-"`
  2016. }
  2017. type metadataListUploadsOutput struct {
  2018. SDKShapeTraits bool `type:"structure"`
  2019. }
  2020. // String returns the string representation
  2021. func (s ListUploadsOutput) String() string {
  2022. return awsutil.Prettify(s)
  2023. }
  2024. // GoString returns the string representation
  2025. func (s ListUploadsOutput) GoString() string {
  2026. return s.String()
  2027. }
  2028. // Represents a latitude and longitude pair, expressed in geographic coordinate
  2029. // system degrees (for example 47.6204, -122.3491).
  2030. //
  2031. // Elevation is currently not supported.
  2032. type Location struct {
  2033. // The latitude.
  2034. Latitude *float64 `locationName:"latitude" type:"double" required:"true"`
  2035. // The longitude.
  2036. Longitude *float64 `locationName:"longitude" type:"double" required:"true"`
  2037. metadataLocation `json:"-" xml:"-"`
  2038. }
  2039. type metadataLocation struct {
  2040. SDKShapeTraits bool `type:"structure"`
  2041. }
  2042. // String returns the string representation
  2043. func (s Location) String() string {
  2044. return awsutil.Prettify(s)
  2045. }
  2046. // GoString returns the string representation
  2047. func (s Location) GoString() string {
  2048. return s.String()
  2049. }
  2050. // Represents a specific warning or failure.
  2051. type Problem struct {
  2052. // Information about the associated device.
  2053. Device *Device `locationName:"device" type:"structure"`
  2054. // Information about the associated job.
  2055. Job *ProblemDetail `locationName:"job" type:"structure"`
  2056. // A message about the problem's result.
  2057. Message *string `locationName:"message" type:"string"`
  2058. // The problem's result.
  2059. //
  2060. // Allowed values include:
  2061. //
  2062. // ERRORED: An error condition.
  2063. //
  2064. // FAILED: A failed condition.
  2065. //
  2066. // SKIPPED: A skipped condition.
  2067. //
  2068. // STOPPED: A stopped condition.
  2069. //
  2070. // PASSED: A passing condition.
  2071. //
  2072. // PENDING: A pending condition.
  2073. //
  2074. // WARNED: A warning condition.
  2075. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"`
  2076. // Information about the associated run.
  2077. Run *ProblemDetail `locationName:"run" type:"structure"`
  2078. // Information about the associated suite.
  2079. Suite *ProblemDetail `locationName:"suite" type:"structure"`
  2080. // Information about the associated test.
  2081. Test *ProblemDetail `locationName:"test" type:"structure"`
  2082. metadataProblem `json:"-" xml:"-"`
  2083. }
  2084. type metadataProblem struct {
  2085. SDKShapeTraits bool `type:"structure"`
  2086. }
  2087. // String returns the string representation
  2088. func (s Problem) String() string {
  2089. return awsutil.Prettify(s)
  2090. }
  2091. // GoString returns the string representation
  2092. func (s Problem) GoString() string {
  2093. return s.String()
  2094. }
  2095. // Information about a problem detail.
  2096. type ProblemDetail struct {
  2097. // The problem detail's ARN.
  2098. Arn *string `locationName:"arn" type:"string"`
  2099. // The problem detail's name.
  2100. Name *string `locationName:"name" type:"string"`
  2101. metadataProblemDetail `json:"-" xml:"-"`
  2102. }
  2103. type metadataProblemDetail struct {
  2104. SDKShapeTraits bool `type:"structure"`
  2105. }
  2106. // String returns the string representation
  2107. func (s ProblemDetail) String() string {
  2108. return awsutil.Prettify(s)
  2109. }
  2110. // GoString returns the string representation
  2111. func (s ProblemDetail) GoString() string {
  2112. return s.String()
  2113. }
  2114. // Represents an operating-system neutral workspace for running and managing
  2115. // tests.
  2116. type Project struct {
  2117. // The project's ARN.
  2118. Arn *string `locationName:"arn" type:"string"`
  2119. // When the project was created.
  2120. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  2121. // The project's name.
  2122. Name *string `locationName:"name" type:"string"`
  2123. metadataProject `json:"-" xml:"-"`
  2124. }
  2125. type metadataProject struct {
  2126. SDKShapeTraits bool `type:"structure"`
  2127. }
  2128. // String returns the string representation
  2129. func (s Project) String() string {
  2130. return awsutil.Prettify(s)
  2131. }
  2132. // GoString returns the string representation
  2133. func (s Project) GoString() string {
  2134. return s.String()
  2135. }
  2136. // Represents the set of radios and their states on a device. Examples of radios
  2137. // include Wi-Fi, GPS, Bluetooth, and NFC.
  2138. type Radios struct {
  2139. // True if Bluetooth is enabled at the beginning of the test; otherwise, false.
  2140. Bluetooth *bool `locationName:"bluetooth" type:"boolean"`
  2141. // True if GPS is enabled at the beginning of the test; otherwise, false.
  2142. Gps *bool `locationName:"gps" type:"boolean"`
  2143. // True if NFC is enabled at the beginning of the test; otherwise, false.
  2144. Nfc *bool `locationName:"nfc" type:"boolean"`
  2145. // True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
  2146. Wifi *bool `locationName:"wifi" type:"boolean"`
  2147. metadataRadios `json:"-" xml:"-"`
  2148. }
  2149. type metadataRadios struct {
  2150. SDKShapeTraits bool `type:"structure"`
  2151. }
  2152. // String returns the string representation
  2153. func (s Radios) String() string {
  2154. return awsutil.Prettify(s)
  2155. }
  2156. // GoString returns the string representation
  2157. func (s Radios) GoString() string {
  2158. return s.String()
  2159. }
  2160. // Represents the screen resolution of a device in height and width, expressed
  2161. // in pixels.
  2162. type Resolution struct {
  2163. // The screen resolution's height, expressed in pixels.
  2164. Height *int64 `locationName:"height" type:"integer"`
  2165. // The screen resolution's width, expressed in pixels.
  2166. Width *int64 `locationName:"width" type:"integer"`
  2167. metadataResolution `json:"-" xml:"-"`
  2168. }
  2169. type metadataResolution struct {
  2170. SDKShapeTraits bool `type:"structure"`
  2171. }
  2172. // String returns the string representation
  2173. func (s Resolution) String() string {
  2174. return awsutil.Prettify(s)
  2175. }
  2176. // GoString returns the string representation
  2177. func (s Resolution) GoString() string {
  2178. return s.String()
  2179. }
  2180. // Represents a condition for a device pool.
  2181. type Rule struct {
  2182. // The rule's attribute.
  2183. //
  2184. // Allowed values include:
  2185. //
  2186. // ARN: The ARN.
  2187. //
  2188. // FORM_FACTOR: The form factor (for example, phone or tablet).
  2189. //
  2190. // MANUFACTURER: The manufacturer.
  2191. //
  2192. // PLATFORM: The platform (for example, Android or iOS).
  2193. Attribute *string `locationName:"attribute" type:"string" enum:"DeviceAttribute"`
  2194. // The rule's operator.
  2195. //
  2196. // EQUALS: The equals operator.
  2197. //
  2198. // GREATER_THAN: The greater-than operator.
  2199. //
  2200. // IN: The in operator.
  2201. //
  2202. // LESS_THAN: The less-than operator.
  2203. //
  2204. // NOT_IN: The not-in operator.
  2205. Operator *string `locationName:"operator" type:"string" enum:"RuleOperator"`
  2206. // The rule's value.
  2207. Value *string `locationName:"value" type:"string"`
  2208. metadataRule `json:"-" xml:"-"`
  2209. }
  2210. type metadataRule struct {
  2211. SDKShapeTraits bool `type:"structure"`
  2212. }
  2213. // String returns the string representation
  2214. func (s Rule) String() string {
  2215. return awsutil.Prettify(s)
  2216. }
  2217. // GoString returns the string representation
  2218. func (s Rule) GoString() string {
  2219. return s.String()
  2220. }
  2221. // Represents an app on a set of devices with a specific test and configuration.
  2222. type Run struct {
  2223. // The run's ARN.
  2224. Arn *string `locationName:"arn" type:"string"`
  2225. // Specifies the billing method for a test run: metered or unmetered. If the
  2226. // parameter is not specified, the default value is unmetered.
  2227. BillingMethod *string `locationName:"billingMethod" type:"string" enum:"BillingMethod"`
  2228. // The total number of completed jobs.
  2229. CompletedJobs *int64 `locationName:"completedJobs" type:"integer"`
  2230. // The run's result counters.
  2231. Counters *Counters `locationName:"counters" type:"structure"`
  2232. // When the run was created.
  2233. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  2234. // A message about the run's result.
  2235. Message *string `locationName:"message" type:"string"`
  2236. // The run's name.
  2237. Name *string `locationName:"name" type:"string"`
  2238. // The run's platform.
  2239. //
  2240. // Allowed values include:
  2241. //
  2242. // ANDROID: The Android platform.
  2243. //
  2244. // IOS: The iOS platform.
  2245. Platform *string `locationName:"platform" type:"string" enum:"DevicePlatform"`
  2246. // The run's result.
  2247. //
  2248. // Allowed values include:
  2249. //
  2250. // ERRORED: An error condition.
  2251. //
  2252. // FAILED: A failed condition.
  2253. //
  2254. // SKIPPED: A skipped condition.
  2255. //
  2256. // STOPPED: A stopped condition.
  2257. //
  2258. // PASSED: A passing condition.
  2259. //
  2260. // PENDING: A pending condition.
  2261. //
  2262. // WARNED: A warning condition.
  2263. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"`
  2264. // The run's start time.
  2265. Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
  2266. // The run's status.
  2267. //
  2268. // Allowed values include:
  2269. //
  2270. // COMPLETED: A completed status.
  2271. //
  2272. // PENDING: A pending status.
  2273. //
  2274. // PROCESSING: A processing status.
  2275. //
  2276. // RUNNING: A running status.
  2277. //
  2278. // SCHEDULING: A scheduling status.
  2279. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"`
  2280. // The run's stop time.
  2281. Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
  2282. // The total number of jobs for the run.
  2283. TotalJobs *int64 `locationName:"totalJobs" type:"integer"`
  2284. // The run's type.
  2285. //
  2286. // Must be one of the following values:
  2287. //
  2288. // BUILTIN_FUZZ: The built-in fuzz type.
  2289. //
  2290. // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android
  2291. // app, interacting with it and capturing screenshots at the same time.
  2292. //
  2293. // APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
  2294. //
  2295. // APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
  2296. //
  2297. // CALABASH: The Calabash type.
  2298. //
  2299. // INSTRUMENTATION: The Instrumentation type.
  2300. //
  2301. // UIAUTOMATION: The uiautomation type.
  2302. //
  2303. // UIAUTOMATOR: The uiautomator type.
  2304. //
  2305. // XCTEST: The XCode test type.
  2306. Type *string `locationName:"type" type:"string" enum:"TestType"`
  2307. metadataRun `json:"-" xml:"-"`
  2308. }
  2309. type metadataRun struct {
  2310. SDKShapeTraits bool `type:"structure"`
  2311. }
  2312. // String returns the string representation
  2313. func (s Run) String() string {
  2314. return awsutil.Prettify(s)
  2315. }
  2316. // GoString returns the string representation
  2317. func (s Run) GoString() string {
  2318. return s.String()
  2319. }
  2320. // Represents a sample of performance data.
  2321. type Sample struct {
  2322. // The sample's ARN.
  2323. Arn *string `locationName:"arn" type:"string"`
  2324. // The sample's type.
  2325. //
  2326. // Must be one of the following values:
  2327. //
  2328. // CPU: A CPU sample type. This is expressed as the app processing CPU time
  2329. // (including child processes) as reported by process, as a percentage.
  2330. //
  2331. // MEMORY: A memory usage sample type. This is expressed as the total proportional
  2332. // set size of an app process, in kilobytes.
  2333. //
  2334. // NATIVE_AVG_DRAWTIME
  2335. //
  2336. // NATIVE_FPS
  2337. //
  2338. // NATIVE_FRAMES
  2339. //
  2340. // NATIVE_MAX_DRAWTIME
  2341. //
  2342. // NATIVE_MIN_DRAWTIME
  2343. //
  2344. // OPENGL_AVG_DRAWTIME
  2345. //
  2346. // OPENGL_FPS
  2347. //
  2348. // OPENGL_FRAMES
  2349. //
  2350. // OPENGL_MAX_DRAWTIME
  2351. //
  2352. // OPENGL_MIN_DRAWTIME
  2353. //
  2354. // RX
  2355. //
  2356. // RX_RATE: The total number of bytes per second (TCP and UDP) that are sent,
  2357. // by app process.
  2358. //
  2359. // THREADS: A threads sample type. This is expressed as the total number of
  2360. // threads per app process.
  2361. //
  2362. // TX
  2363. //
  2364. // TX_RATE: The total number of bytes per second (TCP and UDP) that are received,
  2365. // by app process.
  2366. Type *string `locationName:"type" type:"string" enum:"SampleType"`
  2367. // The pre-signed Amazon S3 URL that can be used with a corresponding GET request
  2368. // to download the sample's file.
  2369. Url *string `locationName:"url" type:"string"`
  2370. metadataSample `json:"-" xml:"-"`
  2371. }
  2372. type metadataSample struct {
  2373. SDKShapeTraits bool `type:"structure"`
  2374. }
  2375. // String returns the string representation
  2376. func (s Sample) String() string {
  2377. return awsutil.Prettify(s)
  2378. }
  2379. // GoString returns the string representation
  2380. func (s Sample) GoString() string {
  2381. return s.String()
  2382. }
  2383. // Represents the settings for a run. Includes things like location, radio states,
  2384. // auxiliary apps, and network profiles.
  2385. type ScheduleRunConfiguration struct {
  2386. // A list of auxiliary apps for the run.
  2387. AuxiliaryApps []*string `locationName:"auxiliaryApps" type:"list"`
  2388. // Specifies the billing method for a test run: metered or unmetered. If the
  2389. // parameter is not specified, the default value is unmetered.
  2390. BillingMethod *string `locationName:"billingMethod" type:"string" enum:"BillingMethod"`
  2391. // The ARN of the extra data for the run. The extra data is a .zip file that
  2392. // AWS Device Farm will extract to external data for Android or the app's sandbox
  2393. // for iOS.
  2394. ExtraDataPackageArn *string `locationName:"extraDataPackageArn" type:"string"`
  2395. // Information about the locale that is used for the run.
  2396. Locale *string `locationName:"locale" type:"string"`
  2397. // Information about the location that is used for the run.
  2398. Location *Location `locationName:"location" type:"structure"`
  2399. // Reserved for internal use.
  2400. NetworkProfileArn *string `locationName:"networkProfileArn" type:"string"`
  2401. // Information about the radio states for the run.
  2402. Radios *Radios `locationName:"radios" type:"structure"`
  2403. metadataScheduleRunConfiguration `json:"-" xml:"-"`
  2404. }
  2405. type metadataScheduleRunConfiguration struct {
  2406. SDKShapeTraits bool `type:"structure"`
  2407. }
  2408. // String returns the string representation
  2409. func (s ScheduleRunConfiguration) String() string {
  2410. return awsutil.Prettify(s)
  2411. }
  2412. // GoString returns the string representation
  2413. func (s ScheduleRunConfiguration) GoString() string {
  2414. return s.String()
  2415. }
  2416. // Represents a request to the schedule run operation.
  2417. type ScheduleRunInput struct {
  2418. // The ARN of the app to schedule a run.
  2419. AppArn *string `locationName:"appArn" type:"string" required:"true"`
  2420. // Information about the settings for the run to be scheduled.
  2421. Configuration *ScheduleRunConfiguration `locationName:"configuration" type:"structure"`
  2422. // The ARN of the device pool for the run to be scheduled.
  2423. DevicePoolArn *string `locationName:"devicePoolArn" type:"string" required:"true"`
  2424. // The name for the run to be scheduled.
  2425. Name *string `locationName:"name" type:"string"`
  2426. // The ARN of the project for the run to be scheduled.
  2427. ProjectArn *string `locationName:"projectArn" type:"string" required:"true"`
  2428. // Information about the test for the run to be scheduled.
  2429. Test *ScheduleRunTest `locationName:"test" type:"structure" required:"true"`
  2430. metadataScheduleRunInput `json:"-" xml:"-"`
  2431. }
  2432. type metadataScheduleRunInput struct {
  2433. SDKShapeTraits bool `type:"structure"`
  2434. }
  2435. // String returns the string representation
  2436. func (s ScheduleRunInput) String() string {
  2437. return awsutil.Prettify(s)
  2438. }
  2439. // GoString returns the string representation
  2440. func (s ScheduleRunInput) GoString() string {
  2441. return s.String()
  2442. }
  2443. // Represents the result of a schedule run request.
  2444. type ScheduleRunOutput struct {
  2445. // Information about the scheduled run.
  2446. Run *Run `locationName:"run" type:"structure"`
  2447. metadataScheduleRunOutput `json:"-" xml:"-"`
  2448. }
  2449. type metadataScheduleRunOutput struct {
  2450. SDKShapeTraits bool `type:"structure"`
  2451. }
  2452. // String returns the string representation
  2453. func (s ScheduleRunOutput) String() string {
  2454. return awsutil.Prettify(s)
  2455. }
  2456. // GoString returns the string representation
  2457. func (s ScheduleRunOutput) GoString() string {
  2458. return s.String()
  2459. }
  2460. // Represents additional test settings.
  2461. type ScheduleRunTest struct {
  2462. // The test's filter.
  2463. Filter *string `locationName:"filter" type:"string"`
  2464. // The test's parameters, such as test framework parameters and fixture settings.
  2465. Parameters map[string]*string `locationName:"parameters" type:"map"`
  2466. // The ARN of the uploaded test that will be run.
  2467. TestPackageArn *string `locationName:"testPackageArn" type:"string"`
  2468. // The test's type.
  2469. //
  2470. // Must be one of the following values:
  2471. //
  2472. // BUILTIN_FUZZ: The built-in fuzz type.
  2473. //
  2474. // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android
  2475. // app, interacting with it and capturing screenshots at the same time.
  2476. //
  2477. // APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
  2478. //
  2479. // APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
  2480. //
  2481. // CALABASH: The Calabash type.
  2482. //
  2483. // INSTRUMENTATION: The Instrumentation type.
  2484. //
  2485. // UIAUTOMATION: The uiautomation type.
  2486. //
  2487. // UIAUTOMATOR: The uiautomator type.
  2488. //
  2489. // XCTEST: The XCode test type.
  2490. Type *string `locationName:"type" type:"string" required:"true" enum:"TestType"`
  2491. metadataScheduleRunTest `json:"-" xml:"-"`
  2492. }
  2493. type metadataScheduleRunTest struct {
  2494. SDKShapeTraits bool `type:"structure"`
  2495. }
  2496. // String returns the string representation
  2497. func (s ScheduleRunTest) String() string {
  2498. return awsutil.Prettify(s)
  2499. }
  2500. // GoString returns the string representation
  2501. func (s ScheduleRunTest) GoString() string {
  2502. return s.String()
  2503. }
  2504. // Represents a collection of one or more tests.
  2505. type Suite struct {
  2506. // The suite's ARN.
  2507. Arn *string `locationName:"arn" type:"string"`
  2508. // The suite's result counters.
  2509. Counters *Counters `locationName:"counters" type:"structure"`
  2510. // When the suite was created.
  2511. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  2512. // A message about the suite's result.
  2513. Message *string `locationName:"message" type:"string"`
  2514. // The suite's name.
  2515. Name *string `locationName:"name" type:"string"`
  2516. // The suite's result.
  2517. //
  2518. // Allowed values include:
  2519. //
  2520. // ERRORED: An error condition.
  2521. //
  2522. // FAILED: A failed condition.
  2523. //
  2524. // SKIPPED: A skipped condition.
  2525. //
  2526. // STOPPED: A stopped condition.
  2527. //
  2528. // PASSED: A passing condition.
  2529. //
  2530. // PENDING: A pending condition.
  2531. //
  2532. // WARNED: A warning condition.
  2533. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"`
  2534. // The suite's start time.
  2535. Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
  2536. // The suite's status.
  2537. //
  2538. // Allowed values include:
  2539. //
  2540. // COMPLETED: A completed status.
  2541. //
  2542. // PENDING: A pending status.
  2543. //
  2544. // PROCESSING: A processing status.
  2545. //
  2546. // RUNNING: A running status.
  2547. //
  2548. // SCHEDULING: A scheduling status.
  2549. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"`
  2550. // The suite's stop time.
  2551. Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
  2552. // The suite's type.
  2553. //
  2554. // Must be one of the following values:
  2555. //
  2556. // BUILTIN_FUZZ: The built-in fuzz type.
  2557. //
  2558. // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android
  2559. // app, interacting with it and capturing screenshots at the same time.
  2560. //
  2561. // APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
  2562. //
  2563. // APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
  2564. //
  2565. // CALABASH: The Calabash type.
  2566. //
  2567. // INSTRUMENTATION: The Instrumentation type.
  2568. //
  2569. // UIAUTOMATION: The uiautomation type.
  2570. //
  2571. // UIAUTOMATOR: The uiautomator type.
  2572. //
  2573. // XCTEST: The XCode test type.
  2574. Type *string `locationName:"type" type:"string" enum:"TestType"`
  2575. metadataSuite `json:"-" xml:"-"`
  2576. }
  2577. type metadataSuite struct {
  2578. SDKShapeTraits bool `type:"structure"`
  2579. }
  2580. // String returns the string representation
  2581. func (s Suite) String() string {
  2582. return awsutil.Prettify(s)
  2583. }
  2584. // GoString returns the string representation
  2585. func (s Suite) GoString() string {
  2586. return s.String()
  2587. }
  2588. // Represents a condition that is evaluated.
  2589. type Test struct {
  2590. // The test's ARN.
  2591. Arn *string `locationName:"arn" type:"string"`
  2592. // The test's result counters.
  2593. Counters *Counters `locationName:"counters" type:"structure"`
  2594. // When the test was created.
  2595. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  2596. // A message about the test's result.
  2597. Message *string `locationName:"message" type:"string"`
  2598. // The test's name.
  2599. Name *string `locationName:"name" type:"string"`
  2600. // The test's result.
  2601. //
  2602. // Allowed values include:
  2603. //
  2604. // ERRORED: An error condition.
  2605. //
  2606. // FAILED: A failed condition.
  2607. //
  2608. // SKIPPED: A skipped condition.
  2609. //
  2610. // STOPPED: A stopped condition.
  2611. //
  2612. // PASSED: A passing condition.
  2613. //
  2614. // PENDING: A pending condition.
  2615. //
  2616. // WARNED: A warning condition.
  2617. Result *string `locationName:"result" type:"string" enum:"ExecutionResult"`
  2618. // The test's start time.
  2619. Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
  2620. // The test's status.
  2621. //
  2622. // Allowed values include:
  2623. //
  2624. // COMPLETED: A completed status.
  2625. //
  2626. // PENDING: A pending status.
  2627. //
  2628. // PROCESSING: A processing status.
  2629. //
  2630. // RUNNING: A running status.
  2631. //
  2632. // SCHEDULING: A scheduling status.
  2633. Status *string `locationName:"status" type:"string" enum:"ExecutionStatus"`
  2634. // The test's stop time.
  2635. Stopped *time.Time `locationName:"stopped" type:"timestamp" timestampFormat:"unix"`
  2636. // The test's type.
  2637. //
  2638. // Must be one of the following values:
  2639. //
  2640. // BUILTIN_FUZZ: The built-in fuzz type.
  2641. //
  2642. // BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android
  2643. // app, interacting with it and capturing screenshots at the same time.
  2644. //
  2645. // APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
  2646. //
  2647. // APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
  2648. //
  2649. // CALABASH: The Calabash type.
  2650. //
  2651. // INSTRUMENTATION: The Instrumentation type.
  2652. //
  2653. // UIAUTOMATION: The uiautomation type.
  2654. //
  2655. // UIAUTOMATOR: The uiautomator type.
  2656. //
  2657. // XCTEST: The XCode test type.
  2658. Type *string `locationName:"type" type:"string" enum:"TestType"`
  2659. metadataTest `json:"-" xml:"-"`
  2660. }
  2661. type metadataTest struct {
  2662. SDKShapeTraits bool `type:"structure"`
  2663. }
  2664. // String returns the string representation
  2665. func (s Test) String() string {
  2666. return awsutil.Prettify(s)
  2667. }
  2668. // GoString returns the string representation
  2669. func (s Test) GoString() string {
  2670. return s.String()
  2671. }
  2672. // A collection of one or more problems, grouped by their result.
  2673. type UniqueProblem struct {
  2674. // A message about the unique problems' result.
  2675. Message *string `locationName:"message" type:"string"`
  2676. // Information about the problems.
  2677. Problems []*Problem `locationName:"problems" type:"list"`
  2678. metadataUniqueProblem `json:"-" xml:"-"`
  2679. }
  2680. type metadataUniqueProblem struct {
  2681. SDKShapeTraits bool `type:"structure"`
  2682. }
  2683. // String returns the string representation
  2684. func (s UniqueProblem) String() string {
  2685. return awsutil.Prettify(s)
  2686. }
  2687. // GoString returns the string representation
  2688. func (s UniqueProblem) GoString() string {
  2689. return s.String()
  2690. }
  2691. // An app or a set of one or more tests to upload or that have been uploaded.
  2692. type Upload struct {
  2693. // The upload's ARN.
  2694. Arn *string `locationName:"arn" type:"string"`
  2695. // The upload's content type (for example, "application/octet-stream").
  2696. ContentType *string `locationName:"contentType" type:"string"`
  2697. // When the upload was created.
  2698. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  2699. // A message about the upload's result.
  2700. Message *string `locationName:"message" type:"string"`
  2701. // The upload's metadata. For example, for Android, this contains information
  2702. // that is parsed from the manifest and is displayed in the AWS Device Farm
  2703. // console after the associated app is uploaded.
  2704. Metadata *string `locationName:"metadata" type:"string"`
  2705. // The upload's file name.
  2706. Name *string `locationName:"name" type:"string"`
  2707. // The upload's status.
  2708. //
  2709. // Must be one of the following values:
  2710. //
  2711. // FAILED: A failed status.
  2712. //
  2713. // INITIALIZED: An initialized status.
  2714. //
  2715. // PROCESSING: A processing status.
  2716. //
  2717. // SUCCEEDED: A succeeded status.
  2718. Status *string `locationName:"status" type:"string" enum:"UploadStatus"`
  2719. // The upload's type.
  2720. //
  2721. // Must be one of the following values:
  2722. //
  2723. // ANDROID_APP: An Android upload.
  2724. //
  2725. // IOS_APP: An iOS upload.
  2726. //
  2727. // EXTERNAL_DATA: An external data upload.
  2728. //
  2729. // APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.
  2730. //
  2731. // APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.
  2732. //
  2733. // CALABASH_TEST_PACKAGE: A Calabash test package upload.
  2734. //
  2735. // INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.
  2736. //
  2737. // UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.
  2738. //
  2739. // XCTEST_TEST_PACKAGE: An XCode test package upload.
  2740. Type *string `locationName:"type" type:"string" enum:"UploadType"`
  2741. // The pre-signed Amazon S3 URL that was used to store a file through a corresponding
  2742. // PUT request.
  2743. Url *string `locationName:"url" type:"string"`
  2744. metadataUpload `json:"-" xml:"-"`
  2745. }
  2746. type metadataUpload struct {
  2747. SDKShapeTraits bool `type:"structure"`
  2748. }
  2749. // String returns the string representation
  2750. func (s Upload) String() string {
  2751. return awsutil.Prettify(s)
  2752. }
  2753. // GoString returns the string representation
  2754. func (s Upload) GoString() string {
  2755. return s.String()
  2756. }
  2757. const (
  2758. // @enum ArtifactCategory
  2759. ArtifactCategoryScreenshot = "SCREENSHOT"
  2760. // @enum ArtifactCategory
  2761. ArtifactCategoryFile = "FILE"
  2762. // @enum ArtifactCategory
  2763. ArtifactCategoryLog = "LOG"
  2764. )
  2765. const (
  2766. // @enum ArtifactType
  2767. ArtifactTypeUnknown = "UNKNOWN"
  2768. // @enum ArtifactType
  2769. ArtifactTypeScreenshot = "SCREENSHOT"
  2770. // @enum ArtifactType
  2771. ArtifactTypeDeviceLog = "DEVICE_LOG"
  2772. // @enum ArtifactType
  2773. ArtifactTypeMessageLog = "MESSAGE_LOG"
  2774. // @enum ArtifactType
  2775. ArtifactTypeResultLog = "RESULT_LOG"
  2776. // @enum ArtifactType
  2777. ArtifactTypeServiceLog = "SERVICE_LOG"
  2778. // @enum ArtifactType
  2779. ArtifactTypeInstrumentationOutput = "INSTRUMENTATION_OUTPUT"
  2780. // @enum ArtifactType
  2781. ArtifactTypeExerciserMonkeyOutput = "EXERCISER_MONKEY_OUTPUT"
  2782. // @enum ArtifactType
  2783. ArtifactTypeCalabashJsonOutput = "CALABASH_JSON_OUTPUT"
  2784. // @enum ArtifactType
  2785. ArtifactTypeCalabashPrettyOutput = "CALABASH_PRETTY_OUTPUT"
  2786. // @enum ArtifactType
  2787. ArtifactTypeCalabashStandardOutput = "CALABASH_STANDARD_OUTPUT"
  2788. // @enum ArtifactType
  2789. ArtifactTypeCalabashJavaXmlOutput = "CALABASH_JAVA_XML_OUTPUT"
  2790. // @enum ArtifactType
  2791. ArtifactTypeAutomationOutput = "AUTOMATION_OUTPUT"
  2792. // @enum ArtifactType
  2793. ArtifactTypeAppiumServerOutput = "APPIUM_SERVER_OUTPUT"
  2794. // @enum ArtifactType
  2795. ArtifactTypeAppiumJavaOutput = "APPIUM_JAVA_OUTPUT"
  2796. // @enum ArtifactType
  2797. ArtifactTypeAppiumJavaXmlOutput = "APPIUM_JAVA_XML_OUTPUT"
  2798. )
  2799. const (
  2800. // @enum BillingMethod
  2801. BillingMethodMetered = "METERED"
  2802. // @enum BillingMethod
  2803. BillingMethodUnmetered = "UNMETERED"
  2804. )
  2805. const (
  2806. // @enum DeviceAttribute
  2807. DeviceAttributeArn = "ARN"
  2808. // @enum DeviceAttribute
  2809. DeviceAttributePlatform = "PLATFORM"
  2810. // @enum DeviceAttribute
  2811. DeviceAttributeFormFactor = "FORM_FACTOR"
  2812. // @enum DeviceAttribute
  2813. DeviceAttributeManufacturer = "MANUFACTURER"
  2814. )
  2815. const (
  2816. // @enum DeviceFormFactor
  2817. DeviceFormFactorPhone = "PHONE"
  2818. // @enum DeviceFormFactor
  2819. DeviceFormFactorTablet = "TABLET"
  2820. )
  2821. const (
  2822. // @enum DevicePlatform
  2823. DevicePlatformAndroid = "ANDROID"
  2824. // @enum DevicePlatform
  2825. DevicePlatformIos = "IOS"
  2826. )
  2827. const (
  2828. // @enum DevicePoolType
  2829. DevicePoolTypeCurated = "CURATED"
  2830. // @enum DevicePoolType
  2831. DevicePoolTypePrivate = "PRIVATE"
  2832. )
  2833. const (
  2834. // @enum ExecutionResult
  2835. ExecutionResultPending = "PENDING"
  2836. // @enum ExecutionResult
  2837. ExecutionResultPassed = "PASSED"
  2838. // @enum ExecutionResult
  2839. ExecutionResultWarned = "WARNED"
  2840. // @enum ExecutionResult
  2841. ExecutionResultFailed = "FAILED"
  2842. // @enum ExecutionResult
  2843. ExecutionResultSkipped = "SKIPPED"
  2844. // @enum ExecutionResult
  2845. ExecutionResultErrored = "ERRORED"
  2846. // @enum ExecutionResult
  2847. ExecutionResultStopped = "STOPPED"
  2848. )
  2849. const (
  2850. // @enum ExecutionStatus
  2851. ExecutionStatusPending = "PENDING"
  2852. // @enum ExecutionStatus
  2853. ExecutionStatusProcessing = "PROCESSING"
  2854. // @enum ExecutionStatus
  2855. ExecutionStatusScheduling = "SCHEDULING"
  2856. // @enum ExecutionStatus
  2857. ExecutionStatusRunning = "RUNNING"
  2858. // @enum ExecutionStatus
  2859. ExecutionStatusCompleted = "COMPLETED"
  2860. )
  2861. const (
  2862. // @enum RuleOperator
  2863. RuleOperatorEquals = "EQUALS"
  2864. // @enum RuleOperator
  2865. RuleOperatorLessThan = "LESS_THAN"
  2866. // @enum RuleOperator
  2867. RuleOperatorGreaterThan = "GREATER_THAN"
  2868. // @enum RuleOperator
  2869. RuleOperatorIn = "IN"
  2870. // @enum RuleOperator
  2871. RuleOperatorNotIn = "NOT_IN"
  2872. )
  2873. const (
  2874. // @enum SampleType
  2875. SampleTypeCpu = "CPU"
  2876. // @enum SampleType
  2877. SampleTypeMemory = "MEMORY"
  2878. // @enum SampleType
  2879. SampleTypeThreads = "THREADS"
  2880. // @enum SampleType
  2881. SampleTypeRxRate = "RX_RATE"
  2882. // @enum SampleType
  2883. SampleTypeTxRate = "TX_RATE"
  2884. // @enum SampleType
  2885. SampleTypeRx = "RX"
  2886. // @enum SampleType
  2887. SampleTypeTx = "TX"
  2888. // @enum SampleType
  2889. SampleTypeNativeFrames = "NATIVE_FRAMES"
  2890. // @enum SampleType
  2891. SampleTypeNativeFps = "NATIVE_FPS"
  2892. // @enum SampleType
  2893. SampleTypeNativeMinDrawtime = "NATIVE_MIN_DRAWTIME"
  2894. // @enum SampleType
  2895. SampleTypeNativeAvgDrawtime = "NATIVE_AVG_DRAWTIME"
  2896. // @enum SampleType
  2897. SampleTypeNativeMaxDrawtime = "NATIVE_MAX_DRAWTIME"
  2898. // @enum SampleType
  2899. SampleTypeOpenglFrames = "OPENGL_FRAMES"
  2900. // @enum SampleType
  2901. SampleTypeOpenglFps = "OPENGL_FPS"
  2902. // @enum SampleType
  2903. SampleTypeOpenglMinDrawtime = "OPENGL_MIN_DRAWTIME"
  2904. // @enum SampleType
  2905. SampleTypeOpenglAvgDrawtime = "OPENGL_AVG_DRAWTIME"
  2906. // @enum SampleType
  2907. SampleTypeOpenglMaxDrawtime = "OPENGL_MAX_DRAWTIME"
  2908. )
  2909. const (
  2910. // @enum TestType
  2911. TestTypeBuiltinFuzz = "BUILTIN_FUZZ"
  2912. // @enum TestType
  2913. TestTypeBuiltinExplorer = "BUILTIN_EXPLORER"
  2914. // @enum TestType
  2915. TestTypeAppiumJavaJunit = "APPIUM_JAVA_JUNIT"
  2916. // @enum TestType
  2917. TestTypeAppiumJavaTestng = "APPIUM_JAVA_TESTNG"
  2918. // @enum TestType
  2919. TestTypeCalabash = "CALABASH"
  2920. // @enum TestType
  2921. TestTypeInstrumentation = "INSTRUMENTATION"
  2922. // @enum TestType
  2923. TestTypeUiautomation = "UIAUTOMATION"
  2924. // @enum TestType
  2925. TestTypeUiautomator = "UIAUTOMATOR"
  2926. // @enum TestType
  2927. TestTypeXctest = "XCTEST"
  2928. )
  2929. const (
  2930. // @enum UploadStatus
  2931. UploadStatusInitialized = "INITIALIZED"
  2932. // @enum UploadStatus
  2933. UploadStatusProcessing = "PROCESSING"
  2934. // @enum UploadStatus
  2935. UploadStatusSucceeded = "SUCCEEDED"
  2936. // @enum UploadStatus
  2937. UploadStatusFailed = "FAILED"
  2938. )
  2939. const (
  2940. // @enum UploadType
  2941. UploadTypeAndroidApp = "ANDROID_APP"
  2942. // @enum UploadType
  2943. UploadTypeIosApp = "IOS_APP"
  2944. // @enum UploadType
  2945. UploadTypeExternalData = "EXTERNAL_DATA"
  2946. // @enum UploadType
  2947. UploadTypeAppiumJavaJunitTestPackage = "APPIUM_JAVA_JUNIT_TEST_PACKAGE"
  2948. // @enum UploadType
  2949. UploadTypeAppiumJavaTestngTestPackage = "APPIUM_JAVA_TESTNG_TEST_PACKAGE"
  2950. // @enum UploadType
  2951. UploadTypeCalabashTestPackage = "CALABASH_TEST_PACKAGE"
  2952. // @enum UploadType
  2953. UploadTypeInstrumentationTestPackage = "INSTRUMENTATION_TEST_PACKAGE"
  2954. // @enum UploadType
  2955. UploadTypeUiautomationTestPackage = "UIAUTOMATION_TEST_PACKAGE"
  2956. // @enum UploadType
  2957. UploadTypeUiautomatorTestPackage = "UIAUTOMATOR_TEST_PACKAGE"
  2958. // @enum UploadType
  2959. UploadTypeXctestTestPackage = "XCTEST_TEST_PACKAGE"
  2960. )