build_test.go 167 KB

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