build_test.go 183 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776
  1. package restxml_test
  2. import (
  3. "bytes"
  4. "encoding/json"
  5. "encoding/xml"
  6. "fmt"
  7. "io"
  8. "io/ioutil"
  9. "net/http"
  10. "net/url"
  11. "testing"
  12. "time"
  13. "github.com/aws/aws-sdk-go/aws"
  14. "github.com/aws/aws-sdk-go/aws/client"
  15. "github.com/aws/aws-sdk-go/aws/client/metadata"
  16. "github.com/aws/aws-sdk-go/aws/request"
  17. "github.com/aws/aws-sdk-go/aws/signer/v4"
  18. "github.com/aws/aws-sdk-go/awstesting"
  19. "github.com/aws/aws-sdk-go/awstesting/unit"
  20. "github.com/aws/aws-sdk-go/private/protocol"
  21. "github.com/aws/aws-sdk-go/private/protocol/restxml"
  22. "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
  23. "github.com/aws/aws-sdk-go/private/util"
  24. "github.com/stretchr/testify/assert"
  25. )
  26. var _ bytes.Buffer // always import bytes
  27. var _ http.Request
  28. var _ json.Marshaler
  29. var _ time.Time
  30. var _ xmlutil.XMLNode
  31. var _ xml.Attr
  32. var _ = ioutil.Discard
  33. var _ = util.Trim("")
  34. var _ = url.Values{}
  35. var _ = io.EOF
  36. var _ = aws.String
  37. var _ = fmt.Println
  38. func init() {
  39. protocol.RandReader = &awstesting.ZeroReader{}
  40. }
  41. //The service client's operations are safe to be used concurrently.
  42. // It is not safe to mutate any of the client's properties though.
  43. type InputService1ProtocolTest struct {
  44. *client.Client
  45. }
  46. // New creates a new instance of the InputService1ProtocolTest client with a session.
  47. // If additional configuration is needed for the client instance use the optional
  48. // aws.Config parameter to add your extra config.
  49. //
  50. // Example:
  51. // // Create a InputService1ProtocolTest client from just a session.
  52. // svc := inputservice1protocoltest.New(mySession)
  53. //
  54. // // Create a InputService1ProtocolTest client with additional configuration
  55. // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  56. func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest {
  57. c := p.ClientConfig("inputservice1protocoltest", cfgs...)
  58. return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  59. }
  60. // newClient creates, initializes and returns a new service client instance.
  61. func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService1ProtocolTest {
  62. svc := &InputService1ProtocolTest{
  63. Client: client.New(
  64. cfg,
  65. metadata.ClientInfo{
  66. ServiceName: "inputservice1protocoltest",
  67. SigningRegion: signingRegion,
  68. Endpoint: endpoint,
  69. APIVersion: "2014-01-01",
  70. },
  71. handlers,
  72. ),
  73. }
  74. // Handlers
  75. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  76. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  77. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  78. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  79. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  80. return svc
  81. }
  82. // newRequest creates a new request for a InputService1ProtocolTest operation and runs any
  83. // custom request initialization.
  84. func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  85. req := c.NewRequest(op, params, data)
  86. return req
  87. }
  88. const opInputService1TestCaseOperation1 = "OperationName"
  89. // InputService1TestCaseOperation1Request generates a "aws/request.Request" representing the
  90. // client's request for the InputService1TestCaseOperation1 operation. The "output" return
  91. // value can be used to capture response data after the request's "Send" method
  92. // is called.
  93. //
  94. // See InputService1TestCaseOperation1 for usage and error information.
  95. //
  96. // Creating a request object using this method should be used when you want to inject
  97. // custom logic into the request's lifecycle using a custom handler, or if you want to
  98. // access properties on the request object before or after sending the request. If
  99. // you just want the service response, call the InputService1TestCaseOperation1 method directly
  100. // instead.
  101. //
  102. // Note: You must call the "Send" method on the returned request object in order
  103. // to execute the request.
  104. //
  105. // // Example sending a request using the InputService1TestCaseOperation1Request method.
  106. // req, resp := client.InputService1TestCaseOperation1Request(params)
  107. //
  108. // err := req.Send()
  109. // if err == nil { // resp is now filled
  110. // fmt.Println(resp)
  111. // }
  112. //
  113. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) {
  114. op := &request.Operation{
  115. Name: opInputService1TestCaseOperation1,
  116. HTTPMethod: "POST",
  117. HTTPPath: "/2014-01-01/hostedzone",
  118. }
  119. if input == nil {
  120. input = &InputService1TestShapeInputShape{}
  121. }
  122. req = c.newRequest(op, input, output)
  123. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  124. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  125. output = &InputService1TestShapeInputService1TestCaseOperation1Output{}
  126. req.Data = output
  127. return
  128. }
  129. // InputService1TestCaseOperation1 API operation for .
  130. //
  131. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  132. // with awserr.Error's Code and Message methods to get detailed information about
  133. // the error.
  134. //
  135. // See the AWS API reference guide for 's
  136. // API operation InputService1TestCaseOperation1 for usage and error information.
  137. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) {
  138. req, out := c.InputService1TestCaseOperation1Request(input)
  139. err := req.Send()
  140. return out, err
  141. }
  142. const opInputService1TestCaseOperation2 = "OperationName"
  143. // InputService1TestCaseOperation2Request generates a "aws/request.Request" representing the
  144. // client's request for the InputService1TestCaseOperation2 operation. The "output" return
  145. // value can be used to capture response data after the request's "Send" method
  146. // is called.
  147. //
  148. // See InputService1TestCaseOperation2 for usage and error information.
  149. //
  150. // Creating a request object using this method should be used when you want to inject
  151. // custom logic into the request's lifecycle using a custom handler, or if you want to
  152. // access properties on the request object before or after sending the request. If
  153. // you just want the service response, call the InputService1TestCaseOperation2 method directly
  154. // instead.
  155. //
  156. // Note: You must call the "Send" method on the returned request object in order
  157. // to execute the request.
  158. //
  159. // // Example sending a request using the InputService1TestCaseOperation2Request method.
  160. // req, resp := client.InputService1TestCaseOperation2Request(params)
  161. //
  162. // err := req.Send()
  163. // if err == nil { // resp is now filled
  164. // fmt.Println(resp)
  165. // }
  166. //
  167. func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation2Output) {
  168. op := &request.Operation{
  169. Name: opInputService1TestCaseOperation2,
  170. HTTPMethod: "PUT",
  171. HTTPPath: "/2014-01-01/hostedzone",
  172. }
  173. if input == nil {
  174. input = &InputService1TestShapeInputShape{}
  175. }
  176. req = c.newRequest(op, input, output)
  177. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  178. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  179. output = &InputService1TestShapeInputService1TestCaseOperation2Output{}
  180. req.Data = output
  181. return
  182. }
  183. // InputService1TestCaseOperation2 API operation for .
  184. //
  185. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  186. // with awserr.Error's Code and Message methods to get detailed information about
  187. // the error.
  188. //
  189. // See the AWS API reference guide for 's
  190. // API operation InputService1TestCaseOperation2 for usage and error information.
  191. func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) {
  192. req, out := c.InputService1TestCaseOperation2Request(input)
  193. err := req.Send()
  194. return out, err
  195. }
  196. const opInputService1TestCaseOperation3 = "OperationName"
  197. // InputService1TestCaseOperation3Request generates a "aws/request.Request" representing the
  198. // client's request for the InputService1TestCaseOperation3 operation. The "output" return
  199. // value can be used to capture response data after the request's "Send" method
  200. // is called.
  201. //
  202. // See InputService1TestCaseOperation3 for usage and error information.
  203. //
  204. // Creating a request object using this method should be used when you want to inject
  205. // custom logic into the request's lifecycle using a custom handler, or if you want to
  206. // access properties on the request object before or after sending the request. If
  207. // you just want the service response, call the InputService1TestCaseOperation3 method directly
  208. // instead.
  209. //
  210. // Note: You must call the "Send" method on the returned request object in order
  211. // to execute the request.
  212. //
  213. // // Example sending a request using the InputService1TestCaseOperation3Request method.
  214. // req, resp := client.InputService1TestCaseOperation3Request(params)
  215. //
  216. // err := req.Send()
  217. // if err == nil { // resp is now filled
  218. // fmt.Println(resp)
  219. // }
  220. //
  221. func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input *InputService1TestShapeInputService1TestCaseOperation3Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation3Output) {
  222. op := &request.Operation{
  223. Name: opInputService1TestCaseOperation3,
  224. HTTPMethod: "GET",
  225. HTTPPath: "/2014-01-01/hostedzone",
  226. }
  227. if input == nil {
  228. input = &InputService1TestShapeInputService1TestCaseOperation3Input{}
  229. }
  230. req = c.newRequest(op, input, output)
  231. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  232. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  233. output = &InputService1TestShapeInputService1TestCaseOperation3Output{}
  234. req.Data = output
  235. return
  236. }
  237. // InputService1TestCaseOperation3 API operation for .
  238. //
  239. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  240. // with awserr.Error's Code and Message methods to get detailed information about
  241. // the error.
  242. //
  243. // See the AWS API reference guide for 's
  244. // API operation InputService1TestCaseOperation3 for usage and error information.
  245. func (c *InputService1ProtocolTest) InputService1TestCaseOperation3(input *InputService1TestShapeInputService1TestCaseOperation3Input) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) {
  246. req, out := c.InputService1TestCaseOperation3Request(input)
  247. err := req.Send()
  248. return out, err
  249. }
  250. type InputService1TestShapeInputService1TestCaseOperation1Output struct {
  251. _ struct{} `type:"structure"`
  252. }
  253. type InputService1TestShapeInputService1TestCaseOperation2Output struct {
  254. _ struct{} `type:"structure"`
  255. }
  256. type InputService1TestShapeInputService1TestCaseOperation3Input struct {
  257. _ struct{} `type:"structure"`
  258. }
  259. type InputService1TestShapeInputService1TestCaseOperation3Output struct {
  260. _ struct{} `type:"structure"`
  261. }
  262. type InputService1TestShapeInputShape struct {
  263. _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
  264. Description *string `type:"string"`
  265. Name *string `type:"string"`
  266. }
  267. //The service client's operations are safe to be used concurrently.
  268. // It is not safe to mutate any of the client's properties though.
  269. type InputService2ProtocolTest struct {
  270. *client.Client
  271. }
  272. // New creates a new instance of the InputService2ProtocolTest client with a session.
  273. // If additional configuration is needed for the client instance use the optional
  274. // aws.Config parameter to add your extra config.
  275. //
  276. // Example:
  277. // // Create a InputService2ProtocolTest client from just a session.
  278. // svc := inputservice2protocoltest.New(mySession)
  279. //
  280. // // Create a InputService2ProtocolTest client with additional configuration
  281. // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  282. func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest {
  283. c := p.ClientConfig("inputservice2protocoltest", cfgs...)
  284. return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  285. }
  286. // newClient creates, initializes and returns a new service client instance.
  287. func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest {
  288. svc := &InputService2ProtocolTest{
  289. Client: client.New(
  290. cfg,
  291. metadata.ClientInfo{
  292. ServiceName: "inputservice2protocoltest",
  293. SigningRegion: signingRegion,
  294. Endpoint: endpoint,
  295. APIVersion: "2014-01-01",
  296. },
  297. handlers,
  298. ),
  299. }
  300. // Handlers
  301. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  302. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  303. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  304. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  305. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  306. return svc
  307. }
  308. // newRequest creates a new request for a InputService2ProtocolTest operation and runs any
  309. // custom request initialization.
  310. func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  311. req := c.NewRequest(op, params, data)
  312. return req
  313. }
  314. const opInputService2TestCaseOperation1 = "OperationName"
  315. // InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the
  316. // client's request for the InputService2TestCaseOperation1 operation. The "output" return
  317. // value can be used to capture response data after the request's "Send" method
  318. // is called.
  319. //
  320. // See InputService2TestCaseOperation1 for usage and error information.
  321. //
  322. // Creating a request object using this method should be used when you want to inject
  323. // custom logic into the request's lifecycle using a custom handler, or if you want to
  324. // access properties on the request object before or after sending the request. If
  325. // you just want the service response, call the InputService2TestCaseOperation1 method directly
  326. // instead.
  327. //
  328. // Note: You must call the "Send" method on the returned request object in order
  329. // to execute the request.
  330. //
  331. // // Example sending a request using the InputService2TestCaseOperation1Request method.
  332. // req, resp := client.InputService2TestCaseOperation1Request(params)
  333. //
  334. // err := req.Send()
  335. // if err == nil { // resp is now filled
  336. // fmt.Println(resp)
  337. // }
  338. //
  339. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) {
  340. op := &request.Operation{
  341. Name: opInputService2TestCaseOperation1,
  342. HTTPMethod: "POST",
  343. HTTPPath: "/2014-01-01/hostedzone",
  344. }
  345. if input == nil {
  346. input = &InputService2TestShapeInputService2TestCaseOperation1Input{}
  347. }
  348. req = c.newRequest(op, input, output)
  349. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  350. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  351. output = &InputService2TestShapeInputService2TestCaseOperation1Output{}
  352. req.Data = output
  353. return
  354. }
  355. // InputService2TestCaseOperation1 API operation for .
  356. //
  357. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  358. // with awserr.Error's Code and Message methods to get detailed information about
  359. // the error.
  360. //
  361. // See the AWS API reference guide for 's
  362. // API operation InputService2TestCaseOperation1 for usage and error information.
  363. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) {
  364. req, out := c.InputService2TestCaseOperation1Request(input)
  365. err := req.Send()
  366. return out, err
  367. }
  368. type InputService2TestShapeInputService2TestCaseOperation1Input struct {
  369. _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
  370. First *bool `type:"boolean"`
  371. Fourth *int64 `type:"integer"`
  372. Second *bool `type:"boolean"`
  373. Third *float64 `type:"float"`
  374. }
  375. type InputService2TestShapeInputService2TestCaseOperation1Output struct {
  376. _ struct{} `type:"structure"`
  377. }
  378. //The service client's operations are safe to be used concurrently.
  379. // It is not safe to mutate any of the client's properties though.
  380. type InputService3ProtocolTest struct {
  381. *client.Client
  382. }
  383. // New creates a new instance of the InputService3ProtocolTest client with a session.
  384. // If additional configuration is needed for the client instance use the optional
  385. // aws.Config parameter to add your extra config.
  386. //
  387. // Example:
  388. // // Create a InputService3ProtocolTest client from just a session.
  389. // svc := inputservice3protocoltest.New(mySession)
  390. //
  391. // // Create a InputService3ProtocolTest client with additional configuration
  392. // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  393. func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest {
  394. c := p.ClientConfig("inputservice3protocoltest", cfgs...)
  395. return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  396. }
  397. // newClient creates, initializes and returns a new service client instance.
  398. func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest {
  399. svc := &InputService3ProtocolTest{
  400. Client: client.New(
  401. cfg,
  402. metadata.ClientInfo{
  403. ServiceName: "inputservice3protocoltest",
  404. SigningRegion: signingRegion,
  405. Endpoint: endpoint,
  406. APIVersion: "2014-01-01",
  407. },
  408. handlers,
  409. ),
  410. }
  411. // Handlers
  412. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  413. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  414. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  415. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  416. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  417. return svc
  418. }
  419. // newRequest creates a new request for a InputService3ProtocolTest operation and runs any
  420. // custom request initialization.
  421. func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  422. req := c.NewRequest(op, params, data)
  423. return req
  424. }
  425. const opInputService3TestCaseOperation1 = "OperationName"
  426. // InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the
  427. // client's request for the InputService3TestCaseOperation1 operation. The "output" return
  428. // value can be used to capture response data after the request's "Send" method
  429. // is called.
  430. //
  431. // See InputService3TestCaseOperation1 for usage and error information.
  432. //
  433. // Creating a request object using this method should be used when you want to inject
  434. // custom logic into the request's lifecycle using a custom handler, or if you want to
  435. // access properties on the request object before or after sending the request. If
  436. // you just want the service response, call the InputService3TestCaseOperation1 method directly
  437. // instead.
  438. //
  439. // Note: You must call the "Send" method on the returned request object in order
  440. // to execute the request.
  441. //
  442. // // Example sending a request using the InputService3TestCaseOperation1Request method.
  443. // req, resp := client.InputService3TestCaseOperation1Request(params)
  444. //
  445. // err := req.Send()
  446. // if err == nil { // resp is now filled
  447. // fmt.Println(resp)
  448. // }
  449. //
  450. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) {
  451. op := &request.Operation{
  452. Name: opInputService3TestCaseOperation1,
  453. HTTPMethod: "POST",
  454. HTTPPath: "/2014-01-01/hostedzone",
  455. }
  456. if input == nil {
  457. input = &InputService3TestShapeInputShape{}
  458. }
  459. req = c.newRequest(op, input, output)
  460. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  461. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  462. output = &InputService3TestShapeInputService3TestCaseOperation1Output{}
  463. req.Data = output
  464. return
  465. }
  466. // InputService3TestCaseOperation1 API operation for .
  467. //
  468. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  469. // with awserr.Error's Code and Message methods to get detailed information about
  470. // the error.
  471. //
  472. // See the AWS API reference guide for 's
  473. // API operation InputService3TestCaseOperation1 for usage and error information.
  474. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) {
  475. req, out := c.InputService3TestCaseOperation1Request(input)
  476. err := req.Send()
  477. return out, err
  478. }
  479. const opInputService3TestCaseOperation2 = "OperationName"
  480. // InputService3TestCaseOperation2Request generates a "aws/request.Request" representing the
  481. // client's request for the InputService3TestCaseOperation2 operation. The "output" return
  482. // value can be used to capture response data after the request's "Send" method
  483. // is called.
  484. //
  485. // See InputService3TestCaseOperation2 for usage and error information.
  486. //
  487. // Creating a request object using this method should be used when you want to inject
  488. // custom logic into the request's lifecycle using a custom handler, or if you want to
  489. // access properties on the request object before or after sending the request. If
  490. // you just want the service response, call the InputService3TestCaseOperation2 method directly
  491. // instead.
  492. //
  493. // Note: You must call the "Send" method on the returned request object in order
  494. // to execute the request.
  495. //
  496. // // Example sending a request using the InputService3TestCaseOperation2Request method.
  497. // req, resp := client.InputService3TestCaseOperation2Request(params)
  498. //
  499. // err := req.Send()
  500. // if err == nil { // resp is now filled
  501. // fmt.Println(resp)
  502. // }
  503. //
  504. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation2Output) {
  505. op := &request.Operation{
  506. Name: opInputService3TestCaseOperation2,
  507. HTTPMethod: "POST",
  508. HTTPPath: "/2014-01-01/hostedzone",
  509. }
  510. if input == nil {
  511. input = &InputService3TestShapeInputShape{}
  512. }
  513. req = c.newRequest(op, input, output)
  514. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  515. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  516. output = &InputService3TestShapeInputService3TestCaseOperation2Output{}
  517. req.Data = output
  518. return
  519. }
  520. // InputService3TestCaseOperation2 API operation for .
  521. //
  522. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  523. // with awserr.Error's Code and Message methods to get detailed information about
  524. // the error.
  525. //
  526. // See the AWS API reference guide for 's
  527. // API operation InputService3TestCaseOperation2 for usage and error information.
  528. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) {
  529. req, out := c.InputService3TestCaseOperation2Request(input)
  530. err := req.Send()
  531. return out, err
  532. }
  533. type InputService3TestShapeInputService3TestCaseOperation1Output struct {
  534. _ struct{} `type:"structure"`
  535. }
  536. type InputService3TestShapeInputService3TestCaseOperation2Output struct {
  537. _ struct{} `type:"structure"`
  538. }
  539. type InputService3TestShapeInputShape struct {
  540. _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
  541. Description *string `type:"string"`
  542. SubStructure *InputService3TestShapeSubStructure `type:"structure"`
  543. }
  544. type InputService3TestShapeSubStructure struct {
  545. _ struct{} `type:"structure"`
  546. Bar *string `type:"string"`
  547. Foo *string `type:"string"`
  548. }
  549. //The service client's operations are safe to be used concurrently.
  550. // It is not safe to mutate any of the client's properties though.
  551. type InputService4ProtocolTest struct {
  552. *client.Client
  553. }
  554. // New creates a new instance of the InputService4ProtocolTest client with a session.
  555. // If additional configuration is needed for the client instance use the optional
  556. // aws.Config parameter to add your extra config.
  557. //
  558. // Example:
  559. // // Create a InputService4ProtocolTest client from just a session.
  560. // svc := inputservice4protocoltest.New(mySession)
  561. //
  562. // // Create a InputService4ProtocolTest client with additional configuration
  563. // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  564. func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest {
  565. c := p.ClientConfig("inputservice4protocoltest", cfgs...)
  566. return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  567. }
  568. // newClient creates, initializes and returns a new service client instance.
  569. func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest {
  570. svc := &InputService4ProtocolTest{
  571. Client: client.New(
  572. cfg,
  573. metadata.ClientInfo{
  574. ServiceName: "inputservice4protocoltest",
  575. SigningRegion: signingRegion,
  576. Endpoint: endpoint,
  577. APIVersion: "2014-01-01",
  578. },
  579. handlers,
  580. ),
  581. }
  582. // Handlers
  583. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  584. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  585. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  586. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  587. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  588. return svc
  589. }
  590. // newRequest creates a new request for a InputService4ProtocolTest operation and runs any
  591. // custom request initialization.
  592. func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  593. req := c.NewRequest(op, params, data)
  594. return req
  595. }
  596. const opInputService4TestCaseOperation1 = "OperationName"
  597. // InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the
  598. // client's request for the InputService4TestCaseOperation1 operation. The "output" return
  599. // value can be used to capture response data after the request's "Send" method
  600. // is called.
  601. //
  602. // See InputService4TestCaseOperation1 for usage and error information.
  603. //
  604. // Creating a request object using this method should be used when you want to inject
  605. // custom logic into the request's lifecycle using a custom handler, or if you want to
  606. // access properties on the request object before or after sending the request. If
  607. // you just want the service response, call the InputService4TestCaseOperation1 method directly
  608. // instead.
  609. //
  610. // Note: You must call the "Send" method on the returned request object in order
  611. // to execute the request.
  612. //
  613. // // Example sending a request using the InputService4TestCaseOperation1Request method.
  614. // req, resp := client.InputService4TestCaseOperation1Request(params)
  615. //
  616. // err := req.Send()
  617. // if err == nil { // resp is now filled
  618. // fmt.Println(resp)
  619. // }
  620. //
  621. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) {
  622. op := &request.Operation{
  623. Name: opInputService4TestCaseOperation1,
  624. HTTPMethod: "POST",
  625. HTTPPath: "/2014-01-01/hostedzone",
  626. }
  627. if input == nil {
  628. input = &InputService4TestShapeInputService4TestCaseOperation1Input{}
  629. }
  630. req = c.newRequest(op, input, output)
  631. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  632. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  633. output = &InputService4TestShapeInputService4TestCaseOperation1Output{}
  634. req.Data = output
  635. return
  636. }
  637. // InputService4TestCaseOperation1 API operation for .
  638. //
  639. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  640. // with awserr.Error's Code and Message methods to get detailed information about
  641. // the error.
  642. //
  643. // See the AWS API reference guide for 's
  644. // API operation InputService4TestCaseOperation1 for usage and error information.
  645. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) {
  646. req, out := c.InputService4TestCaseOperation1Request(input)
  647. err := req.Send()
  648. return out, err
  649. }
  650. type InputService4TestShapeInputService4TestCaseOperation1Input struct {
  651. _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
  652. Description *string `type:"string"`
  653. SubStructure *InputService4TestShapeSubStructure `type:"structure"`
  654. }
  655. type InputService4TestShapeInputService4TestCaseOperation1Output struct {
  656. _ struct{} `type:"structure"`
  657. }
  658. type InputService4TestShapeSubStructure struct {
  659. _ struct{} `type:"structure"`
  660. Bar *string `type:"string"`
  661. Foo *string `type:"string"`
  662. }
  663. //The service client's operations are safe to be used concurrently.
  664. // It is not safe to mutate any of the client's properties though.
  665. type InputService5ProtocolTest struct {
  666. *client.Client
  667. }
  668. // New creates a new instance of the InputService5ProtocolTest client with a session.
  669. // If additional configuration is needed for the client instance use the optional
  670. // aws.Config parameter to add your extra config.
  671. //
  672. // Example:
  673. // // Create a InputService5ProtocolTest client from just a session.
  674. // svc := inputservice5protocoltest.New(mySession)
  675. //
  676. // // Create a InputService5ProtocolTest client with additional configuration
  677. // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  678. func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest {
  679. c := p.ClientConfig("inputservice5protocoltest", cfgs...)
  680. return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  681. }
  682. // newClient creates, initializes and returns a new service client instance.
  683. func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest {
  684. svc := &InputService5ProtocolTest{
  685. Client: client.New(
  686. cfg,
  687. metadata.ClientInfo{
  688. ServiceName: "inputservice5protocoltest",
  689. SigningRegion: signingRegion,
  690. Endpoint: endpoint,
  691. APIVersion: "2014-01-01",
  692. },
  693. handlers,
  694. ),
  695. }
  696. // Handlers
  697. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  698. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  699. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  700. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  701. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  702. return svc
  703. }
  704. // newRequest creates a new request for a InputService5ProtocolTest operation and runs any
  705. // custom request initialization.
  706. func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  707. req := c.NewRequest(op, params, data)
  708. return req
  709. }
  710. const opInputService5TestCaseOperation1 = "OperationName"
  711. // InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the
  712. // client's request for the InputService5TestCaseOperation1 operation. The "output" return
  713. // value can be used to capture response data after the request's "Send" method
  714. // is called.
  715. //
  716. // See InputService5TestCaseOperation1 for usage and error information.
  717. //
  718. // Creating a request object using this method should be used when you want to inject
  719. // custom logic into the request's lifecycle using a custom handler, or if you want to
  720. // access properties on the request object before or after sending the request. If
  721. // you just want the service response, call the InputService5TestCaseOperation1 method directly
  722. // instead.
  723. //
  724. // Note: You must call the "Send" method on the returned request object in order
  725. // to execute the request.
  726. //
  727. // // Example sending a request using the InputService5TestCaseOperation1Request method.
  728. // req, resp := client.InputService5TestCaseOperation1Request(params)
  729. //
  730. // err := req.Send()
  731. // if err == nil { // resp is now filled
  732. // fmt.Println(resp)
  733. // }
  734. //
  735. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) {
  736. op := &request.Operation{
  737. Name: opInputService5TestCaseOperation1,
  738. HTTPMethod: "POST",
  739. HTTPPath: "/2014-01-01/hostedzone",
  740. }
  741. if input == nil {
  742. input = &InputService5TestShapeInputService5TestCaseOperation1Input{}
  743. }
  744. req = c.newRequest(op, input, output)
  745. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  746. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  747. output = &InputService5TestShapeInputService5TestCaseOperation1Output{}
  748. req.Data = output
  749. return
  750. }
  751. // InputService5TestCaseOperation1 API operation for .
  752. //
  753. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  754. // with awserr.Error's Code and Message methods to get detailed information about
  755. // the error.
  756. //
  757. // See the AWS API reference guide for 's
  758. // API operation InputService5TestCaseOperation1 for usage and error information.
  759. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) {
  760. req, out := c.InputService5TestCaseOperation1Request(input)
  761. err := req.Send()
  762. return out, err
  763. }
  764. type InputService5TestShapeInputService5TestCaseOperation1Input struct {
  765. _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
  766. ListParam []*string `type:"list"`
  767. }
  768. type InputService5TestShapeInputService5TestCaseOperation1Output struct {
  769. _ struct{} `type:"structure"`
  770. }
  771. //The service client's operations are safe to be used concurrently.
  772. // It is not safe to mutate any of the client's properties though.
  773. type InputService6ProtocolTest struct {
  774. *client.Client
  775. }
  776. // New creates a new instance of the InputService6ProtocolTest client with a session.
  777. // If additional configuration is needed for the client instance use the optional
  778. // aws.Config parameter to add your extra config.
  779. //
  780. // Example:
  781. // // Create a InputService6ProtocolTest client from just a session.
  782. // svc := inputservice6protocoltest.New(mySession)
  783. //
  784. // // Create a InputService6ProtocolTest client with additional configuration
  785. // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  786. func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest {
  787. c := p.ClientConfig("inputservice6protocoltest", cfgs...)
  788. return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  789. }
  790. // newClient creates, initializes and returns a new service client instance.
  791. func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest {
  792. svc := &InputService6ProtocolTest{
  793. Client: client.New(
  794. cfg,
  795. metadata.ClientInfo{
  796. ServiceName: "inputservice6protocoltest",
  797. SigningRegion: signingRegion,
  798. Endpoint: endpoint,
  799. APIVersion: "2014-01-01",
  800. },
  801. handlers,
  802. ),
  803. }
  804. // Handlers
  805. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  806. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  807. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  808. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  809. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  810. return svc
  811. }
  812. // newRequest creates a new request for a InputService6ProtocolTest operation and runs any
  813. // custom request initialization.
  814. func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  815. req := c.NewRequest(op, params, data)
  816. return req
  817. }
  818. const opInputService6TestCaseOperation1 = "OperationName"
  819. // InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the
  820. // client's request for the InputService6TestCaseOperation1 operation. The "output" return
  821. // value can be used to capture response data after the request's "Send" method
  822. // is called.
  823. //
  824. // See InputService6TestCaseOperation1 for usage and error information.
  825. //
  826. // Creating a request object using this method should be used when you want to inject
  827. // custom logic into the request's lifecycle using a custom handler, or if you want to
  828. // access properties on the request object before or after sending the request. If
  829. // you just want the service response, call the InputService6TestCaseOperation1 method directly
  830. // instead.
  831. //
  832. // Note: You must call the "Send" method on the returned request object in order
  833. // to execute the request.
  834. //
  835. // // Example sending a request using the InputService6TestCaseOperation1Request method.
  836. // req, resp := client.InputService6TestCaseOperation1Request(params)
  837. //
  838. // err := req.Send()
  839. // if err == nil { // resp is now filled
  840. // fmt.Println(resp)
  841. // }
  842. //
  843. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) {
  844. op := &request.Operation{
  845. Name: opInputService6TestCaseOperation1,
  846. HTTPMethod: "POST",
  847. HTTPPath: "/2014-01-01/hostedzone",
  848. }
  849. if input == nil {
  850. input = &InputService6TestShapeInputService6TestCaseOperation1Input{}
  851. }
  852. req = c.newRequest(op, input, output)
  853. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  854. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  855. output = &InputService6TestShapeInputService6TestCaseOperation1Output{}
  856. req.Data = output
  857. return
  858. }
  859. // InputService6TestCaseOperation1 API operation for .
  860. //
  861. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  862. // with awserr.Error's Code and Message methods to get detailed information about
  863. // the error.
  864. //
  865. // See the AWS API reference guide for 's
  866. // API operation InputService6TestCaseOperation1 for usage and error information.
  867. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) {
  868. req, out := c.InputService6TestCaseOperation1Request(input)
  869. err := req.Send()
  870. return out, err
  871. }
  872. type InputService6TestShapeInputService6TestCaseOperation1Input struct {
  873. _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
  874. ListParam []*string `locationName:"AlternateName" locationNameList:"NotMember" type:"list"`
  875. }
  876. type InputService6TestShapeInputService6TestCaseOperation1Output struct {
  877. _ struct{} `type:"structure"`
  878. }
  879. //The service client's operations are safe to be used concurrently.
  880. // It is not safe to mutate any of the client's properties though.
  881. type InputService7ProtocolTest struct {
  882. *client.Client
  883. }
  884. // New creates a new instance of the InputService7ProtocolTest client with a session.
  885. // If additional configuration is needed for the client instance use the optional
  886. // aws.Config parameter to add your extra config.
  887. //
  888. // Example:
  889. // // Create a InputService7ProtocolTest client from just a session.
  890. // svc := inputservice7protocoltest.New(mySession)
  891. //
  892. // // Create a InputService7ProtocolTest client with additional configuration
  893. // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  894. func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest {
  895. c := p.ClientConfig("inputservice7protocoltest", cfgs...)
  896. return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  897. }
  898. // newClient creates, initializes and returns a new service client instance.
  899. func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest {
  900. svc := &InputService7ProtocolTest{
  901. Client: client.New(
  902. cfg,
  903. metadata.ClientInfo{
  904. ServiceName: "inputservice7protocoltest",
  905. SigningRegion: signingRegion,
  906. Endpoint: endpoint,
  907. APIVersion: "2014-01-01",
  908. },
  909. handlers,
  910. ),
  911. }
  912. // Handlers
  913. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  914. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  915. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  916. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  917. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  918. return svc
  919. }
  920. // newRequest creates a new request for a InputService7ProtocolTest operation and runs any
  921. // custom request initialization.
  922. func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  923. req := c.NewRequest(op, params, data)
  924. return req
  925. }
  926. const opInputService7TestCaseOperation1 = "OperationName"
  927. // InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the
  928. // client's request for the InputService7TestCaseOperation1 operation. The "output" return
  929. // value can be used to capture response data after the request's "Send" method
  930. // is called.
  931. //
  932. // See InputService7TestCaseOperation1 for usage and error information.
  933. //
  934. // Creating a request object using this method should be used when you want to inject
  935. // custom logic into the request's lifecycle using a custom handler, or if you want to
  936. // access properties on the request object before or after sending the request. If
  937. // you just want the service response, call the InputService7TestCaseOperation1 method directly
  938. // instead.
  939. //
  940. // Note: You must call the "Send" method on the returned request object in order
  941. // to execute the request.
  942. //
  943. // // Example sending a request using the InputService7TestCaseOperation1Request method.
  944. // req, resp := client.InputService7TestCaseOperation1Request(params)
  945. //
  946. // err := req.Send()
  947. // if err == nil { // resp is now filled
  948. // fmt.Println(resp)
  949. // }
  950. //
  951. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) {
  952. op := &request.Operation{
  953. Name: opInputService7TestCaseOperation1,
  954. HTTPMethod: "POST",
  955. HTTPPath: "/2014-01-01/hostedzone",
  956. }
  957. if input == nil {
  958. input = &InputService7TestShapeInputService7TestCaseOperation1Input{}
  959. }
  960. req = c.newRequest(op, input, output)
  961. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  962. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  963. output = &InputService7TestShapeInputService7TestCaseOperation1Output{}
  964. req.Data = output
  965. return
  966. }
  967. // InputService7TestCaseOperation1 API operation for .
  968. //
  969. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  970. // with awserr.Error's Code and Message methods to get detailed information about
  971. // the error.
  972. //
  973. // See the AWS API reference guide for 's
  974. // API operation InputService7TestCaseOperation1 for usage and error information.
  975. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) {
  976. req, out := c.InputService7TestCaseOperation1Request(input)
  977. err := req.Send()
  978. return out, err
  979. }
  980. type InputService7TestShapeInputService7TestCaseOperation1Input struct {
  981. _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
  982. ListParam []*string `type:"list" flattened:"true"`
  983. }
  984. type InputService7TestShapeInputService7TestCaseOperation1Output struct {
  985. _ struct{} `type:"structure"`
  986. }
  987. //The service client's operations are safe to be used concurrently.
  988. // It is not safe to mutate any of the client's properties though.
  989. type InputService8ProtocolTest struct {
  990. *client.Client
  991. }
  992. // New creates a new instance of the InputService8ProtocolTest client with a session.
  993. // If additional configuration is needed for the client instance use the optional
  994. // aws.Config parameter to add your extra config.
  995. //
  996. // Example:
  997. // // Create a InputService8ProtocolTest client from just a session.
  998. // svc := inputservice8protocoltest.New(mySession)
  999. //
  1000. // // Create a InputService8ProtocolTest client with additional configuration
  1001. // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1002. func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest {
  1003. c := p.ClientConfig("inputservice8protocoltest", cfgs...)
  1004. return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1005. }
  1006. // newClient creates, initializes and returns a new service client instance.
  1007. func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService8ProtocolTest {
  1008. svc := &InputService8ProtocolTest{
  1009. Client: client.New(
  1010. cfg,
  1011. metadata.ClientInfo{
  1012. ServiceName: "inputservice8protocoltest",
  1013. SigningRegion: signingRegion,
  1014. Endpoint: endpoint,
  1015. APIVersion: "2014-01-01",
  1016. },
  1017. handlers,
  1018. ),
  1019. }
  1020. // Handlers
  1021. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1022. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  1023. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  1024. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  1025. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  1026. return svc
  1027. }
  1028. // newRequest creates a new request for a InputService8ProtocolTest operation and runs any
  1029. // custom request initialization.
  1030. func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1031. req := c.NewRequest(op, params, data)
  1032. return req
  1033. }
  1034. const opInputService8TestCaseOperation1 = "OperationName"
  1035. // InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the
  1036. // client's request for the InputService8TestCaseOperation1 operation. The "output" return
  1037. // value can be used to capture response data after the request's "Send" method
  1038. // is called.
  1039. //
  1040. // See InputService8TestCaseOperation1 for usage and error information.
  1041. //
  1042. // Creating a request object using this method should be used when you want to inject
  1043. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1044. // access properties on the request object before or after sending the request. If
  1045. // you just want the service response, call the InputService8TestCaseOperation1 method directly
  1046. // instead.
  1047. //
  1048. // Note: You must call the "Send" method on the returned request object in order
  1049. // to execute the request.
  1050. //
  1051. // // Example sending a request using the InputService8TestCaseOperation1Request method.
  1052. // req, resp := client.InputService8TestCaseOperation1Request(params)
  1053. //
  1054. // err := req.Send()
  1055. // if err == nil { // resp is now filled
  1056. // fmt.Println(resp)
  1057. // }
  1058. //
  1059. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) {
  1060. op := &request.Operation{
  1061. Name: opInputService8TestCaseOperation1,
  1062. HTTPMethod: "POST",
  1063. HTTPPath: "/2014-01-01/hostedzone",
  1064. }
  1065. if input == nil {
  1066. input = &InputService8TestShapeInputService8TestCaseOperation1Input{}
  1067. }
  1068. req = c.newRequest(op, input, output)
  1069. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  1070. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1071. output = &InputService8TestShapeInputService8TestCaseOperation1Output{}
  1072. req.Data = output
  1073. return
  1074. }
  1075. // InputService8TestCaseOperation1 API operation for .
  1076. //
  1077. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1078. // with awserr.Error's Code and Message methods to get detailed information about
  1079. // the error.
  1080. //
  1081. // See the AWS API reference guide for 's
  1082. // API operation InputService8TestCaseOperation1 for usage and error information.
  1083. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) {
  1084. req, out := c.InputService8TestCaseOperation1Request(input)
  1085. err := req.Send()
  1086. return out, err
  1087. }
  1088. type InputService8TestShapeInputService8TestCaseOperation1Input struct {
  1089. _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
  1090. ListParam []*string `locationName:"item" type:"list" flattened:"true"`
  1091. }
  1092. type InputService8TestShapeInputService8TestCaseOperation1Output struct {
  1093. _ struct{} `type:"structure"`
  1094. }
  1095. //The service client's operations are safe to be used concurrently.
  1096. // It is not safe to mutate any of the client's properties though.
  1097. type InputService9ProtocolTest struct {
  1098. *client.Client
  1099. }
  1100. // New creates a new instance of the InputService9ProtocolTest client with a session.
  1101. // If additional configuration is needed for the client instance use the optional
  1102. // aws.Config parameter to add your extra config.
  1103. //
  1104. // Example:
  1105. // // Create a InputService9ProtocolTest client from just a session.
  1106. // svc := inputservice9protocoltest.New(mySession)
  1107. //
  1108. // // Create a InputService9ProtocolTest client with additional configuration
  1109. // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1110. func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest {
  1111. c := p.ClientConfig("inputservice9protocoltest", cfgs...)
  1112. return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1113. }
  1114. // newClient creates, initializes and returns a new service client instance.
  1115. func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService9ProtocolTest {
  1116. svc := &InputService9ProtocolTest{
  1117. Client: client.New(
  1118. cfg,
  1119. metadata.ClientInfo{
  1120. ServiceName: "inputservice9protocoltest",
  1121. SigningRegion: signingRegion,
  1122. Endpoint: endpoint,
  1123. APIVersion: "2014-01-01",
  1124. },
  1125. handlers,
  1126. ),
  1127. }
  1128. // Handlers
  1129. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1130. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  1131. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  1132. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  1133. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  1134. return svc
  1135. }
  1136. // newRequest creates a new request for a InputService9ProtocolTest operation and runs any
  1137. // custom request initialization.
  1138. func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1139. req := c.NewRequest(op, params, data)
  1140. return req
  1141. }
  1142. const opInputService9TestCaseOperation1 = "OperationName"
  1143. // InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the
  1144. // client's request for the InputService9TestCaseOperation1 operation. The "output" return
  1145. // value can be used to capture response data after the request's "Send" method
  1146. // is called.
  1147. //
  1148. // See InputService9TestCaseOperation1 for usage and error information.
  1149. //
  1150. // Creating a request object using this method should be used when you want to inject
  1151. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1152. // access properties on the request object before or after sending the request. If
  1153. // you just want the service response, call the InputService9TestCaseOperation1 method directly
  1154. // instead.
  1155. //
  1156. // Note: You must call the "Send" method on the returned request object in order
  1157. // to execute the request.
  1158. //
  1159. // // Example sending a request using the InputService9TestCaseOperation1Request method.
  1160. // req, resp := client.InputService9TestCaseOperation1Request(params)
  1161. //
  1162. // err := req.Send()
  1163. // if err == nil { // resp is now filled
  1164. // fmt.Println(resp)
  1165. // }
  1166. //
  1167. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) {
  1168. op := &request.Operation{
  1169. Name: opInputService9TestCaseOperation1,
  1170. HTTPMethod: "POST",
  1171. HTTPPath: "/2014-01-01/hostedzone",
  1172. }
  1173. if input == nil {
  1174. input = &InputService9TestShapeInputService9TestCaseOperation1Input{}
  1175. }
  1176. req = c.newRequest(op, input, output)
  1177. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  1178. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1179. output = &InputService9TestShapeInputService9TestCaseOperation1Output{}
  1180. req.Data = output
  1181. return
  1182. }
  1183. // InputService9TestCaseOperation1 API operation for .
  1184. //
  1185. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1186. // with awserr.Error's Code and Message methods to get detailed information about
  1187. // the error.
  1188. //
  1189. // See the AWS API reference guide for 's
  1190. // API operation InputService9TestCaseOperation1 for usage and error information.
  1191. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) {
  1192. req, out := c.InputService9TestCaseOperation1Request(input)
  1193. err := req.Send()
  1194. return out, err
  1195. }
  1196. type InputService9TestShapeInputService9TestCaseOperation1Input struct {
  1197. _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
  1198. ListParam []*InputService9TestShapeSingleFieldStruct `locationName:"item" type:"list" flattened:"true"`
  1199. }
  1200. type InputService9TestShapeInputService9TestCaseOperation1Output struct {
  1201. _ struct{} `type:"structure"`
  1202. }
  1203. type InputService9TestShapeSingleFieldStruct struct {
  1204. _ struct{} `type:"structure"`
  1205. Element *string `locationName:"value" type:"string"`
  1206. }
  1207. //The service client's operations are safe to be used concurrently.
  1208. // It is not safe to mutate any of the client's properties though.
  1209. type InputService10ProtocolTest struct {
  1210. *client.Client
  1211. }
  1212. // New creates a new instance of the InputService10ProtocolTest client with a session.
  1213. // If additional configuration is needed for the client instance use the optional
  1214. // aws.Config parameter to add your extra config.
  1215. //
  1216. // Example:
  1217. // // Create a InputService10ProtocolTest client from just a session.
  1218. // svc := inputservice10protocoltest.New(mySession)
  1219. //
  1220. // // Create a InputService10ProtocolTest client with additional configuration
  1221. // svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1222. func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest {
  1223. c := p.ClientConfig("inputservice10protocoltest", cfgs...)
  1224. return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1225. }
  1226. // newClient creates, initializes and returns a new service client instance.
  1227. func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService10ProtocolTest {
  1228. svc := &InputService10ProtocolTest{
  1229. Client: client.New(
  1230. cfg,
  1231. metadata.ClientInfo{
  1232. ServiceName: "inputservice10protocoltest",
  1233. SigningRegion: signingRegion,
  1234. Endpoint: endpoint,
  1235. APIVersion: "2014-01-01",
  1236. },
  1237. handlers,
  1238. ),
  1239. }
  1240. // Handlers
  1241. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1242. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  1243. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  1244. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  1245. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  1246. return svc
  1247. }
  1248. // newRequest creates a new request for a InputService10ProtocolTest operation and runs any
  1249. // custom request initialization.
  1250. func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1251. req := c.NewRequest(op, params, data)
  1252. return req
  1253. }
  1254. const opInputService10TestCaseOperation1 = "OperationName"
  1255. // InputService10TestCaseOperation1Request generates a "aws/request.Request" representing the
  1256. // client's request for the InputService10TestCaseOperation1 operation. The "output" return
  1257. // value can be used to capture response data after the request's "Send" method
  1258. // is called.
  1259. //
  1260. // See InputService10TestCaseOperation1 for usage and error information.
  1261. //
  1262. // Creating a request object using this method should be used when you want to inject
  1263. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1264. // access properties on the request object before or after sending the request. If
  1265. // you just want the service response, call the InputService10TestCaseOperation1 method directly
  1266. // instead.
  1267. //
  1268. // Note: You must call the "Send" method on the returned request object in order
  1269. // to execute the request.
  1270. //
  1271. // // Example sending a request using the InputService10TestCaseOperation1Request method.
  1272. // req, resp := client.InputService10TestCaseOperation1Request(params)
  1273. //
  1274. // err := req.Send()
  1275. // if err == nil { // resp is now filled
  1276. // fmt.Println(resp)
  1277. // }
  1278. //
  1279. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) {
  1280. op := &request.Operation{
  1281. Name: opInputService10TestCaseOperation1,
  1282. HTTPMethod: "POST",
  1283. HTTPPath: "/2014-01-01/hostedzone",
  1284. }
  1285. if input == nil {
  1286. input = &InputService10TestShapeInputService10TestCaseOperation1Input{}
  1287. }
  1288. req = c.newRequest(op, input, output)
  1289. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  1290. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1291. output = &InputService10TestShapeInputService10TestCaseOperation1Output{}
  1292. req.Data = output
  1293. return
  1294. }
  1295. // InputService10TestCaseOperation1 API operation for .
  1296. //
  1297. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1298. // with awserr.Error's Code and Message methods to get detailed information about
  1299. // the error.
  1300. //
  1301. // See the AWS API reference guide for 's
  1302. // API operation InputService10TestCaseOperation1 for usage and error information.
  1303. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) {
  1304. req, out := c.InputService10TestCaseOperation1Request(input)
  1305. err := req.Send()
  1306. return out, err
  1307. }
  1308. type InputService10TestShapeInputService10TestCaseOperation1Input struct {
  1309. _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
  1310. StructureParam *InputService10TestShapeStructureShape `type:"structure"`
  1311. }
  1312. type InputService10TestShapeInputService10TestCaseOperation1Output struct {
  1313. _ struct{} `type:"structure"`
  1314. }
  1315. type InputService10TestShapeStructureShape struct {
  1316. _ struct{} `type:"structure"`
  1317. // B is automatically base64 encoded/decoded by the SDK.
  1318. B []byte `locationName:"b" type:"blob"`
  1319. T *time.Time `locationName:"t" type:"timestamp" timestampFormat:"iso8601"`
  1320. }
  1321. //The service client's operations are safe to be used concurrently.
  1322. // It is not safe to mutate any of the client's properties though.
  1323. type InputService11ProtocolTest struct {
  1324. *client.Client
  1325. }
  1326. // New creates a new instance of the InputService11ProtocolTest client with a session.
  1327. // If additional configuration is needed for the client instance use the optional
  1328. // aws.Config parameter to add your extra config.
  1329. //
  1330. // Example:
  1331. // // Create a InputService11ProtocolTest client from just a session.
  1332. // svc := inputservice11protocoltest.New(mySession)
  1333. //
  1334. // // Create a InputService11ProtocolTest client with additional configuration
  1335. // svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1336. func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest {
  1337. c := p.ClientConfig("inputservice11protocoltest", cfgs...)
  1338. return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1339. }
  1340. // newClient creates, initializes and returns a new service client instance.
  1341. func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService11ProtocolTest {
  1342. svc := &InputService11ProtocolTest{
  1343. Client: client.New(
  1344. cfg,
  1345. metadata.ClientInfo{
  1346. ServiceName: "inputservice11protocoltest",
  1347. SigningRegion: signingRegion,
  1348. Endpoint: endpoint,
  1349. APIVersion: "2014-01-01",
  1350. },
  1351. handlers,
  1352. ),
  1353. }
  1354. // Handlers
  1355. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1356. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  1357. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  1358. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  1359. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  1360. return svc
  1361. }
  1362. // newRequest creates a new request for a InputService11ProtocolTest operation and runs any
  1363. // custom request initialization.
  1364. func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1365. req := c.NewRequest(op, params, data)
  1366. return req
  1367. }
  1368. const opInputService11TestCaseOperation1 = "OperationName"
  1369. // InputService11TestCaseOperation1Request generates a "aws/request.Request" representing the
  1370. // client's request for the InputService11TestCaseOperation1 operation. The "output" return
  1371. // value can be used to capture response data after the request's "Send" method
  1372. // is called.
  1373. //
  1374. // See InputService11TestCaseOperation1 for usage and error information.
  1375. //
  1376. // Creating a request object using this method should be used when you want to inject
  1377. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1378. // access properties on the request object before or after sending the request. If
  1379. // you just want the service response, call the InputService11TestCaseOperation1 method directly
  1380. // instead.
  1381. //
  1382. // Note: You must call the "Send" method on the returned request object in order
  1383. // to execute the request.
  1384. //
  1385. // // Example sending a request using the InputService11TestCaseOperation1Request method.
  1386. // req, resp := client.InputService11TestCaseOperation1Request(params)
  1387. //
  1388. // err := req.Send()
  1389. // if err == nil { // resp is now filled
  1390. // fmt.Println(resp)
  1391. // }
  1392. //
  1393. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) {
  1394. op := &request.Operation{
  1395. Name: opInputService11TestCaseOperation1,
  1396. HTTPMethod: "POST",
  1397. HTTPPath: "/",
  1398. }
  1399. if input == nil {
  1400. input = &InputService11TestShapeInputService11TestCaseOperation1Input{}
  1401. }
  1402. req = c.newRequest(op, input, output)
  1403. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  1404. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1405. output = &InputService11TestShapeInputService11TestCaseOperation1Output{}
  1406. req.Data = output
  1407. return
  1408. }
  1409. // InputService11TestCaseOperation1 API operation for .
  1410. //
  1411. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1412. // with awserr.Error's Code and Message methods to get detailed information about
  1413. // the error.
  1414. //
  1415. // See the AWS API reference guide for 's
  1416. // API operation InputService11TestCaseOperation1 for usage and error information.
  1417. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) {
  1418. req, out := c.InputService11TestCaseOperation1Request(input)
  1419. err := req.Send()
  1420. return out, err
  1421. }
  1422. type InputService11TestShapeInputService11TestCaseOperation1Input struct {
  1423. _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
  1424. Foo map[string]*string `location:"headers" locationName:"x-foo-" type:"map"`
  1425. }
  1426. type InputService11TestShapeInputService11TestCaseOperation1Output struct {
  1427. _ struct{} `type:"structure"`
  1428. }
  1429. //The service client's operations are safe to be used concurrently.
  1430. // It is not safe to mutate any of the client's properties though.
  1431. type InputService12ProtocolTest struct {
  1432. *client.Client
  1433. }
  1434. // New creates a new instance of the InputService12ProtocolTest client with a session.
  1435. // If additional configuration is needed for the client instance use the optional
  1436. // aws.Config parameter to add your extra config.
  1437. //
  1438. // Example:
  1439. // // Create a InputService12ProtocolTest client from just a session.
  1440. // svc := inputservice12protocoltest.New(mySession)
  1441. //
  1442. // // Create a InputService12ProtocolTest client with additional configuration
  1443. // svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1444. func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest {
  1445. c := p.ClientConfig("inputservice12protocoltest", cfgs...)
  1446. return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1447. }
  1448. // newClient creates, initializes and returns a new service client instance.
  1449. func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService12ProtocolTest {
  1450. svc := &InputService12ProtocolTest{
  1451. Client: client.New(
  1452. cfg,
  1453. metadata.ClientInfo{
  1454. ServiceName: "inputservice12protocoltest",
  1455. SigningRegion: signingRegion,
  1456. Endpoint: endpoint,
  1457. APIVersion: "2014-01-01",
  1458. },
  1459. handlers,
  1460. ),
  1461. }
  1462. // Handlers
  1463. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1464. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  1465. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  1466. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  1467. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  1468. return svc
  1469. }
  1470. // newRequest creates a new request for a InputService12ProtocolTest operation and runs any
  1471. // custom request initialization.
  1472. func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1473. req := c.NewRequest(op, params, data)
  1474. return req
  1475. }
  1476. const opInputService12TestCaseOperation1 = "OperationName"
  1477. // InputService12TestCaseOperation1Request generates a "aws/request.Request" representing the
  1478. // client's request for the InputService12TestCaseOperation1 operation. The "output" return
  1479. // value can be used to capture response data after the request's "Send" method
  1480. // is called.
  1481. //
  1482. // See InputService12TestCaseOperation1 for usage and error information.
  1483. //
  1484. // Creating a request object using this method should be used when you want to inject
  1485. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1486. // access properties on the request object before or after sending the request. If
  1487. // you just want the service response, call the InputService12TestCaseOperation1 method directly
  1488. // instead.
  1489. //
  1490. // Note: You must call the "Send" method on the returned request object in order
  1491. // to execute the request.
  1492. //
  1493. // // Example sending a request using the InputService12TestCaseOperation1Request method.
  1494. // req, resp := client.InputService12TestCaseOperation1Request(params)
  1495. //
  1496. // err := req.Send()
  1497. // if err == nil { // resp is now filled
  1498. // fmt.Println(resp)
  1499. // }
  1500. //
  1501. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputService12TestCaseOperation1Input) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) {
  1502. op := &request.Operation{
  1503. Name: opInputService12TestCaseOperation1,
  1504. HTTPMethod: "GET",
  1505. HTTPPath: "/path",
  1506. }
  1507. if input == nil {
  1508. input = &InputService12TestShapeInputService12TestCaseOperation1Input{}
  1509. }
  1510. req = c.newRequest(op, input, output)
  1511. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  1512. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1513. output = &InputService12TestShapeInputService12TestCaseOperation1Output{}
  1514. req.Data = output
  1515. return
  1516. }
  1517. // InputService12TestCaseOperation1 API operation for .
  1518. //
  1519. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1520. // with awserr.Error's Code and Message methods to get detailed information about
  1521. // the error.
  1522. //
  1523. // See the AWS API reference guide for 's
  1524. // API operation InputService12TestCaseOperation1 for usage and error information.
  1525. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputService12TestCaseOperation1Input) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) {
  1526. req, out := c.InputService12TestCaseOperation1Request(input)
  1527. err := req.Send()
  1528. return out, err
  1529. }
  1530. type InputService12TestShapeInputService12TestCaseOperation1Input struct {
  1531. _ struct{} `type:"structure"`
  1532. Items []*string `location:"querystring" locationName:"item" type:"list"`
  1533. }
  1534. type InputService12TestShapeInputService12TestCaseOperation1Output struct {
  1535. _ struct{} `type:"structure"`
  1536. }
  1537. //The service client's operations are safe to be used concurrently.
  1538. // It is not safe to mutate any of the client's properties though.
  1539. type InputService13ProtocolTest struct {
  1540. *client.Client
  1541. }
  1542. // New creates a new instance of the InputService13ProtocolTest client with a session.
  1543. // If additional configuration is needed for the client instance use the optional
  1544. // aws.Config parameter to add your extra config.
  1545. //
  1546. // Example:
  1547. // // Create a InputService13ProtocolTest client from just a session.
  1548. // svc := inputservice13protocoltest.New(mySession)
  1549. //
  1550. // // Create a InputService13ProtocolTest client with additional configuration
  1551. // svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1552. func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest {
  1553. c := p.ClientConfig("inputservice13protocoltest", cfgs...)
  1554. return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1555. }
  1556. // newClient creates, initializes and returns a new service client instance.
  1557. func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService13ProtocolTest {
  1558. svc := &InputService13ProtocolTest{
  1559. Client: client.New(
  1560. cfg,
  1561. metadata.ClientInfo{
  1562. ServiceName: "inputservice13protocoltest",
  1563. SigningRegion: signingRegion,
  1564. Endpoint: endpoint,
  1565. APIVersion: "2014-01-01",
  1566. },
  1567. handlers,
  1568. ),
  1569. }
  1570. // Handlers
  1571. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1572. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  1573. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  1574. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  1575. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  1576. return svc
  1577. }
  1578. // newRequest creates a new request for a InputService13ProtocolTest operation and runs any
  1579. // custom request initialization.
  1580. func (c *InputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1581. req := c.NewRequest(op, params, data)
  1582. return req
  1583. }
  1584. const opInputService13TestCaseOperation1 = "OperationName"
  1585. // InputService13TestCaseOperation1Request generates a "aws/request.Request" representing the
  1586. // client's request for the InputService13TestCaseOperation1 operation. The "output" return
  1587. // value can be used to capture response data after the request's "Send" method
  1588. // is called.
  1589. //
  1590. // See InputService13TestCaseOperation1 for usage and error information.
  1591. //
  1592. // Creating a request object using this method should be used when you want to inject
  1593. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1594. // access properties on the request object before or after sending the request. If
  1595. // you just want the service response, call the InputService13TestCaseOperation1 method directly
  1596. // instead.
  1597. //
  1598. // Note: You must call the "Send" method on the returned request object in order
  1599. // to execute the request.
  1600. //
  1601. // // Example sending a request using the InputService13TestCaseOperation1Request method.
  1602. // req, resp := client.InputService13TestCaseOperation1Request(params)
  1603. //
  1604. // err := req.Send()
  1605. // if err == nil { // resp is now filled
  1606. // fmt.Println(resp)
  1607. // }
  1608. //
  1609. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputService13TestCaseOperation1Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) {
  1610. op := &request.Operation{
  1611. Name: opInputService13TestCaseOperation1,
  1612. HTTPMethod: "GET",
  1613. HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
  1614. }
  1615. if input == nil {
  1616. input = &InputService13TestShapeInputService13TestCaseOperation1Input{}
  1617. }
  1618. req = c.newRequest(op, input, output)
  1619. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  1620. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1621. output = &InputService13TestShapeInputService13TestCaseOperation1Output{}
  1622. req.Data = output
  1623. return
  1624. }
  1625. // InputService13TestCaseOperation1 API operation for .
  1626. //
  1627. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1628. // with awserr.Error's Code and Message methods to get detailed information about
  1629. // the error.
  1630. //
  1631. // See the AWS API reference guide for 's
  1632. // API operation InputService13TestCaseOperation1 for usage and error information.
  1633. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputService13TestCaseOperation1Input) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) {
  1634. req, out := c.InputService13TestCaseOperation1Request(input)
  1635. err := req.Send()
  1636. return out, err
  1637. }
  1638. type InputService13TestShapeInputService13TestCaseOperation1Input struct {
  1639. _ struct{} `type:"structure"`
  1640. PipelineId *string `location:"uri" type:"string"`
  1641. QueryDoc map[string]*string `location:"querystring" type:"map"`
  1642. }
  1643. type InputService13TestShapeInputService13TestCaseOperation1Output struct {
  1644. _ struct{} `type:"structure"`
  1645. }
  1646. //The service client's operations are safe to be used concurrently.
  1647. // It is not safe to mutate any of the client's properties though.
  1648. type InputService14ProtocolTest struct {
  1649. *client.Client
  1650. }
  1651. // New creates a new instance of the InputService14ProtocolTest client with a session.
  1652. // If additional configuration is needed for the client instance use the optional
  1653. // aws.Config parameter to add your extra config.
  1654. //
  1655. // Example:
  1656. // // Create a InputService14ProtocolTest client from just a session.
  1657. // svc := inputservice14protocoltest.New(mySession)
  1658. //
  1659. // // Create a InputService14ProtocolTest client with additional configuration
  1660. // svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1661. func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest {
  1662. c := p.ClientConfig("inputservice14protocoltest", cfgs...)
  1663. return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1664. }
  1665. // newClient creates, initializes and returns a new service client instance.
  1666. func newInputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService14ProtocolTest {
  1667. svc := &InputService14ProtocolTest{
  1668. Client: client.New(
  1669. cfg,
  1670. metadata.ClientInfo{
  1671. ServiceName: "inputservice14protocoltest",
  1672. SigningRegion: signingRegion,
  1673. Endpoint: endpoint,
  1674. APIVersion: "2014-01-01",
  1675. },
  1676. handlers,
  1677. ),
  1678. }
  1679. // Handlers
  1680. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1681. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  1682. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  1683. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  1684. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  1685. return svc
  1686. }
  1687. // newRequest creates a new request for a InputService14ProtocolTest operation and runs any
  1688. // custom request initialization.
  1689. func (c *InputService14ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1690. req := c.NewRequest(op, params, data)
  1691. return req
  1692. }
  1693. const opInputService14TestCaseOperation1 = "OperationName"
  1694. // InputService14TestCaseOperation1Request generates a "aws/request.Request" representing the
  1695. // client's request for the InputService14TestCaseOperation1 operation. The "output" return
  1696. // value can be used to capture response data after the request's "Send" method
  1697. // is called.
  1698. //
  1699. // See InputService14TestCaseOperation1 for usage and error information.
  1700. //
  1701. // Creating a request object using this method should be used when you want to inject
  1702. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1703. // access properties on the request object before or after sending the request. If
  1704. // you just want the service response, call the InputService14TestCaseOperation1 method directly
  1705. // instead.
  1706. //
  1707. // Note: You must call the "Send" method on the returned request object in order
  1708. // to execute the request.
  1709. //
  1710. // // Example sending a request using the InputService14TestCaseOperation1Request method.
  1711. // req, resp := client.InputService14TestCaseOperation1Request(params)
  1712. //
  1713. // err := req.Send()
  1714. // if err == nil { // resp is now filled
  1715. // fmt.Println(resp)
  1716. // }
  1717. //
  1718. func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(input *InputService14TestShapeInputService14TestCaseOperation1Input) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation1Output) {
  1719. op := &request.Operation{
  1720. Name: opInputService14TestCaseOperation1,
  1721. HTTPMethod: "GET",
  1722. HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
  1723. }
  1724. if input == nil {
  1725. input = &InputService14TestShapeInputService14TestCaseOperation1Input{}
  1726. }
  1727. req = c.newRequest(op, input, output)
  1728. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  1729. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1730. output = &InputService14TestShapeInputService14TestCaseOperation1Output{}
  1731. req.Data = output
  1732. return
  1733. }
  1734. // InputService14TestCaseOperation1 API operation for .
  1735. //
  1736. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1737. // with awserr.Error's Code and Message methods to get detailed information about
  1738. // the error.
  1739. //
  1740. // See the AWS API reference guide for 's
  1741. // API operation InputService14TestCaseOperation1 for usage and error information.
  1742. func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputService14TestCaseOperation1Input) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) {
  1743. req, out := c.InputService14TestCaseOperation1Request(input)
  1744. err := req.Send()
  1745. return out, err
  1746. }
  1747. type InputService14TestShapeInputService14TestCaseOperation1Input struct {
  1748. _ struct{} `type:"structure"`
  1749. PipelineId *string `location:"uri" type:"string"`
  1750. QueryDoc map[string][]*string `location:"querystring" type:"map"`
  1751. }
  1752. type InputService14TestShapeInputService14TestCaseOperation1Output struct {
  1753. _ struct{} `type:"structure"`
  1754. }
  1755. //The service client's operations are safe to be used concurrently.
  1756. // It is not safe to mutate any of the client's properties though.
  1757. type InputService15ProtocolTest struct {
  1758. *client.Client
  1759. }
  1760. // New creates a new instance of the InputService15ProtocolTest client with a session.
  1761. // If additional configuration is needed for the client instance use the optional
  1762. // aws.Config parameter to add your extra config.
  1763. //
  1764. // Example:
  1765. // // Create a InputService15ProtocolTest client from just a session.
  1766. // svc := inputservice15protocoltest.New(mySession)
  1767. //
  1768. // // Create a InputService15ProtocolTest client with additional configuration
  1769. // svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1770. func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest {
  1771. c := p.ClientConfig("inputservice15protocoltest", cfgs...)
  1772. return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1773. }
  1774. // newClient creates, initializes and returns a new service client instance.
  1775. func newInputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService15ProtocolTest {
  1776. svc := &InputService15ProtocolTest{
  1777. Client: client.New(
  1778. cfg,
  1779. metadata.ClientInfo{
  1780. ServiceName: "inputservice15protocoltest",
  1781. SigningRegion: signingRegion,
  1782. Endpoint: endpoint,
  1783. APIVersion: "2014-01-01",
  1784. },
  1785. handlers,
  1786. ),
  1787. }
  1788. // Handlers
  1789. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1790. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  1791. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  1792. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  1793. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  1794. return svc
  1795. }
  1796. // newRequest creates a new request for a InputService15ProtocolTest operation and runs any
  1797. // custom request initialization.
  1798. func (c *InputService15ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1799. req := c.NewRequest(op, params, data)
  1800. return req
  1801. }
  1802. const opInputService15TestCaseOperation1 = "OperationName"
  1803. // InputService15TestCaseOperation1Request generates a "aws/request.Request" representing the
  1804. // client's request for the InputService15TestCaseOperation1 operation. The "output" return
  1805. // value can be used to capture response data after the request's "Send" method
  1806. // is called.
  1807. //
  1808. // See InputService15TestCaseOperation1 for usage and error information.
  1809. //
  1810. // Creating a request object using this method should be used when you want to inject
  1811. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1812. // access properties on the request object before or after sending the request. If
  1813. // you just want the service response, call the InputService15TestCaseOperation1 method directly
  1814. // instead.
  1815. //
  1816. // Note: You must call the "Send" method on the returned request object in order
  1817. // to execute the request.
  1818. //
  1819. // // Example sending a request using the InputService15TestCaseOperation1Request method.
  1820. // req, resp := client.InputService15TestCaseOperation1Request(params)
  1821. //
  1822. // err := req.Send()
  1823. // if err == nil { // resp is now filled
  1824. // fmt.Println(resp)
  1825. // }
  1826. //
  1827. func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(input *InputService15TestShapeInputService15TestCaseOperation1Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation1Output) {
  1828. op := &request.Operation{
  1829. Name: opInputService15TestCaseOperation1,
  1830. HTTPMethod: "POST",
  1831. HTTPPath: "/",
  1832. }
  1833. if input == nil {
  1834. input = &InputService15TestShapeInputService15TestCaseOperation1Input{}
  1835. }
  1836. req = c.newRequest(op, input, output)
  1837. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  1838. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1839. output = &InputService15TestShapeInputService15TestCaseOperation1Output{}
  1840. req.Data = output
  1841. return
  1842. }
  1843. // InputService15TestCaseOperation1 API operation for .
  1844. //
  1845. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1846. // with awserr.Error's Code and Message methods to get detailed information about
  1847. // the error.
  1848. //
  1849. // See the AWS API reference guide for 's
  1850. // API operation InputService15TestCaseOperation1 for usage and error information.
  1851. func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputService15TestCaseOperation1Input) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) {
  1852. req, out := c.InputService15TestCaseOperation1Request(input)
  1853. err := req.Send()
  1854. return out, err
  1855. }
  1856. type InputService15TestShapeInputService15TestCaseOperation1Input struct {
  1857. _ struct{} `type:"structure" payload:"Foo"`
  1858. Foo *string `locationName:"foo" type:"string"`
  1859. }
  1860. type InputService15TestShapeInputService15TestCaseOperation1Output struct {
  1861. _ struct{} `type:"structure"`
  1862. }
  1863. //The service client's operations are safe to be used concurrently.
  1864. // It is not safe to mutate any of the client's properties though.
  1865. type InputService16ProtocolTest struct {
  1866. *client.Client
  1867. }
  1868. // New creates a new instance of the InputService16ProtocolTest client with a session.
  1869. // If additional configuration is needed for the client instance use the optional
  1870. // aws.Config parameter to add your extra config.
  1871. //
  1872. // Example:
  1873. // // Create a InputService16ProtocolTest client from just a session.
  1874. // svc := inputservice16protocoltest.New(mySession)
  1875. //
  1876. // // Create a InputService16ProtocolTest client with additional configuration
  1877. // svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1878. func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest {
  1879. c := p.ClientConfig("inputservice16protocoltest", cfgs...)
  1880. return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1881. }
  1882. // newClient creates, initializes and returns a new service client instance.
  1883. func newInputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService16ProtocolTest {
  1884. svc := &InputService16ProtocolTest{
  1885. Client: client.New(
  1886. cfg,
  1887. metadata.ClientInfo{
  1888. ServiceName: "inputservice16protocoltest",
  1889. SigningRegion: signingRegion,
  1890. Endpoint: endpoint,
  1891. APIVersion: "2014-01-01",
  1892. },
  1893. handlers,
  1894. ),
  1895. }
  1896. // Handlers
  1897. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1898. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  1899. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  1900. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  1901. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  1902. return svc
  1903. }
  1904. // newRequest creates a new request for a InputService16ProtocolTest operation and runs any
  1905. // custom request initialization.
  1906. func (c *InputService16ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1907. req := c.NewRequest(op, params, data)
  1908. return req
  1909. }
  1910. const opInputService16TestCaseOperation1 = "OperationName"
  1911. // InputService16TestCaseOperation1Request generates a "aws/request.Request" representing the
  1912. // client's request for the InputService16TestCaseOperation1 operation. The "output" return
  1913. // value can be used to capture response data after the request's "Send" method
  1914. // is called.
  1915. //
  1916. // See InputService16TestCaseOperation1 for usage and error information.
  1917. //
  1918. // Creating a request object using this method should be used when you want to inject
  1919. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1920. // access properties on the request object before or after sending the request. If
  1921. // you just want the service response, call the InputService16TestCaseOperation1 method directly
  1922. // instead.
  1923. //
  1924. // Note: You must call the "Send" method on the returned request object in order
  1925. // to execute the request.
  1926. //
  1927. // // Example sending a request using the InputService16TestCaseOperation1Request method.
  1928. // req, resp := client.InputService16TestCaseOperation1Request(params)
  1929. //
  1930. // err := req.Send()
  1931. // if err == nil { // resp is now filled
  1932. // fmt.Println(resp)
  1933. // }
  1934. //
  1935. func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) {
  1936. op := &request.Operation{
  1937. Name: opInputService16TestCaseOperation1,
  1938. HTTPMethod: "POST",
  1939. HTTPPath: "/",
  1940. }
  1941. if input == nil {
  1942. input = &InputService16TestShapeInputShape{}
  1943. }
  1944. req = c.newRequest(op, input, output)
  1945. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  1946. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1947. output = &InputService16TestShapeInputService16TestCaseOperation1Output{}
  1948. req.Data = output
  1949. return
  1950. }
  1951. // InputService16TestCaseOperation1 API operation for .
  1952. //
  1953. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1954. // with awserr.Error's Code and Message methods to get detailed information about
  1955. // the error.
  1956. //
  1957. // See the AWS API reference guide for 's
  1958. // API operation InputService16TestCaseOperation1 for usage and error information.
  1959. func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) {
  1960. req, out := c.InputService16TestCaseOperation1Request(input)
  1961. err := req.Send()
  1962. return out, err
  1963. }
  1964. const opInputService16TestCaseOperation2 = "OperationName"
  1965. // InputService16TestCaseOperation2Request generates a "aws/request.Request" representing the
  1966. // client's request for the InputService16TestCaseOperation2 operation. The "output" return
  1967. // value can be used to capture response data after the request's "Send" method
  1968. // is called.
  1969. //
  1970. // See InputService16TestCaseOperation2 for usage and error information.
  1971. //
  1972. // Creating a request object using this method should be used when you want to inject
  1973. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1974. // access properties on the request object before or after sending the request. If
  1975. // you just want the service response, call the InputService16TestCaseOperation2 method directly
  1976. // instead.
  1977. //
  1978. // Note: You must call the "Send" method on the returned request object in order
  1979. // to execute the request.
  1980. //
  1981. // // Example sending a request using the InputService16TestCaseOperation2Request method.
  1982. // req, resp := client.InputService16TestCaseOperation2Request(params)
  1983. //
  1984. // err := req.Send()
  1985. // if err == nil { // resp is now filled
  1986. // fmt.Println(resp)
  1987. // }
  1988. //
  1989. func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation2Output) {
  1990. op := &request.Operation{
  1991. Name: opInputService16TestCaseOperation2,
  1992. HTTPMethod: "POST",
  1993. HTTPPath: "/",
  1994. }
  1995. if input == nil {
  1996. input = &InputService16TestShapeInputShape{}
  1997. }
  1998. req = c.newRequest(op, input, output)
  1999. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  2000. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2001. output = &InputService16TestShapeInputService16TestCaseOperation2Output{}
  2002. req.Data = output
  2003. return
  2004. }
  2005. // InputService16TestCaseOperation2 API operation for .
  2006. //
  2007. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2008. // with awserr.Error's Code and Message methods to get detailed information about
  2009. // the error.
  2010. //
  2011. // See the AWS API reference guide for 's
  2012. // API operation InputService16TestCaseOperation2 for usage and error information.
  2013. func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) {
  2014. req, out := c.InputService16TestCaseOperation2Request(input)
  2015. err := req.Send()
  2016. return out, err
  2017. }
  2018. type InputService16TestShapeInputService16TestCaseOperation1Output struct {
  2019. _ struct{} `type:"structure"`
  2020. }
  2021. type InputService16TestShapeInputService16TestCaseOperation2Output struct {
  2022. _ struct{} `type:"structure"`
  2023. }
  2024. type InputService16TestShapeInputShape struct {
  2025. _ struct{} `type:"structure" payload:"Foo"`
  2026. Foo []byte `locationName:"foo" type:"blob"`
  2027. }
  2028. //The service client's operations are safe to be used concurrently.
  2029. // It is not safe to mutate any of the client's properties though.
  2030. type InputService17ProtocolTest struct {
  2031. *client.Client
  2032. }
  2033. // New creates a new instance of the InputService17ProtocolTest client with a session.
  2034. // If additional configuration is needed for the client instance use the optional
  2035. // aws.Config parameter to add your extra config.
  2036. //
  2037. // Example:
  2038. // // Create a InputService17ProtocolTest client from just a session.
  2039. // svc := inputservice17protocoltest.New(mySession)
  2040. //
  2041. // // Create a InputService17ProtocolTest client with additional configuration
  2042. // svc := inputservice17protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  2043. func NewInputService17ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService17ProtocolTest {
  2044. c := p.ClientConfig("inputservice17protocoltest", cfgs...)
  2045. return newInputService17ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  2046. }
  2047. // newClient creates, initializes and returns a new service client instance.
  2048. func newInputService17ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService17ProtocolTest {
  2049. svc := &InputService17ProtocolTest{
  2050. Client: client.New(
  2051. cfg,
  2052. metadata.ClientInfo{
  2053. ServiceName: "inputservice17protocoltest",
  2054. SigningRegion: signingRegion,
  2055. Endpoint: endpoint,
  2056. APIVersion: "2014-01-01",
  2057. },
  2058. handlers,
  2059. ),
  2060. }
  2061. // Handlers
  2062. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  2063. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  2064. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  2065. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  2066. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  2067. return svc
  2068. }
  2069. // newRequest creates a new request for a InputService17ProtocolTest operation and runs any
  2070. // custom request initialization.
  2071. func (c *InputService17ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  2072. req := c.NewRequest(op, params, data)
  2073. return req
  2074. }
  2075. const opInputService17TestCaseOperation1 = "OperationName"
  2076. // InputService17TestCaseOperation1Request generates a "aws/request.Request" representing the
  2077. // client's request for the InputService17TestCaseOperation1 operation. The "output" return
  2078. // value can be used to capture response data after the request's "Send" method
  2079. // is called.
  2080. //
  2081. // See InputService17TestCaseOperation1 for usage and error information.
  2082. //
  2083. // Creating a request object using this method should be used when you want to inject
  2084. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2085. // access properties on the request object before or after sending the request. If
  2086. // you just want the service response, call the InputService17TestCaseOperation1 method directly
  2087. // instead.
  2088. //
  2089. // Note: You must call the "Send" method on the returned request object in order
  2090. // to execute the request.
  2091. //
  2092. // // Example sending a request using the InputService17TestCaseOperation1Request method.
  2093. // req, resp := client.InputService17TestCaseOperation1Request(params)
  2094. //
  2095. // err := req.Send()
  2096. // if err == nil { // resp is now filled
  2097. // fmt.Println(resp)
  2098. // }
  2099. //
  2100. func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation1Output) {
  2101. op := &request.Operation{
  2102. Name: opInputService17TestCaseOperation1,
  2103. HTTPMethod: "POST",
  2104. HTTPPath: "/",
  2105. }
  2106. if input == nil {
  2107. input = &InputService17TestShapeInputShape{}
  2108. }
  2109. req = c.newRequest(op, input, output)
  2110. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  2111. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2112. output = &InputService17TestShapeInputService17TestCaseOperation1Output{}
  2113. req.Data = output
  2114. return
  2115. }
  2116. // InputService17TestCaseOperation1 API operation for .
  2117. //
  2118. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2119. // with awserr.Error's Code and Message methods to get detailed information about
  2120. // the error.
  2121. //
  2122. // See the AWS API reference guide for 's
  2123. // API operation InputService17TestCaseOperation1 for usage and error information.
  2124. func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) {
  2125. req, out := c.InputService17TestCaseOperation1Request(input)
  2126. err := req.Send()
  2127. return out, err
  2128. }
  2129. const opInputService17TestCaseOperation2 = "OperationName"
  2130. // InputService17TestCaseOperation2Request generates a "aws/request.Request" representing the
  2131. // client's request for the InputService17TestCaseOperation2 operation. The "output" return
  2132. // value can be used to capture response data after the request's "Send" method
  2133. // is called.
  2134. //
  2135. // See InputService17TestCaseOperation2 for usage and error information.
  2136. //
  2137. // Creating a request object using this method should be used when you want to inject
  2138. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2139. // access properties on the request object before or after sending the request. If
  2140. // you just want the service response, call the InputService17TestCaseOperation2 method directly
  2141. // instead.
  2142. //
  2143. // Note: You must call the "Send" method on the returned request object in order
  2144. // to execute the request.
  2145. //
  2146. // // Example sending a request using the InputService17TestCaseOperation2Request method.
  2147. // req, resp := client.InputService17TestCaseOperation2Request(params)
  2148. //
  2149. // err := req.Send()
  2150. // if err == nil { // resp is now filled
  2151. // fmt.Println(resp)
  2152. // }
  2153. //
  2154. func (c *InputService17ProtocolTest) InputService17TestCaseOperation2Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation2Output) {
  2155. op := &request.Operation{
  2156. Name: opInputService17TestCaseOperation2,
  2157. HTTPMethod: "POST",
  2158. HTTPPath: "/",
  2159. }
  2160. if input == nil {
  2161. input = &InputService17TestShapeInputShape{}
  2162. }
  2163. req = c.newRequest(op, input, output)
  2164. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  2165. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2166. output = &InputService17TestShapeInputService17TestCaseOperation2Output{}
  2167. req.Data = output
  2168. return
  2169. }
  2170. // InputService17TestCaseOperation2 API operation for .
  2171. //
  2172. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2173. // with awserr.Error's Code and Message methods to get detailed information about
  2174. // the error.
  2175. //
  2176. // See the AWS API reference guide for 's
  2177. // API operation InputService17TestCaseOperation2 for usage and error information.
  2178. func (c *InputService17ProtocolTest) InputService17TestCaseOperation2(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation2Output, error) {
  2179. req, out := c.InputService17TestCaseOperation2Request(input)
  2180. err := req.Send()
  2181. return out, err
  2182. }
  2183. const opInputService17TestCaseOperation3 = "OperationName"
  2184. // InputService17TestCaseOperation3Request generates a "aws/request.Request" representing the
  2185. // client's request for the InputService17TestCaseOperation3 operation. The "output" return
  2186. // value can be used to capture response data after the request's "Send" method
  2187. // is called.
  2188. //
  2189. // See InputService17TestCaseOperation3 for usage and error information.
  2190. //
  2191. // Creating a request object using this method should be used when you want to inject
  2192. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2193. // access properties on the request object before or after sending the request. If
  2194. // you just want the service response, call the InputService17TestCaseOperation3 method directly
  2195. // instead.
  2196. //
  2197. // Note: You must call the "Send" method on the returned request object in order
  2198. // to execute the request.
  2199. //
  2200. // // Example sending a request using the InputService17TestCaseOperation3Request method.
  2201. // req, resp := client.InputService17TestCaseOperation3Request(params)
  2202. //
  2203. // err := req.Send()
  2204. // if err == nil { // resp is now filled
  2205. // fmt.Println(resp)
  2206. // }
  2207. //
  2208. func (c *InputService17ProtocolTest) InputService17TestCaseOperation3Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation3Output) {
  2209. op := &request.Operation{
  2210. Name: opInputService17TestCaseOperation3,
  2211. HTTPMethod: "POST",
  2212. HTTPPath: "/",
  2213. }
  2214. if input == nil {
  2215. input = &InputService17TestShapeInputShape{}
  2216. }
  2217. req = c.newRequest(op, input, output)
  2218. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  2219. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2220. output = &InputService17TestShapeInputService17TestCaseOperation3Output{}
  2221. req.Data = output
  2222. return
  2223. }
  2224. // InputService17TestCaseOperation3 API operation for .
  2225. //
  2226. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2227. // with awserr.Error's Code and Message methods to get detailed information about
  2228. // the error.
  2229. //
  2230. // See the AWS API reference guide for 's
  2231. // API operation InputService17TestCaseOperation3 for usage and error information.
  2232. func (c *InputService17ProtocolTest) InputService17TestCaseOperation3(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation3Output, error) {
  2233. req, out := c.InputService17TestCaseOperation3Request(input)
  2234. err := req.Send()
  2235. return out, err
  2236. }
  2237. const opInputService17TestCaseOperation4 = "OperationName"
  2238. // InputService17TestCaseOperation4Request generates a "aws/request.Request" representing the
  2239. // client's request for the InputService17TestCaseOperation4 operation. The "output" return
  2240. // value can be used to capture response data after the request's "Send" method
  2241. // is called.
  2242. //
  2243. // See InputService17TestCaseOperation4 for usage and error information.
  2244. //
  2245. // Creating a request object using this method should be used when you want to inject
  2246. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2247. // access properties on the request object before or after sending the request. If
  2248. // you just want the service response, call the InputService17TestCaseOperation4 method directly
  2249. // instead.
  2250. //
  2251. // Note: You must call the "Send" method on the returned request object in order
  2252. // to execute the request.
  2253. //
  2254. // // Example sending a request using the InputService17TestCaseOperation4Request method.
  2255. // req, resp := client.InputService17TestCaseOperation4Request(params)
  2256. //
  2257. // err := req.Send()
  2258. // if err == nil { // resp is now filled
  2259. // fmt.Println(resp)
  2260. // }
  2261. //
  2262. func (c *InputService17ProtocolTest) InputService17TestCaseOperation4Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation4Output) {
  2263. op := &request.Operation{
  2264. Name: opInputService17TestCaseOperation4,
  2265. HTTPMethod: "POST",
  2266. HTTPPath: "/",
  2267. }
  2268. if input == nil {
  2269. input = &InputService17TestShapeInputShape{}
  2270. }
  2271. req = c.newRequest(op, input, output)
  2272. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  2273. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2274. output = &InputService17TestShapeInputService17TestCaseOperation4Output{}
  2275. req.Data = output
  2276. return
  2277. }
  2278. // InputService17TestCaseOperation4 API operation for .
  2279. //
  2280. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2281. // with awserr.Error's Code and Message methods to get detailed information about
  2282. // the error.
  2283. //
  2284. // See the AWS API reference guide for 's
  2285. // API operation InputService17TestCaseOperation4 for usage and error information.
  2286. func (c *InputService17ProtocolTest) InputService17TestCaseOperation4(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation4Output, error) {
  2287. req, out := c.InputService17TestCaseOperation4Request(input)
  2288. err := req.Send()
  2289. return out, err
  2290. }
  2291. type InputService17TestShapeFooShape struct {
  2292. _ struct{} `locationName:"foo" type:"structure"`
  2293. Baz *string `locationName:"baz" type:"string"`
  2294. }
  2295. type InputService17TestShapeInputService17TestCaseOperation1Output struct {
  2296. _ struct{} `type:"structure"`
  2297. }
  2298. type InputService17TestShapeInputService17TestCaseOperation2Output struct {
  2299. _ struct{} `type:"structure"`
  2300. }
  2301. type InputService17TestShapeInputService17TestCaseOperation3Output struct {
  2302. _ struct{} `type:"structure"`
  2303. }
  2304. type InputService17TestShapeInputService17TestCaseOperation4Output struct {
  2305. _ struct{} `type:"structure"`
  2306. }
  2307. type InputService17TestShapeInputShape struct {
  2308. _ struct{} `type:"structure" payload:"Foo"`
  2309. Foo *InputService17TestShapeFooShape `locationName:"foo" type:"structure"`
  2310. }
  2311. //The service client's operations are safe to be used concurrently.
  2312. // It is not safe to mutate any of the client's properties though.
  2313. type InputService18ProtocolTest struct {
  2314. *client.Client
  2315. }
  2316. // New creates a new instance of the InputService18ProtocolTest client with a session.
  2317. // If additional configuration is needed for the client instance use the optional
  2318. // aws.Config parameter to add your extra config.
  2319. //
  2320. // Example:
  2321. // // Create a InputService18ProtocolTest client from just a session.
  2322. // svc := inputservice18protocoltest.New(mySession)
  2323. //
  2324. // // Create a InputService18ProtocolTest client with additional configuration
  2325. // svc := inputservice18protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  2326. func NewInputService18ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService18ProtocolTest {
  2327. c := p.ClientConfig("inputservice18protocoltest", cfgs...)
  2328. return newInputService18ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  2329. }
  2330. // newClient creates, initializes and returns a new service client instance.
  2331. func newInputService18ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService18ProtocolTest {
  2332. svc := &InputService18ProtocolTest{
  2333. Client: client.New(
  2334. cfg,
  2335. metadata.ClientInfo{
  2336. ServiceName: "inputservice18protocoltest",
  2337. SigningRegion: signingRegion,
  2338. Endpoint: endpoint,
  2339. APIVersion: "2014-01-01",
  2340. },
  2341. handlers,
  2342. ),
  2343. }
  2344. // Handlers
  2345. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  2346. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  2347. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  2348. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  2349. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  2350. return svc
  2351. }
  2352. // newRequest creates a new request for a InputService18ProtocolTest operation and runs any
  2353. // custom request initialization.
  2354. func (c *InputService18ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  2355. req := c.NewRequest(op, params, data)
  2356. return req
  2357. }
  2358. const opInputService18TestCaseOperation1 = "OperationName"
  2359. // InputService18TestCaseOperation1Request generates a "aws/request.Request" representing the
  2360. // client's request for the InputService18TestCaseOperation1 operation. The "output" return
  2361. // value can be used to capture response data after the request's "Send" method
  2362. // is called.
  2363. //
  2364. // See InputService18TestCaseOperation1 for usage and error information.
  2365. //
  2366. // Creating a request object using this method should be used when you want to inject
  2367. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2368. // access properties on the request object before or after sending the request. If
  2369. // you just want the service response, call the InputService18TestCaseOperation1 method directly
  2370. // instead.
  2371. //
  2372. // Note: You must call the "Send" method on the returned request object in order
  2373. // to execute the request.
  2374. //
  2375. // // Example sending a request using the InputService18TestCaseOperation1Request method.
  2376. // req, resp := client.InputService18TestCaseOperation1Request(params)
  2377. //
  2378. // err := req.Send()
  2379. // if err == nil { // resp is now filled
  2380. // fmt.Println(resp)
  2381. // }
  2382. //
  2383. func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(input *InputService18TestShapeInputService18TestCaseOperation1Input) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation1Output) {
  2384. op := &request.Operation{
  2385. Name: opInputService18TestCaseOperation1,
  2386. HTTPMethod: "POST",
  2387. HTTPPath: "/",
  2388. }
  2389. if input == nil {
  2390. input = &InputService18TestShapeInputService18TestCaseOperation1Input{}
  2391. }
  2392. req = c.newRequest(op, input, output)
  2393. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  2394. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2395. output = &InputService18TestShapeInputService18TestCaseOperation1Output{}
  2396. req.Data = output
  2397. return
  2398. }
  2399. // InputService18TestCaseOperation1 API operation for .
  2400. //
  2401. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2402. // with awserr.Error's Code and Message methods to get detailed information about
  2403. // the error.
  2404. //
  2405. // See the AWS API reference guide for 's
  2406. // API operation InputService18TestCaseOperation1 for usage and error information.
  2407. func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputService18TestCaseOperation1Input) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) {
  2408. req, out := c.InputService18TestCaseOperation1Request(input)
  2409. err := req.Send()
  2410. return out, err
  2411. }
  2412. type InputService18TestShapeGrant struct {
  2413. _ struct{} `locationName:"Grant" type:"structure"`
  2414. Grantee *InputService18TestShapeGrantee `type:"structure"`
  2415. }
  2416. type InputService18TestShapeGrantee struct {
  2417. _ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
  2418. EmailAddress *string `type:"string"`
  2419. Type *string `locationName:"xsi:type" type:"string" xmlAttribute:"true"`
  2420. }
  2421. type InputService18TestShapeInputService18TestCaseOperation1Input struct {
  2422. _ struct{} `type:"structure" payload:"Grant"`
  2423. Grant *InputService18TestShapeGrant `locationName:"Grant" type:"structure"`
  2424. }
  2425. type InputService18TestShapeInputService18TestCaseOperation1Output struct {
  2426. _ struct{} `type:"structure"`
  2427. }
  2428. //The service client's operations are safe to be used concurrently.
  2429. // It is not safe to mutate any of the client's properties though.
  2430. type InputService19ProtocolTest struct {
  2431. *client.Client
  2432. }
  2433. // New creates a new instance of the InputService19ProtocolTest client with a session.
  2434. // If additional configuration is needed for the client instance use the optional
  2435. // aws.Config parameter to add your extra config.
  2436. //
  2437. // Example:
  2438. // // Create a InputService19ProtocolTest client from just a session.
  2439. // svc := inputservice19protocoltest.New(mySession)
  2440. //
  2441. // // Create a InputService19ProtocolTest client with additional configuration
  2442. // svc := inputservice19protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  2443. func NewInputService19ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService19ProtocolTest {
  2444. c := p.ClientConfig("inputservice19protocoltest", cfgs...)
  2445. return newInputService19ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  2446. }
  2447. // newClient creates, initializes and returns a new service client instance.
  2448. func newInputService19ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService19ProtocolTest {
  2449. svc := &InputService19ProtocolTest{
  2450. Client: client.New(
  2451. cfg,
  2452. metadata.ClientInfo{
  2453. ServiceName: "inputservice19protocoltest",
  2454. SigningRegion: signingRegion,
  2455. Endpoint: endpoint,
  2456. APIVersion: "2014-01-01",
  2457. },
  2458. handlers,
  2459. ),
  2460. }
  2461. // Handlers
  2462. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  2463. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  2464. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  2465. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  2466. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  2467. return svc
  2468. }
  2469. // newRequest creates a new request for a InputService19ProtocolTest operation and runs any
  2470. // custom request initialization.
  2471. func (c *InputService19ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  2472. req := c.NewRequest(op, params, data)
  2473. return req
  2474. }
  2475. const opInputService19TestCaseOperation1 = "OperationName"
  2476. // InputService19TestCaseOperation1Request generates a "aws/request.Request" representing the
  2477. // client's request for the InputService19TestCaseOperation1 operation. The "output" return
  2478. // value can be used to capture response data after the request's "Send" method
  2479. // is called.
  2480. //
  2481. // See InputService19TestCaseOperation1 for usage and error information.
  2482. //
  2483. // Creating a request object using this method should be used when you want to inject
  2484. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2485. // access properties on the request object before or after sending the request. If
  2486. // you just want the service response, call the InputService19TestCaseOperation1 method directly
  2487. // instead.
  2488. //
  2489. // Note: You must call the "Send" method on the returned request object in order
  2490. // to execute the request.
  2491. //
  2492. // // Example sending a request using the InputService19TestCaseOperation1Request method.
  2493. // req, resp := client.InputService19TestCaseOperation1Request(params)
  2494. //
  2495. // err := req.Send()
  2496. // if err == nil { // resp is now filled
  2497. // fmt.Println(resp)
  2498. // }
  2499. //
  2500. func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputService19TestCaseOperation1Input) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation1Output) {
  2501. op := &request.Operation{
  2502. Name: opInputService19TestCaseOperation1,
  2503. HTTPMethod: "GET",
  2504. HTTPPath: "/{Bucket}/{Key+}",
  2505. }
  2506. if input == nil {
  2507. input = &InputService19TestShapeInputService19TestCaseOperation1Input{}
  2508. }
  2509. req = c.newRequest(op, input, output)
  2510. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  2511. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2512. output = &InputService19TestShapeInputService19TestCaseOperation1Output{}
  2513. req.Data = output
  2514. return
  2515. }
  2516. // InputService19TestCaseOperation1 API operation for .
  2517. //
  2518. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2519. // with awserr.Error's Code and Message methods to get detailed information about
  2520. // the error.
  2521. //
  2522. // See the AWS API reference guide for 's
  2523. // API operation InputService19TestCaseOperation1 for usage and error information.
  2524. func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputService19TestCaseOperation1Input) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) {
  2525. req, out := c.InputService19TestCaseOperation1Request(input)
  2526. err := req.Send()
  2527. return out, err
  2528. }
  2529. type InputService19TestShapeInputService19TestCaseOperation1Input struct {
  2530. _ struct{} `type:"structure"`
  2531. Bucket *string `location:"uri" type:"string"`
  2532. Key *string `location:"uri" type:"string"`
  2533. }
  2534. type InputService19TestShapeInputService19TestCaseOperation1Output struct {
  2535. _ struct{} `type:"structure"`
  2536. }
  2537. //The service client's operations are safe to be used concurrently.
  2538. // It is not safe to mutate any of the client's properties though.
  2539. type InputService20ProtocolTest struct {
  2540. *client.Client
  2541. }
  2542. // New creates a new instance of the InputService20ProtocolTest client with a session.
  2543. // If additional configuration is needed for the client instance use the optional
  2544. // aws.Config parameter to add your extra config.
  2545. //
  2546. // Example:
  2547. // // Create a InputService20ProtocolTest client from just a session.
  2548. // svc := inputservice20protocoltest.New(mySession)
  2549. //
  2550. // // Create a InputService20ProtocolTest client with additional configuration
  2551. // svc := inputservice20protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  2552. func NewInputService20ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService20ProtocolTest {
  2553. c := p.ClientConfig("inputservice20protocoltest", cfgs...)
  2554. return newInputService20ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  2555. }
  2556. // newClient creates, initializes and returns a new service client instance.
  2557. func newInputService20ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService20ProtocolTest {
  2558. svc := &InputService20ProtocolTest{
  2559. Client: client.New(
  2560. cfg,
  2561. metadata.ClientInfo{
  2562. ServiceName: "inputservice20protocoltest",
  2563. SigningRegion: signingRegion,
  2564. Endpoint: endpoint,
  2565. APIVersion: "2014-01-01",
  2566. },
  2567. handlers,
  2568. ),
  2569. }
  2570. // Handlers
  2571. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  2572. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  2573. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  2574. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  2575. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  2576. return svc
  2577. }
  2578. // newRequest creates a new request for a InputService20ProtocolTest operation and runs any
  2579. // custom request initialization.
  2580. func (c *InputService20ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  2581. req := c.NewRequest(op, params, data)
  2582. return req
  2583. }
  2584. const opInputService20TestCaseOperation1 = "OperationName"
  2585. // InputService20TestCaseOperation1Request generates a "aws/request.Request" representing the
  2586. // client's request for the InputService20TestCaseOperation1 operation. The "output" return
  2587. // value can be used to capture response data after the request's "Send" method
  2588. // is called.
  2589. //
  2590. // See InputService20TestCaseOperation1 for usage and error information.
  2591. //
  2592. // Creating a request object using this method should be used when you want to inject
  2593. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2594. // access properties on the request object before or after sending the request. If
  2595. // you just want the service response, call the InputService20TestCaseOperation1 method directly
  2596. // instead.
  2597. //
  2598. // Note: You must call the "Send" method on the returned request object in order
  2599. // to execute the request.
  2600. //
  2601. // // Example sending a request using the InputService20TestCaseOperation1Request method.
  2602. // req, resp := client.InputService20TestCaseOperation1Request(params)
  2603. //
  2604. // err := req.Send()
  2605. // if err == nil { // resp is now filled
  2606. // fmt.Println(resp)
  2607. // }
  2608. //
  2609. func (c *InputService20ProtocolTest) InputService20TestCaseOperation1Request(input *InputService20TestShapeInputShape) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation1Output) {
  2610. op := &request.Operation{
  2611. Name: opInputService20TestCaseOperation1,
  2612. HTTPMethod: "POST",
  2613. HTTPPath: "/path",
  2614. }
  2615. if input == nil {
  2616. input = &InputService20TestShapeInputShape{}
  2617. }
  2618. req = c.newRequest(op, input, output)
  2619. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  2620. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2621. output = &InputService20TestShapeInputService20TestCaseOperation1Output{}
  2622. req.Data = output
  2623. return
  2624. }
  2625. // InputService20TestCaseOperation1 API operation for .
  2626. //
  2627. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2628. // with awserr.Error's Code and Message methods to get detailed information about
  2629. // the error.
  2630. //
  2631. // See the AWS API reference guide for 's
  2632. // API operation InputService20TestCaseOperation1 for usage and error information.
  2633. func (c *InputService20ProtocolTest) InputService20TestCaseOperation1(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation1Output, error) {
  2634. req, out := c.InputService20TestCaseOperation1Request(input)
  2635. err := req.Send()
  2636. return out, err
  2637. }
  2638. const opInputService20TestCaseOperation2 = "OperationName"
  2639. // InputService20TestCaseOperation2Request generates a "aws/request.Request" representing the
  2640. // client's request for the InputService20TestCaseOperation2 operation. The "output" return
  2641. // value can be used to capture response data after the request's "Send" method
  2642. // is called.
  2643. //
  2644. // See InputService20TestCaseOperation2 for usage and error information.
  2645. //
  2646. // Creating a request object using this method should be used when you want to inject
  2647. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2648. // access properties on the request object before or after sending the request. If
  2649. // you just want the service response, call the InputService20TestCaseOperation2 method directly
  2650. // instead.
  2651. //
  2652. // Note: You must call the "Send" method on the returned request object in order
  2653. // to execute the request.
  2654. //
  2655. // // Example sending a request using the InputService20TestCaseOperation2Request method.
  2656. // req, resp := client.InputService20TestCaseOperation2Request(params)
  2657. //
  2658. // err := req.Send()
  2659. // if err == nil { // resp is now filled
  2660. // fmt.Println(resp)
  2661. // }
  2662. //
  2663. func (c *InputService20ProtocolTest) InputService20TestCaseOperation2Request(input *InputService20TestShapeInputShape) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation2Output) {
  2664. op := &request.Operation{
  2665. Name: opInputService20TestCaseOperation2,
  2666. HTTPMethod: "POST",
  2667. HTTPPath: "/path?abc=mno",
  2668. }
  2669. if input == nil {
  2670. input = &InputService20TestShapeInputShape{}
  2671. }
  2672. req = c.newRequest(op, input, output)
  2673. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  2674. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2675. output = &InputService20TestShapeInputService20TestCaseOperation2Output{}
  2676. req.Data = output
  2677. return
  2678. }
  2679. // InputService20TestCaseOperation2 API operation for .
  2680. //
  2681. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2682. // with awserr.Error's Code and Message methods to get detailed information about
  2683. // the error.
  2684. //
  2685. // See the AWS API reference guide for 's
  2686. // API operation InputService20TestCaseOperation2 for usage and error information.
  2687. func (c *InputService20ProtocolTest) InputService20TestCaseOperation2(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation2Output, error) {
  2688. req, out := c.InputService20TestCaseOperation2Request(input)
  2689. err := req.Send()
  2690. return out, err
  2691. }
  2692. type InputService20TestShapeInputService20TestCaseOperation1Output struct {
  2693. _ struct{} `type:"structure"`
  2694. }
  2695. type InputService20TestShapeInputService20TestCaseOperation2Output struct {
  2696. _ struct{} `type:"structure"`
  2697. }
  2698. type InputService20TestShapeInputShape struct {
  2699. _ struct{} `type:"structure"`
  2700. Foo *string `location:"querystring" locationName:"param-name" type:"string"`
  2701. }
  2702. //The service client's operations are safe to be used concurrently.
  2703. // It is not safe to mutate any of the client's properties though.
  2704. type InputService21ProtocolTest struct {
  2705. *client.Client
  2706. }
  2707. // New creates a new instance of the InputService21ProtocolTest client with a session.
  2708. // If additional configuration is needed for the client instance use the optional
  2709. // aws.Config parameter to add your extra config.
  2710. //
  2711. // Example:
  2712. // // Create a InputService21ProtocolTest client from just a session.
  2713. // svc := inputservice21protocoltest.New(mySession)
  2714. //
  2715. // // Create a InputService21ProtocolTest client with additional configuration
  2716. // svc := inputservice21protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  2717. func NewInputService21ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService21ProtocolTest {
  2718. c := p.ClientConfig("inputservice21protocoltest", cfgs...)
  2719. return newInputService21ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  2720. }
  2721. // newClient creates, initializes and returns a new service client instance.
  2722. func newInputService21ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService21ProtocolTest {
  2723. svc := &InputService21ProtocolTest{
  2724. Client: client.New(
  2725. cfg,
  2726. metadata.ClientInfo{
  2727. ServiceName: "inputservice21protocoltest",
  2728. SigningRegion: signingRegion,
  2729. Endpoint: endpoint,
  2730. APIVersion: "2014-01-01",
  2731. },
  2732. handlers,
  2733. ),
  2734. }
  2735. // Handlers
  2736. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  2737. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  2738. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  2739. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  2740. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  2741. return svc
  2742. }
  2743. // newRequest creates a new request for a InputService21ProtocolTest operation and runs any
  2744. // custom request initialization.
  2745. func (c *InputService21ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  2746. req := c.NewRequest(op, params, data)
  2747. return req
  2748. }
  2749. const opInputService21TestCaseOperation1 = "OperationName"
  2750. // InputService21TestCaseOperation1Request generates a "aws/request.Request" representing the
  2751. // client's request for the InputService21TestCaseOperation1 operation. The "output" return
  2752. // value can be used to capture response data after the request's "Send" method
  2753. // is called.
  2754. //
  2755. // See InputService21TestCaseOperation1 for usage and error information.
  2756. //
  2757. // Creating a request object using this method should be used when you want to inject
  2758. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2759. // access properties on the request object before or after sending the request. If
  2760. // you just want the service response, call the InputService21TestCaseOperation1 method directly
  2761. // instead.
  2762. //
  2763. // Note: You must call the "Send" method on the returned request object in order
  2764. // to execute the request.
  2765. //
  2766. // // Example sending a request using the InputService21TestCaseOperation1Request method.
  2767. // req, resp := client.InputService21TestCaseOperation1Request(params)
  2768. //
  2769. // err := req.Send()
  2770. // if err == nil { // resp is now filled
  2771. // fmt.Println(resp)
  2772. // }
  2773. //
  2774. func (c *InputService21ProtocolTest) InputService21TestCaseOperation1Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation1Output) {
  2775. op := &request.Operation{
  2776. Name: opInputService21TestCaseOperation1,
  2777. HTTPMethod: "POST",
  2778. HTTPPath: "/path",
  2779. }
  2780. if input == nil {
  2781. input = &InputService21TestShapeInputShape{}
  2782. }
  2783. req = c.newRequest(op, input, output)
  2784. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  2785. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2786. output = &InputService21TestShapeInputService21TestCaseOperation1Output{}
  2787. req.Data = output
  2788. return
  2789. }
  2790. // InputService21TestCaseOperation1 API operation for .
  2791. //
  2792. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2793. // with awserr.Error's Code and Message methods to get detailed information about
  2794. // the error.
  2795. //
  2796. // See the AWS API reference guide for 's
  2797. // API operation InputService21TestCaseOperation1 for usage and error information.
  2798. func (c *InputService21ProtocolTest) InputService21TestCaseOperation1(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation1Output, error) {
  2799. req, out := c.InputService21TestCaseOperation1Request(input)
  2800. err := req.Send()
  2801. return out, err
  2802. }
  2803. const opInputService21TestCaseOperation2 = "OperationName"
  2804. // InputService21TestCaseOperation2Request generates a "aws/request.Request" representing the
  2805. // client's request for the InputService21TestCaseOperation2 operation. The "output" return
  2806. // value can be used to capture response data after the request's "Send" method
  2807. // is called.
  2808. //
  2809. // See InputService21TestCaseOperation2 for usage and error information.
  2810. //
  2811. // Creating a request object using this method should be used when you want to inject
  2812. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2813. // access properties on the request object before or after sending the request. If
  2814. // you just want the service response, call the InputService21TestCaseOperation2 method directly
  2815. // instead.
  2816. //
  2817. // Note: You must call the "Send" method on the returned request object in order
  2818. // to execute the request.
  2819. //
  2820. // // Example sending a request using the InputService21TestCaseOperation2Request method.
  2821. // req, resp := client.InputService21TestCaseOperation2Request(params)
  2822. //
  2823. // err := req.Send()
  2824. // if err == nil { // resp is now filled
  2825. // fmt.Println(resp)
  2826. // }
  2827. //
  2828. func (c *InputService21ProtocolTest) InputService21TestCaseOperation2Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation2Output) {
  2829. op := &request.Operation{
  2830. Name: opInputService21TestCaseOperation2,
  2831. HTTPMethod: "POST",
  2832. HTTPPath: "/path",
  2833. }
  2834. if input == nil {
  2835. input = &InputService21TestShapeInputShape{}
  2836. }
  2837. req = c.newRequest(op, input, output)
  2838. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  2839. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2840. output = &InputService21TestShapeInputService21TestCaseOperation2Output{}
  2841. req.Data = output
  2842. return
  2843. }
  2844. // InputService21TestCaseOperation2 API operation for .
  2845. //
  2846. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2847. // with awserr.Error's Code and Message methods to get detailed information about
  2848. // the error.
  2849. //
  2850. // See the AWS API reference guide for 's
  2851. // API operation InputService21TestCaseOperation2 for usage and error information.
  2852. func (c *InputService21ProtocolTest) InputService21TestCaseOperation2(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation2Output, error) {
  2853. req, out := c.InputService21TestCaseOperation2Request(input)
  2854. err := req.Send()
  2855. return out, err
  2856. }
  2857. const opInputService21TestCaseOperation3 = "OperationName"
  2858. // InputService21TestCaseOperation3Request generates a "aws/request.Request" representing the
  2859. // client's request for the InputService21TestCaseOperation3 operation. The "output" return
  2860. // value can be used to capture response data after the request's "Send" method
  2861. // is called.
  2862. //
  2863. // See InputService21TestCaseOperation3 for usage and error information.
  2864. //
  2865. // Creating a request object using this method should be used when you want to inject
  2866. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2867. // access properties on the request object before or after sending the request. If
  2868. // you just want the service response, call the InputService21TestCaseOperation3 method directly
  2869. // instead.
  2870. //
  2871. // Note: You must call the "Send" method on the returned request object in order
  2872. // to execute the request.
  2873. //
  2874. // // Example sending a request using the InputService21TestCaseOperation3Request method.
  2875. // req, resp := client.InputService21TestCaseOperation3Request(params)
  2876. //
  2877. // err := req.Send()
  2878. // if err == nil { // resp is now filled
  2879. // fmt.Println(resp)
  2880. // }
  2881. //
  2882. func (c *InputService21ProtocolTest) InputService21TestCaseOperation3Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation3Output) {
  2883. op := &request.Operation{
  2884. Name: opInputService21TestCaseOperation3,
  2885. HTTPMethod: "POST",
  2886. HTTPPath: "/path",
  2887. }
  2888. if input == nil {
  2889. input = &InputService21TestShapeInputShape{}
  2890. }
  2891. req = c.newRequest(op, input, output)
  2892. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  2893. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2894. output = &InputService21TestShapeInputService21TestCaseOperation3Output{}
  2895. req.Data = output
  2896. return
  2897. }
  2898. // InputService21TestCaseOperation3 API operation for .
  2899. //
  2900. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2901. // with awserr.Error's Code and Message methods to get detailed information about
  2902. // the error.
  2903. //
  2904. // See the AWS API reference guide for 's
  2905. // API operation InputService21TestCaseOperation3 for usage and error information.
  2906. func (c *InputService21ProtocolTest) InputService21TestCaseOperation3(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation3Output, error) {
  2907. req, out := c.InputService21TestCaseOperation3Request(input)
  2908. err := req.Send()
  2909. return out, err
  2910. }
  2911. const opInputService21TestCaseOperation4 = "OperationName"
  2912. // InputService21TestCaseOperation4Request generates a "aws/request.Request" representing the
  2913. // client's request for the InputService21TestCaseOperation4 operation. The "output" return
  2914. // value can be used to capture response data after the request's "Send" method
  2915. // is called.
  2916. //
  2917. // See InputService21TestCaseOperation4 for usage and error information.
  2918. //
  2919. // Creating a request object using this method should be used when you want to inject
  2920. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2921. // access properties on the request object before or after sending the request. If
  2922. // you just want the service response, call the InputService21TestCaseOperation4 method directly
  2923. // instead.
  2924. //
  2925. // Note: You must call the "Send" method on the returned request object in order
  2926. // to execute the request.
  2927. //
  2928. // // Example sending a request using the InputService21TestCaseOperation4Request method.
  2929. // req, resp := client.InputService21TestCaseOperation4Request(params)
  2930. //
  2931. // err := req.Send()
  2932. // if err == nil { // resp is now filled
  2933. // fmt.Println(resp)
  2934. // }
  2935. //
  2936. func (c *InputService21ProtocolTest) InputService21TestCaseOperation4Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation4Output) {
  2937. op := &request.Operation{
  2938. Name: opInputService21TestCaseOperation4,
  2939. HTTPMethod: "POST",
  2940. HTTPPath: "/path",
  2941. }
  2942. if input == nil {
  2943. input = &InputService21TestShapeInputShape{}
  2944. }
  2945. req = c.newRequest(op, input, output)
  2946. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  2947. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2948. output = &InputService21TestShapeInputService21TestCaseOperation4Output{}
  2949. req.Data = output
  2950. return
  2951. }
  2952. // InputService21TestCaseOperation4 API operation for .
  2953. //
  2954. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2955. // with awserr.Error's Code and Message methods to get detailed information about
  2956. // the error.
  2957. //
  2958. // See the AWS API reference guide for 's
  2959. // API operation InputService21TestCaseOperation4 for usage and error information.
  2960. func (c *InputService21ProtocolTest) InputService21TestCaseOperation4(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation4Output, error) {
  2961. req, out := c.InputService21TestCaseOperation4Request(input)
  2962. err := req.Send()
  2963. return out, err
  2964. }
  2965. const opInputService21TestCaseOperation5 = "OperationName"
  2966. // InputService21TestCaseOperation5Request generates a "aws/request.Request" representing the
  2967. // client's request for the InputService21TestCaseOperation5 operation. The "output" return
  2968. // value can be used to capture response data after the request's "Send" method
  2969. // is called.
  2970. //
  2971. // See InputService21TestCaseOperation5 for usage and error information.
  2972. //
  2973. // Creating a request object using this method should be used when you want to inject
  2974. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2975. // access properties on the request object before or after sending the request. If
  2976. // you just want the service response, call the InputService21TestCaseOperation5 method directly
  2977. // instead.
  2978. //
  2979. // Note: You must call the "Send" method on the returned request object in order
  2980. // to execute the request.
  2981. //
  2982. // // Example sending a request using the InputService21TestCaseOperation5Request method.
  2983. // req, resp := client.InputService21TestCaseOperation5Request(params)
  2984. //
  2985. // err := req.Send()
  2986. // if err == nil { // resp is now filled
  2987. // fmt.Println(resp)
  2988. // }
  2989. //
  2990. func (c *InputService21ProtocolTest) InputService21TestCaseOperation5Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation5Output) {
  2991. op := &request.Operation{
  2992. Name: opInputService21TestCaseOperation5,
  2993. HTTPMethod: "POST",
  2994. HTTPPath: "/path",
  2995. }
  2996. if input == nil {
  2997. input = &InputService21TestShapeInputShape{}
  2998. }
  2999. req = c.newRequest(op, input, output)
  3000. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  3001. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3002. output = &InputService21TestShapeInputService21TestCaseOperation5Output{}
  3003. req.Data = output
  3004. return
  3005. }
  3006. // InputService21TestCaseOperation5 API operation for .
  3007. //
  3008. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3009. // with awserr.Error's Code and Message methods to get detailed information about
  3010. // the error.
  3011. //
  3012. // See the AWS API reference guide for 's
  3013. // API operation InputService21TestCaseOperation5 for usage and error information.
  3014. func (c *InputService21ProtocolTest) InputService21TestCaseOperation5(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation5Output, error) {
  3015. req, out := c.InputService21TestCaseOperation5Request(input)
  3016. err := req.Send()
  3017. return out, err
  3018. }
  3019. const opInputService21TestCaseOperation6 = "OperationName"
  3020. // InputService21TestCaseOperation6Request generates a "aws/request.Request" representing the
  3021. // client's request for the InputService21TestCaseOperation6 operation. The "output" return
  3022. // value can be used to capture response data after the request's "Send" method
  3023. // is called.
  3024. //
  3025. // See InputService21TestCaseOperation6 for usage and error information.
  3026. //
  3027. // Creating a request object using this method should be used when you want to inject
  3028. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3029. // access properties on the request object before or after sending the request. If
  3030. // you just want the service response, call the InputService21TestCaseOperation6 method directly
  3031. // instead.
  3032. //
  3033. // Note: You must call the "Send" method on the returned request object in order
  3034. // to execute the request.
  3035. //
  3036. // // Example sending a request using the InputService21TestCaseOperation6Request method.
  3037. // req, resp := client.InputService21TestCaseOperation6Request(params)
  3038. //
  3039. // err := req.Send()
  3040. // if err == nil { // resp is now filled
  3041. // fmt.Println(resp)
  3042. // }
  3043. //
  3044. func (c *InputService21ProtocolTest) InputService21TestCaseOperation6Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation6Output) {
  3045. op := &request.Operation{
  3046. Name: opInputService21TestCaseOperation6,
  3047. HTTPMethod: "POST",
  3048. HTTPPath: "/path",
  3049. }
  3050. if input == nil {
  3051. input = &InputService21TestShapeInputShape{}
  3052. }
  3053. req = c.newRequest(op, input, output)
  3054. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  3055. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3056. output = &InputService21TestShapeInputService21TestCaseOperation6Output{}
  3057. req.Data = output
  3058. return
  3059. }
  3060. // InputService21TestCaseOperation6 API operation for .
  3061. //
  3062. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3063. // with awserr.Error's Code and Message methods to get detailed information about
  3064. // the error.
  3065. //
  3066. // See the AWS API reference guide for 's
  3067. // API operation InputService21TestCaseOperation6 for usage and error information.
  3068. func (c *InputService21ProtocolTest) InputService21TestCaseOperation6(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation6Output, error) {
  3069. req, out := c.InputService21TestCaseOperation6Request(input)
  3070. err := req.Send()
  3071. return out, err
  3072. }
  3073. type InputService21TestShapeInputService21TestCaseOperation1Output struct {
  3074. _ struct{} `type:"structure"`
  3075. }
  3076. type InputService21TestShapeInputService21TestCaseOperation2Output struct {
  3077. _ struct{} `type:"structure"`
  3078. }
  3079. type InputService21TestShapeInputService21TestCaseOperation3Output struct {
  3080. _ struct{} `type:"structure"`
  3081. }
  3082. type InputService21TestShapeInputService21TestCaseOperation4Output struct {
  3083. _ struct{} `type:"structure"`
  3084. }
  3085. type InputService21TestShapeInputService21TestCaseOperation5Output struct {
  3086. _ struct{} `type:"structure"`
  3087. }
  3088. type InputService21TestShapeInputService21TestCaseOperation6Output struct {
  3089. _ struct{} `type:"structure"`
  3090. }
  3091. type InputService21TestShapeInputShape struct {
  3092. _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
  3093. RecursiveStruct *InputService21TestShapeRecursiveStructType `type:"structure"`
  3094. }
  3095. type InputService21TestShapeRecursiveStructType struct {
  3096. _ struct{} `type:"structure"`
  3097. NoRecurse *string `type:"string"`
  3098. RecursiveList []*InputService21TestShapeRecursiveStructType `type:"list"`
  3099. RecursiveMap map[string]*InputService21TestShapeRecursiveStructType `type:"map"`
  3100. RecursiveStruct *InputService21TestShapeRecursiveStructType `type:"structure"`
  3101. }
  3102. //The service client's operations are safe to be used concurrently.
  3103. // It is not safe to mutate any of the client's properties though.
  3104. type InputService22ProtocolTest struct {
  3105. *client.Client
  3106. }
  3107. // New creates a new instance of the InputService22ProtocolTest client with a session.
  3108. // If additional configuration is needed for the client instance use the optional
  3109. // aws.Config parameter to add your extra config.
  3110. //
  3111. // Example:
  3112. // // Create a InputService22ProtocolTest client from just a session.
  3113. // svc := inputservice22protocoltest.New(mySession)
  3114. //
  3115. // // Create a InputService22ProtocolTest client with additional configuration
  3116. // svc := inputservice22protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  3117. func NewInputService22ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService22ProtocolTest {
  3118. c := p.ClientConfig("inputservice22protocoltest", cfgs...)
  3119. return newInputService22ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  3120. }
  3121. // newClient creates, initializes and returns a new service client instance.
  3122. func newInputService22ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService22ProtocolTest {
  3123. svc := &InputService22ProtocolTest{
  3124. Client: client.New(
  3125. cfg,
  3126. metadata.ClientInfo{
  3127. ServiceName: "inputservice22protocoltest",
  3128. SigningRegion: signingRegion,
  3129. Endpoint: endpoint,
  3130. APIVersion: "2014-01-01",
  3131. },
  3132. handlers,
  3133. ),
  3134. }
  3135. // Handlers
  3136. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  3137. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  3138. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  3139. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  3140. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  3141. return svc
  3142. }
  3143. // newRequest creates a new request for a InputService22ProtocolTest operation and runs any
  3144. // custom request initialization.
  3145. func (c *InputService22ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  3146. req := c.NewRequest(op, params, data)
  3147. return req
  3148. }
  3149. const opInputService22TestCaseOperation1 = "OperationName"
  3150. // InputService22TestCaseOperation1Request generates a "aws/request.Request" representing the
  3151. // client's request for the InputService22TestCaseOperation1 operation. The "output" return
  3152. // value can be used to capture response data after the request's "Send" method
  3153. // is called.
  3154. //
  3155. // See InputService22TestCaseOperation1 for usage and error information.
  3156. //
  3157. // Creating a request object using this method should be used when you want to inject
  3158. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3159. // access properties on the request object before or after sending the request. If
  3160. // you just want the service response, call the InputService22TestCaseOperation1 method directly
  3161. // instead.
  3162. //
  3163. // Note: You must call the "Send" method on the returned request object in order
  3164. // to execute the request.
  3165. //
  3166. // // Example sending a request using the InputService22TestCaseOperation1Request method.
  3167. // req, resp := client.InputService22TestCaseOperation1Request(params)
  3168. //
  3169. // err := req.Send()
  3170. // if err == nil { // resp is now filled
  3171. // fmt.Println(resp)
  3172. // }
  3173. //
  3174. func (c *InputService22ProtocolTest) InputService22TestCaseOperation1Request(input *InputService22TestShapeInputService22TestCaseOperation1Input) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation1Output) {
  3175. op := &request.Operation{
  3176. Name: opInputService22TestCaseOperation1,
  3177. HTTPMethod: "POST",
  3178. HTTPPath: "/path",
  3179. }
  3180. if input == nil {
  3181. input = &InputService22TestShapeInputService22TestCaseOperation1Input{}
  3182. }
  3183. req = c.newRequest(op, input, output)
  3184. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  3185. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3186. output = &InputService22TestShapeInputService22TestCaseOperation1Output{}
  3187. req.Data = output
  3188. return
  3189. }
  3190. // InputService22TestCaseOperation1 API operation for .
  3191. //
  3192. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3193. // with awserr.Error's Code and Message methods to get detailed information about
  3194. // the error.
  3195. //
  3196. // See the AWS API reference guide for 's
  3197. // API operation InputService22TestCaseOperation1 for usage and error information.
  3198. func (c *InputService22ProtocolTest) InputService22TestCaseOperation1(input *InputService22TestShapeInputService22TestCaseOperation1Input) (*InputService22TestShapeInputService22TestCaseOperation1Output, error) {
  3199. req, out := c.InputService22TestCaseOperation1Request(input)
  3200. err := req.Send()
  3201. return out, err
  3202. }
  3203. type InputService22TestShapeInputService22TestCaseOperation1Input struct {
  3204. _ struct{} `type:"structure"`
  3205. TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp" timestampFormat:"rfc822"`
  3206. }
  3207. type InputService22TestShapeInputService22TestCaseOperation1Output struct {
  3208. _ struct{} `type:"structure"`
  3209. }
  3210. //The service client's operations are safe to be used concurrently.
  3211. // It is not safe to mutate any of the client's properties though.
  3212. type InputService23ProtocolTest struct {
  3213. *client.Client
  3214. }
  3215. // New creates a new instance of the InputService23ProtocolTest client with a session.
  3216. // If additional configuration is needed for the client instance use the optional
  3217. // aws.Config parameter to add your extra config.
  3218. //
  3219. // Example:
  3220. // // Create a InputService23ProtocolTest client from just a session.
  3221. // svc := inputservice23protocoltest.New(mySession)
  3222. //
  3223. // // Create a InputService23ProtocolTest client with additional configuration
  3224. // svc := inputservice23protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  3225. func NewInputService23ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService23ProtocolTest {
  3226. c := p.ClientConfig("inputservice23protocoltest", cfgs...)
  3227. return newInputService23ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  3228. }
  3229. // newClient creates, initializes and returns a new service client instance.
  3230. func newInputService23ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService23ProtocolTest {
  3231. svc := &InputService23ProtocolTest{
  3232. Client: client.New(
  3233. cfg,
  3234. metadata.ClientInfo{
  3235. ServiceName: "inputservice23protocoltest",
  3236. SigningRegion: signingRegion,
  3237. Endpoint: endpoint,
  3238. APIVersion: "2014-01-01",
  3239. },
  3240. handlers,
  3241. ),
  3242. }
  3243. // Handlers
  3244. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  3245. svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
  3246. svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
  3247. svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
  3248. svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
  3249. return svc
  3250. }
  3251. // newRequest creates a new request for a InputService23ProtocolTest operation and runs any
  3252. // custom request initialization.
  3253. func (c *InputService23ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  3254. req := c.NewRequest(op, params, data)
  3255. return req
  3256. }
  3257. const opInputService23TestCaseOperation1 = "OperationName"
  3258. // InputService23TestCaseOperation1Request generates a "aws/request.Request" representing the
  3259. // client's request for the InputService23TestCaseOperation1 operation. The "output" return
  3260. // value can be used to capture response data after the request's "Send" method
  3261. // is called.
  3262. //
  3263. // See InputService23TestCaseOperation1 for usage and error information.
  3264. //
  3265. // Creating a request object using this method should be used when you want to inject
  3266. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3267. // access properties on the request object before or after sending the request. If
  3268. // you just want the service response, call the InputService23TestCaseOperation1 method directly
  3269. // instead.
  3270. //
  3271. // Note: You must call the "Send" method on the returned request object in order
  3272. // to execute the request.
  3273. //
  3274. // // Example sending a request using the InputService23TestCaseOperation1Request method.
  3275. // req, resp := client.InputService23TestCaseOperation1Request(params)
  3276. //
  3277. // err := req.Send()
  3278. // if err == nil { // resp is now filled
  3279. // fmt.Println(resp)
  3280. // }
  3281. //
  3282. func (c *InputService23ProtocolTest) InputService23TestCaseOperation1Request(input *InputService23TestShapeInputShape) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation1Output) {
  3283. op := &request.Operation{
  3284. Name: opInputService23TestCaseOperation1,
  3285. HTTPMethod: "POST",
  3286. HTTPPath: "/path",
  3287. }
  3288. if input == nil {
  3289. input = &InputService23TestShapeInputShape{}
  3290. }
  3291. req = c.newRequest(op, input, output)
  3292. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  3293. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3294. output = &InputService23TestShapeInputService23TestCaseOperation1Output{}
  3295. req.Data = output
  3296. return
  3297. }
  3298. // InputService23TestCaseOperation1 API operation for .
  3299. //
  3300. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3301. // with awserr.Error's Code and Message methods to get detailed information about
  3302. // the error.
  3303. //
  3304. // See the AWS API reference guide for 's
  3305. // API operation InputService23TestCaseOperation1 for usage and error information.
  3306. func (c *InputService23ProtocolTest) InputService23TestCaseOperation1(input *InputService23TestShapeInputShape) (*InputService23TestShapeInputService23TestCaseOperation1Output, error) {
  3307. req, out := c.InputService23TestCaseOperation1Request(input)
  3308. err := req.Send()
  3309. return out, err
  3310. }
  3311. const opInputService23TestCaseOperation2 = "OperationName"
  3312. // InputService23TestCaseOperation2Request generates a "aws/request.Request" representing the
  3313. // client's request for the InputService23TestCaseOperation2 operation. The "output" return
  3314. // value can be used to capture response data after the request's "Send" method
  3315. // is called.
  3316. //
  3317. // See InputService23TestCaseOperation2 for usage and error information.
  3318. //
  3319. // Creating a request object using this method should be used when you want to inject
  3320. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3321. // access properties on the request object before or after sending the request. If
  3322. // you just want the service response, call the InputService23TestCaseOperation2 method directly
  3323. // instead.
  3324. //
  3325. // Note: You must call the "Send" method on the returned request object in order
  3326. // to execute the request.
  3327. //
  3328. // // Example sending a request using the InputService23TestCaseOperation2Request method.
  3329. // req, resp := client.InputService23TestCaseOperation2Request(params)
  3330. //
  3331. // err := req.Send()
  3332. // if err == nil { // resp is now filled
  3333. // fmt.Println(resp)
  3334. // }
  3335. //
  3336. func (c *InputService23ProtocolTest) InputService23TestCaseOperation2Request(input *InputService23TestShapeInputShape) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation2Output) {
  3337. op := &request.Operation{
  3338. Name: opInputService23TestCaseOperation2,
  3339. HTTPMethod: "POST",
  3340. HTTPPath: "/path",
  3341. }
  3342. if input == nil {
  3343. input = &InputService23TestShapeInputShape{}
  3344. }
  3345. req = c.newRequest(op, input, output)
  3346. req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
  3347. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3348. output = &InputService23TestShapeInputService23TestCaseOperation2Output{}
  3349. req.Data = output
  3350. return
  3351. }
  3352. // InputService23TestCaseOperation2 API operation for .
  3353. //
  3354. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3355. // with awserr.Error's Code and Message methods to get detailed information about
  3356. // the error.
  3357. //
  3358. // See the AWS API reference guide for 's
  3359. // API operation InputService23TestCaseOperation2 for usage and error information.
  3360. func (c *InputService23ProtocolTest) InputService23TestCaseOperation2(input *InputService23TestShapeInputShape) (*InputService23TestShapeInputService23TestCaseOperation2Output, error) {
  3361. req, out := c.InputService23TestCaseOperation2Request(input)
  3362. err := req.Send()
  3363. return out, err
  3364. }
  3365. type InputService23TestShapeInputService23TestCaseOperation1Output struct {
  3366. _ struct{} `type:"structure"`
  3367. }
  3368. type InputService23TestShapeInputService23TestCaseOperation2Output struct {
  3369. _ struct{} `type:"structure"`
  3370. }
  3371. type InputService23TestShapeInputShape struct {
  3372. _ struct{} `type:"structure"`
  3373. Token *string `type:"string" idempotencyToken:"true"`
  3374. }
  3375. //
  3376. // Tests begin here
  3377. //
  3378. func TestInputService1ProtocolTestBasicXMLSerializationCase1(t *testing.T) {
  3379. svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3380. input := &InputService1TestShapeInputShape{
  3381. Description: aws.String("bar"),
  3382. Name: aws.String("foo"),
  3383. }
  3384. req, _ := svc.InputService1TestCaseOperation1Request(input)
  3385. r := req.HTTPRequest
  3386. // build request
  3387. restxml.Build(req)
  3388. assert.NoError(t, req.Error)
  3389. // assert body
  3390. assert.NotNil(t, r.Body)
  3391. body := util.SortXML(r.Body)
  3392. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><Description xmlns="https://foo/">bar</Description><Name xmlns="https://foo/">foo</Name></OperationRequest>`, util.Trim(string(body)), InputService1TestShapeInputShape{})
  3393. // assert URL
  3394. awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
  3395. // assert headers
  3396. }
  3397. func TestInputService1ProtocolTestBasicXMLSerializationCase2(t *testing.T) {
  3398. svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3399. input := &InputService1TestShapeInputShape{
  3400. Description: aws.String("bar"),
  3401. Name: aws.String("foo"),
  3402. }
  3403. req, _ := svc.InputService1TestCaseOperation2Request(input)
  3404. r := req.HTTPRequest
  3405. // build request
  3406. restxml.Build(req)
  3407. assert.NoError(t, req.Error)
  3408. // assert body
  3409. assert.NotNil(t, r.Body)
  3410. body := util.SortXML(r.Body)
  3411. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><Description xmlns="https://foo/">bar</Description><Name xmlns="https://foo/">foo</Name></OperationRequest>`, util.Trim(string(body)), InputService1TestShapeInputShape{})
  3412. // assert URL
  3413. awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
  3414. // assert headers
  3415. }
  3416. func TestInputService1ProtocolTestBasicXMLSerializationCase3(t *testing.T) {
  3417. svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3418. input := &InputService1TestShapeInputService1TestCaseOperation3Input{}
  3419. req, _ := svc.InputService1TestCaseOperation3Request(input)
  3420. r := req.HTTPRequest
  3421. // build request
  3422. restxml.Build(req)
  3423. assert.NoError(t, req.Error)
  3424. // assert URL
  3425. awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
  3426. // assert headers
  3427. }
  3428. func TestInputService2ProtocolTestSerializeOtherScalarTypesCase1(t *testing.T) {
  3429. svc := NewInputService2ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3430. input := &InputService2TestShapeInputService2TestCaseOperation1Input{
  3431. First: aws.Bool(true),
  3432. Fourth: aws.Int64(3),
  3433. Second: aws.Bool(false),
  3434. Third: aws.Float64(1.2),
  3435. }
  3436. req, _ := svc.InputService2TestCaseOperation1Request(input)
  3437. r := req.HTTPRequest
  3438. // build request
  3439. restxml.Build(req)
  3440. assert.NoError(t, req.Error)
  3441. // assert body
  3442. assert.NotNil(t, r.Body)
  3443. body := util.SortXML(r.Body)
  3444. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><First xmlns="https://foo/">true</First><Fourth xmlns="https://foo/">3</Fourth><Second xmlns="https://foo/">false</Second><Third xmlns="https://foo/">1.2</Third></OperationRequest>`, util.Trim(string(body)), InputService2TestShapeInputService2TestCaseOperation1Input{})
  3445. // assert URL
  3446. awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
  3447. // assert headers
  3448. }
  3449. func TestInputService3ProtocolTestNestedStructuresCase1(t *testing.T) {
  3450. svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3451. input := &InputService3TestShapeInputShape{
  3452. Description: aws.String("baz"),
  3453. SubStructure: &InputService3TestShapeSubStructure{
  3454. Bar: aws.String("b"),
  3455. Foo: aws.String("a"),
  3456. },
  3457. }
  3458. req, _ := svc.InputService3TestCaseOperation1Request(input)
  3459. r := req.HTTPRequest
  3460. // build request
  3461. restxml.Build(req)
  3462. assert.NoError(t, req.Error)
  3463. // assert body
  3464. assert.NotNil(t, r.Body)
  3465. body := util.SortXML(r.Body)
  3466. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><Description xmlns="https://foo/">baz</Description><SubStructure xmlns="https://foo/"><Bar xmlns="https://foo/">b</Bar><Foo xmlns="https://foo/">a</Foo></SubStructure></OperationRequest>`, util.Trim(string(body)), InputService3TestShapeInputShape{})
  3467. // assert URL
  3468. awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
  3469. // assert headers
  3470. }
  3471. func TestInputService3ProtocolTestNestedStructuresCase2(t *testing.T) {
  3472. svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3473. input := &InputService3TestShapeInputShape{
  3474. Description: aws.String("baz"),
  3475. SubStructure: &InputService3TestShapeSubStructure{
  3476. Foo: aws.String("a"),
  3477. },
  3478. }
  3479. req, _ := svc.InputService3TestCaseOperation2Request(input)
  3480. r := req.HTTPRequest
  3481. // build request
  3482. restxml.Build(req)
  3483. assert.NoError(t, req.Error)
  3484. // assert body
  3485. assert.NotNil(t, r.Body)
  3486. body := util.SortXML(r.Body)
  3487. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><Description xmlns="https://foo/">baz</Description><SubStructure xmlns="https://foo/"><Foo xmlns="https://foo/">a</Foo></SubStructure></OperationRequest>`, util.Trim(string(body)), InputService3TestShapeInputShape{})
  3488. // assert URL
  3489. awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
  3490. // assert headers
  3491. }
  3492. func TestInputService4ProtocolTestNestedStructuresCase1(t *testing.T) {
  3493. svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3494. input := &InputService4TestShapeInputService4TestCaseOperation1Input{
  3495. Description: aws.String("baz"),
  3496. SubStructure: &InputService4TestShapeSubStructure{},
  3497. }
  3498. req, _ := svc.InputService4TestCaseOperation1Request(input)
  3499. r := req.HTTPRequest
  3500. // build request
  3501. restxml.Build(req)
  3502. assert.NoError(t, req.Error)
  3503. // assert body
  3504. assert.NotNil(t, r.Body)
  3505. body := util.SortXML(r.Body)
  3506. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><Description xmlns="https://foo/">baz</Description><SubStructure xmlns="https://foo/"></SubStructure></OperationRequest>`, util.Trim(string(body)), InputService4TestShapeInputService4TestCaseOperation1Input{})
  3507. // assert URL
  3508. awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
  3509. // assert headers
  3510. }
  3511. func TestInputService5ProtocolTestNonFlattenedListsCase1(t *testing.T) {
  3512. svc := NewInputService5ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3513. input := &InputService5TestShapeInputService5TestCaseOperation1Input{
  3514. ListParam: []*string{
  3515. aws.String("one"),
  3516. aws.String("two"),
  3517. aws.String("three"),
  3518. },
  3519. }
  3520. req, _ := svc.InputService5TestCaseOperation1Request(input)
  3521. r := req.HTTPRequest
  3522. // build request
  3523. restxml.Build(req)
  3524. assert.NoError(t, req.Error)
  3525. // assert body
  3526. assert.NotNil(t, r.Body)
  3527. body := util.SortXML(r.Body)
  3528. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><ListParam xmlns="https://foo/"><member xmlns="https://foo/">one</member><member xmlns="https://foo/">two</member><member xmlns="https://foo/">three</member></ListParam></OperationRequest>`, util.Trim(string(body)), InputService5TestShapeInputService5TestCaseOperation1Input{})
  3529. // assert URL
  3530. awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
  3531. // assert headers
  3532. }
  3533. func TestInputService6ProtocolTestNonFlattenedListsWithLocationNameCase1(t *testing.T) {
  3534. svc := NewInputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3535. input := &InputService6TestShapeInputService6TestCaseOperation1Input{
  3536. ListParam: []*string{
  3537. aws.String("one"),
  3538. aws.String("two"),
  3539. aws.String("three"),
  3540. },
  3541. }
  3542. req, _ := svc.InputService6TestCaseOperation1Request(input)
  3543. r := req.HTTPRequest
  3544. // build request
  3545. restxml.Build(req)
  3546. assert.NoError(t, req.Error)
  3547. // assert body
  3548. assert.NotNil(t, r.Body)
  3549. body := util.SortXML(r.Body)
  3550. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><AlternateName xmlns="https://foo/"><NotMember xmlns="https://foo/">one</NotMember><NotMember xmlns="https://foo/">two</NotMember><NotMember xmlns="https://foo/">three</NotMember></AlternateName></OperationRequest>`, util.Trim(string(body)), InputService6TestShapeInputService6TestCaseOperation1Input{})
  3551. // assert URL
  3552. awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
  3553. // assert headers
  3554. }
  3555. func TestInputService7ProtocolTestFlattenedListsCase1(t *testing.T) {
  3556. svc := NewInputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3557. input := &InputService7TestShapeInputService7TestCaseOperation1Input{
  3558. ListParam: []*string{
  3559. aws.String("one"),
  3560. aws.String("two"),
  3561. aws.String("three"),
  3562. },
  3563. }
  3564. req, _ := svc.InputService7TestCaseOperation1Request(input)
  3565. r := req.HTTPRequest
  3566. // build request
  3567. restxml.Build(req)
  3568. assert.NoError(t, req.Error)
  3569. // assert body
  3570. assert.NotNil(t, r.Body)
  3571. body := util.SortXML(r.Body)
  3572. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><ListParam xmlns="https://foo/">one</ListParam><ListParam xmlns="https://foo/">two</ListParam><ListParam xmlns="https://foo/">three</ListParam></OperationRequest>`, util.Trim(string(body)), InputService7TestShapeInputService7TestCaseOperation1Input{})
  3573. // assert URL
  3574. awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
  3575. // assert headers
  3576. }
  3577. func TestInputService8ProtocolTestFlattenedListsWithLocationNameCase1(t *testing.T) {
  3578. svc := NewInputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3579. input := &InputService8TestShapeInputService8TestCaseOperation1Input{
  3580. ListParam: []*string{
  3581. aws.String("one"),
  3582. aws.String("two"),
  3583. aws.String("three"),
  3584. },
  3585. }
  3586. req, _ := svc.InputService8TestCaseOperation1Request(input)
  3587. r := req.HTTPRequest
  3588. // build request
  3589. restxml.Build(req)
  3590. assert.NoError(t, req.Error)
  3591. // assert body
  3592. assert.NotNil(t, r.Body)
  3593. body := util.SortXML(r.Body)
  3594. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><item xmlns="https://foo/">one</item><item xmlns="https://foo/">two</item><item xmlns="https://foo/">three</item></OperationRequest>`, util.Trim(string(body)), InputService8TestShapeInputService8TestCaseOperation1Input{})
  3595. // assert URL
  3596. awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
  3597. // assert headers
  3598. }
  3599. func TestInputService9ProtocolTestListOfStructuresCase1(t *testing.T) {
  3600. svc := NewInputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3601. input := &InputService9TestShapeInputService9TestCaseOperation1Input{
  3602. ListParam: []*InputService9TestShapeSingleFieldStruct{
  3603. {
  3604. Element: aws.String("one"),
  3605. },
  3606. {
  3607. Element: aws.String("two"),
  3608. },
  3609. {
  3610. Element: aws.String("three"),
  3611. },
  3612. },
  3613. }
  3614. req, _ := svc.InputService9TestCaseOperation1Request(input)
  3615. r := req.HTTPRequest
  3616. // build request
  3617. restxml.Build(req)
  3618. assert.NoError(t, req.Error)
  3619. // assert body
  3620. assert.NotNil(t, r.Body)
  3621. body := util.SortXML(r.Body)
  3622. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><item xmlns="https://foo/"><value xmlns="https://foo/">one</value></item><item xmlns="https://foo/"><value xmlns="https://foo/">two</value></item><item xmlns="https://foo/"><value xmlns="https://foo/">three</value></item></OperationRequest>`, util.Trim(string(body)), InputService9TestShapeInputService9TestCaseOperation1Input{})
  3623. // assert URL
  3624. awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
  3625. // assert headers
  3626. }
  3627. func TestInputService10ProtocolTestBlobAndTimestampShapesCase1(t *testing.T) {
  3628. svc := NewInputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3629. input := &InputService10TestShapeInputService10TestCaseOperation1Input{
  3630. StructureParam: &InputService10TestShapeStructureShape{
  3631. B: []byte("foo"),
  3632. T: aws.Time(time.Unix(1422172800, 0)),
  3633. },
  3634. }
  3635. req, _ := svc.InputService10TestCaseOperation1Request(input)
  3636. r := req.HTTPRequest
  3637. // build request
  3638. restxml.Build(req)
  3639. assert.NoError(t, req.Error)
  3640. // assert body
  3641. assert.NotNil(t, r.Body)
  3642. body := util.SortXML(r.Body)
  3643. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><StructureParam xmlns="https://foo/"><b xmlns="https://foo/">Zm9v</b><t xmlns="https://foo/">2015-01-25T08:00:00Z</t></StructureParam></OperationRequest>`, util.Trim(string(body)), InputService10TestShapeInputService10TestCaseOperation1Input{})
  3644. // assert URL
  3645. awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
  3646. // assert headers
  3647. }
  3648. func TestInputService11ProtocolTestHeaderMapsCase1(t *testing.T) {
  3649. svc := NewInputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3650. input := &InputService11TestShapeInputService11TestCaseOperation1Input{
  3651. Foo: map[string]*string{
  3652. "a": aws.String("b"),
  3653. "c": aws.String("d"),
  3654. },
  3655. }
  3656. req, _ := svc.InputService11TestCaseOperation1Request(input)
  3657. r := req.HTTPRequest
  3658. // build request
  3659. restxml.Build(req)
  3660. assert.NoError(t, req.Error)
  3661. // assert URL
  3662. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3663. // assert headers
  3664. assert.Equal(t, "b", r.Header.Get("x-foo-a"))
  3665. assert.Equal(t, "d", r.Header.Get("x-foo-c"))
  3666. }
  3667. func TestInputService12ProtocolTestQuerystringListOfStringsCase1(t *testing.T) {
  3668. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3669. input := &InputService12TestShapeInputService12TestCaseOperation1Input{
  3670. Items: []*string{
  3671. aws.String("value1"),
  3672. aws.String("value2"),
  3673. },
  3674. }
  3675. req, _ := svc.InputService12TestCaseOperation1Request(input)
  3676. r := req.HTTPRequest
  3677. // build request
  3678. restxml.Build(req)
  3679. assert.NoError(t, req.Error)
  3680. // assert URL
  3681. awstesting.AssertURL(t, "https://test/path?item=value1&item=value2", r.URL.String())
  3682. // assert headers
  3683. }
  3684. func TestInputService13ProtocolTestStringToStringMapsInQuerystringCase1(t *testing.T) {
  3685. svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3686. input := &InputService13TestShapeInputService13TestCaseOperation1Input{
  3687. PipelineId: aws.String("foo"),
  3688. QueryDoc: map[string]*string{
  3689. "bar": aws.String("baz"),
  3690. "fizz": aws.String("buzz"),
  3691. },
  3692. }
  3693. req, _ := svc.InputService13TestCaseOperation1Request(input)
  3694. r := req.HTTPRequest
  3695. // build request
  3696. restxml.Build(req)
  3697. assert.NoError(t, req.Error)
  3698. // assert URL
  3699. awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?bar=baz&fizz=buzz", r.URL.String())
  3700. // assert headers
  3701. }
  3702. func TestInputService14ProtocolTestStringToStringListMapsInQuerystringCase1(t *testing.T) {
  3703. svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3704. input := &InputService14TestShapeInputService14TestCaseOperation1Input{
  3705. PipelineId: aws.String("id"),
  3706. QueryDoc: map[string][]*string{
  3707. "fizz": {
  3708. aws.String("buzz"),
  3709. aws.String("pop"),
  3710. },
  3711. "foo": {
  3712. aws.String("bar"),
  3713. aws.String("baz"),
  3714. },
  3715. },
  3716. }
  3717. req, _ := svc.InputService14TestCaseOperation1Request(input)
  3718. r := req.HTTPRequest
  3719. // build request
  3720. restxml.Build(req)
  3721. assert.NoError(t, req.Error)
  3722. // assert URL
  3723. awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/id?foo=bar&foo=baz&fizz=buzz&fizz=pop", r.URL.String())
  3724. // assert headers
  3725. }
  3726. func TestInputService15ProtocolTestStringPayloadCase1(t *testing.T) {
  3727. svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3728. input := &InputService15TestShapeInputService15TestCaseOperation1Input{
  3729. Foo: aws.String("bar"),
  3730. }
  3731. req, _ := svc.InputService15TestCaseOperation1Request(input)
  3732. r := req.HTTPRequest
  3733. // build request
  3734. restxml.Build(req)
  3735. assert.NoError(t, req.Error)
  3736. // assert body
  3737. assert.NotNil(t, r.Body)
  3738. body := util.SortXML(r.Body)
  3739. assert.Equal(t, `bar`, util.Trim(string(body)))
  3740. // assert URL
  3741. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3742. // assert headers
  3743. }
  3744. func TestInputService16ProtocolTestBlobPayloadCase1(t *testing.T) {
  3745. svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3746. input := &InputService16TestShapeInputShape{
  3747. Foo: []byte("bar"),
  3748. }
  3749. req, _ := svc.InputService16TestCaseOperation1Request(input)
  3750. r := req.HTTPRequest
  3751. // build request
  3752. restxml.Build(req)
  3753. assert.NoError(t, req.Error)
  3754. // assert body
  3755. assert.NotNil(t, r.Body)
  3756. body := util.SortXML(r.Body)
  3757. assert.Equal(t, `bar`, util.Trim(string(body)))
  3758. // assert URL
  3759. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3760. // assert headers
  3761. }
  3762. func TestInputService16ProtocolTestBlobPayloadCase2(t *testing.T) {
  3763. svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3764. input := &InputService16TestShapeInputShape{}
  3765. req, _ := svc.InputService16TestCaseOperation2Request(input)
  3766. r := req.HTTPRequest
  3767. // build request
  3768. restxml.Build(req)
  3769. assert.NoError(t, req.Error)
  3770. // assert URL
  3771. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3772. // assert headers
  3773. }
  3774. func TestInputService17ProtocolTestStructurePayloadCase1(t *testing.T) {
  3775. svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3776. input := &InputService17TestShapeInputShape{
  3777. Foo: &InputService17TestShapeFooShape{
  3778. Baz: aws.String("bar"),
  3779. },
  3780. }
  3781. req, _ := svc.InputService17TestCaseOperation1Request(input)
  3782. r := req.HTTPRequest
  3783. // build request
  3784. restxml.Build(req)
  3785. assert.NoError(t, req.Error)
  3786. // assert body
  3787. assert.NotNil(t, r.Body)
  3788. body := util.SortXML(r.Body)
  3789. awstesting.AssertXML(t, `<foo><baz>bar</baz></foo>`, util.Trim(string(body)), InputService17TestShapeInputShape{})
  3790. // assert URL
  3791. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3792. // assert headers
  3793. }
  3794. func TestInputService17ProtocolTestStructurePayloadCase2(t *testing.T) {
  3795. svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3796. input := &InputService17TestShapeInputShape{}
  3797. req, _ := svc.InputService17TestCaseOperation2Request(input)
  3798. r := req.HTTPRequest
  3799. // build request
  3800. restxml.Build(req)
  3801. assert.NoError(t, req.Error)
  3802. // assert URL
  3803. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3804. // assert headers
  3805. }
  3806. func TestInputService17ProtocolTestStructurePayloadCase3(t *testing.T) {
  3807. svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3808. input := &InputService17TestShapeInputShape{
  3809. Foo: &InputService17TestShapeFooShape{},
  3810. }
  3811. req, _ := svc.InputService17TestCaseOperation3Request(input)
  3812. r := req.HTTPRequest
  3813. // build request
  3814. restxml.Build(req)
  3815. assert.NoError(t, req.Error)
  3816. // assert body
  3817. assert.NotNil(t, r.Body)
  3818. body := util.SortXML(r.Body)
  3819. awstesting.AssertXML(t, `<foo></foo>`, util.Trim(string(body)), InputService17TestShapeInputShape{})
  3820. // assert URL
  3821. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3822. // assert headers
  3823. }
  3824. func TestInputService17ProtocolTestStructurePayloadCase4(t *testing.T) {
  3825. svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3826. input := &InputService17TestShapeInputShape{}
  3827. req, _ := svc.InputService17TestCaseOperation4Request(input)
  3828. r := req.HTTPRequest
  3829. // build request
  3830. restxml.Build(req)
  3831. assert.NoError(t, req.Error)
  3832. // assert URL
  3833. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3834. // assert headers
  3835. }
  3836. func TestInputService18ProtocolTestXMLAttributeCase1(t *testing.T) {
  3837. svc := NewInputService18ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3838. input := &InputService18TestShapeInputService18TestCaseOperation1Input{
  3839. Grant: &InputService18TestShapeGrant{
  3840. Grantee: &InputService18TestShapeGrantee{
  3841. EmailAddress: aws.String("foo@example.com"),
  3842. Type: aws.String("CanonicalUser"),
  3843. },
  3844. },
  3845. }
  3846. req, _ := svc.InputService18TestCaseOperation1Request(input)
  3847. r := req.HTTPRequest
  3848. // build request
  3849. restxml.Build(req)
  3850. assert.NoError(t, req.Error)
  3851. // assert body
  3852. assert.NotNil(t, r.Body)
  3853. body := util.SortXML(r.Body)
  3854. awstesting.AssertXML(t, `<Grant xmlns:_xmlns="xmlns" _xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:XMLSchema-instance="http://www.w3.org/2001/XMLSchema-instance" XMLSchema-instance:type="CanonicalUser"><Grantee><EmailAddress>foo@example.com</EmailAddress></Grantee></Grant>`, util.Trim(string(body)), InputService18TestShapeInputService18TestCaseOperation1Input{})
  3855. // assert URL
  3856. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3857. // assert headers
  3858. }
  3859. func TestInputService19ProtocolTestGreedyKeysCase1(t *testing.T) {
  3860. svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3861. input := &InputService19TestShapeInputService19TestCaseOperation1Input{
  3862. Bucket: aws.String("my/bucket"),
  3863. Key: aws.String("testing /123"),
  3864. }
  3865. req, _ := svc.InputService19TestCaseOperation1Request(input)
  3866. r := req.HTTPRequest
  3867. // build request
  3868. restxml.Build(req)
  3869. assert.NoError(t, req.Error)
  3870. // assert URL
  3871. awstesting.AssertURL(t, "https://test/my%2Fbucket/testing%20/123", r.URL.String())
  3872. // assert headers
  3873. }
  3874. func TestInputService20ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) {
  3875. svc := NewInputService20ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3876. input := &InputService20TestShapeInputShape{}
  3877. req, _ := svc.InputService20TestCaseOperation1Request(input)
  3878. r := req.HTTPRequest
  3879. // build request
  3880. restxml.Build(req)
  3881. assert.NoError(t, req.Error)
  3882. // assert URL
  3883. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  3884. // assert headers
  3885. }
  3886. func TestInputService20ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) {
  3887. svc := NewInputService20ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3888. input := &InputService20TestShapeInputShape{
  3889. Foo: aws.String(""),
  3890. }
  3891. req, _ := svc.InputService20TestCaseOperation2Request(input)
  3892. r := req.HTTPRequest
  3893. // build request
  3894. restxml.Build(req)
  3895. assert.NoError(t, req.Error)
  3896. // assert URL
  3897. awstesting.AssertURL(t, "https://test/path?abc=mno&param-name=", r.URL.String())
  3898. // assert headers
  3899. }
  3900. func TestInputService21ProtocolTestRecursiveShapesCase1(t *testing.T) {
  3901. svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3902. input := &InputService21TestShapeInputShape{
  3903. RecursiveStruct: &InputService21TestShapeRecursiveStructType{
  3904. NoRecurse: aws.String("foo"),
  3905. },
  3906. }
  3907. req, _ := svc.InputService21TestCaseOperation1Request(input)
  3908. r := req.HTTPRequest
  3909. // build request
  3910. restxml.Build(req)
  3911. assert.NoError(t, req.Error)
  3912. // assert body
  3913. assert.NotNil(t, r.Body)
  3914. body := util.SortXML(r.Body)
  3915. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><NoRecurse xmlns="https://foo/">foo</NoRecurse></RecursiveStruct></OperationRequest>`, util.Trim(string(body)), InputService21TestShapeInputShape{})
  3916. // assert URL
  3917. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  3918. // assert headers
  3919. }
  3920. func TestInputService21ProtocolTestRecursiveShapesCase2(t *testing.T) {
  3921. svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3922. input := &InputService21TestShapeInputShape{
  3923. RecursiveStruct: &InputService21TestShapeRecursiveStructType{
  3924. RecursiveStruct: &InputService21TestShapeRecursiveStructType{
  3925. NoRecurse: aws.String("foo"),
  3926. },
  3927. },
  3928. }
  3929. req, _ := svc.InputService21TestCaseOperation2Request(input)
  3930. r := req.HTTPRequest
  3931. // build request
  3932. restxml.Build(req)
  3933. assert.NoError(t, req.Error)
  3934. // assert body
  3935. assert.NotNil(t, r.Body)
  3936. body := util.SortXML(r.Body)
  3937. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><NoRecurse xmlns="https://foo/">foo</NoRecurse></RecursiveStruct></RecursiveStruct></OperationRequest>`, util.Trim(string(body)), InputService21TestShapeInputShape{})
  3938. // assert URL
  3939. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  3940. // assert headers
  3941. }
  3942. func TestInputService21ProtocolTestRecursiveShapesCase3(t *testing.T) {
  3943. svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3944. input := &InputService21TestShapeInputShape{
  3945. RecursiveStruct: &InputService21TestShapeRecursiveStructType{
  3946. RecursiveStruct: &InputService21TestShapeRecursiveStructType{
  3947. RecursiveStruct: &InputService21TestShapeRecursiveStructType{
  3948. RecursiveStruct: &InputService21TestShapeRecursiveStructType{
  3949. NoRecurse: aws.String("foo"),
  3950. },
  3951. },
  3952. },
  3953. },
  3954. }
  3955. req, _ := svc.InputService21TestCaseOperation3Request(input)
  3956. r := req.HTTPRequest
  3957. // build request
  3958. restxml.Build(req)
  3959. assert.NoError(t, req.Error)
  3960. // assert body
  3961. assert.NotNil(t, r.Body)
  3962. body := util.SortXML(r.Body)
  3963. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><NoRecurse xmlns="https://foo/">foo</NoRecurse></RecursiveStruct></RecursiveStruct></RecursiveStruct></RecursiveStruct></OperationRequest>`, util.Trim(string(body)), InputService21TestShapeInputShape{})
  3964. // assert URL
  3965. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  3966. // assert headers
  3967. }
  3968. func TestInputService21ProtocolTestRecursiveShapesCase4(t *testing.T) {
  3969. svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3970. input := &InputService21TestShapeInputShape{
  3971. RecursiveStruct: &InputService21TestShapeRecursiveStructType{
  3972. RecursiveList: []*InputService21TestShapeRecursiveStructType{
  3973. {
  3974. NoRecurse: aws.String("foo"),
  3975. },
  3976. {
  3977. NoRecurse: aws.String("bar"),
  3978. },
  3979. },
  3980. },
  3981. }
  3982. req, _ := svc.InputService21TestCaseOperation4Request(input)
  3983. r := req.HTTPRequest
  3984. // build request
  3985. restxml.Build(req)
  3986. assert.NoError(t, req.Error)
  3987. // assert body
  3988. assert.NotNil(t, r.Body)
  3989. body := util.SortXML(r.Body)
  3990. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveList xmlns="https://foo/"><member xmlns="https://foo/"><NoRecurse xmlns="https://foo/">foo</NoRecurse></member><member xmlns="https://foo/"><NoRecurse xmlns="https://foo/">bar</NoRecurse></member></RecursiveList></RecursiveStruct></OperationRequest>`, util.Trim(string(body)), InputService21TestShapeInputShape{})
  3991. // assert URL
  3992. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  3993. // assert headers
  3994. }
  3995. func TestInputService21ProtocolTestRecursiveShapesCase5(t *testing.T) {
  3996. svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3997. input := &InputService21TestShapeInputShape{
  3998. RecursiveStruct: &InputService21TestShapeRecursiveStructType{
  3999. RecursiveList: []*InputService21TestShapeRecursiveStructType{
  4000. {
  4001. NoRecurse: aws.String("foo"),
  4002. },
  4003. {
  4004. RecursiveStruct: &InputService21TestShapeRecursiveStructType{
  4005. NoRecurse: aws.String("bar"),
  4006. },
  4007. },
  4008. },
  4009. },
  4010. }
  4011. req, _ := svc.InputService21TestCaseOperation5Request(input)
  4012. r := req.HTTPRequest
  4013. // build request
  4014. restxml.Build(req)
  4015. assert.NoError(t, req.Error)
  4016. // assert body
  4017. assert.NotNil(t, r.Body)
  4018. body := util.SortXML(r.Body)
  4019. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveList xmlns="https://foo/"><member xmlns="https://foo/"><NoRecurse xmlns="https://foo/">foo</NoRecurse></member><member xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><NoRecurse xmlns="https://foo/">bar</NoRecurse></RecursiveStruct></member></RecursiveList></RecursiveStruct></OperationRequest>`, util.Trim(string(body)), InputService21TestShapeInputShape{})
  4020. // assert URL
  4021. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  4022. // assert headers
  4023. }
  4024. func TestInputService21ProtocolTestRecursiveShapesCase6(t *testing.T) {
  4025. svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  4026. input := &InputService21TestShapeInputShape{
  4027. RecursiveStruct: &InputService21TestShapeRecursiveStructType{
  4028. RecursiveMap: map[string]*InputService21TestShapeRecursiveStructType{
  4029. "bar": {
  4030. NoRecurse: aws.String("bar"),
  4031. },
  4032. "foo": {
  4033. NoRecurse: aws.String("foo"),
  4034. },
  4035. },
  4036. },
  4037. }
  4038. req, _ := svc.InputService21TestCaseOperation6Request(input)
  4039. r := req.HTTPRequest
  4040. // build request
  4041. restxml.Build(req)
  4042. assert.NoError(t, req.Error)
  4043. // assert body
  4044. assert.NotNil(t, r.Body)
  4045. body := util.SortXML(r.Body)
  4046. awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveMap xmlns="https://foo/"><entry xmlns="https://foo/"><key xmlns="https://foo/">foo</key><value xmlns="https://foo/"><NoRecurse xmlns="https://foo/">foo</NoRecurse></value></entry><entry xmlns="https://foo/"><key xmlns="https://foo/">bar</key><value xmlns="https://foo/"><NoRecurse xmlns="https://foo/">bar</NoRecurse></value></entry></RecursiveMap></RecursiveStruct></OperationRequest>`, util.Trim(string(body)), InputService21TestShapeInputShape{})
  4047. // assert URL
  4048. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  4049. // assert headers
  4050. }
  4051. func TestInputService22ProtocolTestTimestampInHeaderCase1(t *testing.T) {
  4052. svc := NewInputService22ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  4053. input := &InputService22TestShapeInputService22TestCaseOperation1Input{
  4054. TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)),
  4055. }
  4056. req, _ := svc.InputService22TestCaseOperation1Request(input)
  4057. r := req.HTTPRequest
  4058. // build request
  4059. restxml.Build(req)
  4060. assert.NoError(t, req.Error)
  4061. // assert URL
  4062. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  4063. // assert headers
  4064. assert.Equal(t, "Sun, 25 Jan 2015 08:00:00 GMT", r.Header.Get("x-amz-timearg"))
  4065. }
  4066. func TestInputService23ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) {
  4067. svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  4068. input := &InputService23TestShapeInputShape{
  4069. Token: aws.String("abc123"),
  4070. }
  4071. req, _ := svc.InputService23TestCaseOperation1Request(input)
  4072. r := req.HTTPRequest
  4073. // build request
  4074. restxml.Build(req)
  4075. assert.NoError(t, req.Error)
  4076. // assert body
  4077. assert.NotNil(t, r.Body)
  4078. body := util.SortXML(r.Body)
  4079. awstesting.AssertXML(t, `<Token>abc123</Token>`, util.Trim(string(body)), InputService23TestShapeInputShape{})
  4080. // assert URL
  4081. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  4082. // assert headers
  4083. }
  4084. func TestInputService23ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) {
  4085. svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  4086. input := &InputService23TestShapeInputShape{}
  4087. req, _ := svc.InputService23TestCaseOperation2Request(input)
  4088. r := req.HTTPRequest
  4089. // build request
  4090. restxml.Build(req)
  4091. assert.NoError(t, req.Error)
  4092. // assert body
  4093. assert.NotNil(t, r.Body)
  4094. body := util.SortXML(r.Body)
  4095. awstesting.AssertXML(t, `<Token>00000000-0000-4000-8000-000000000000</Token>`, util.Trim(string(body)), InputService23TestShapeInputShape{})
  4096. // assert URL
  4097. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  4098. // assert headers
  4099. }