build_test.go 130 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522
  1. package restjson_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/restjson"
  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(restjson.BuildHandler)
  77. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  78. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  79. svc.Handlers.UnmarshalError.PushBackNamed(restjson.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 *InputService1TestShapeInputService1TestCaseOperation1Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) {
  112. op := &request.Operation{
  113. Name: opInputService1TestCaseOperation1,
  114. HTTPMethod: "GET",
  115. HTTPPath: "/2014-01-01/jobs",
  116. }
  117. if input == nil {
  118. input = &InputService1TestShapeInputService1TestCaseOperation1Input{}
  119. }
  120. req = c.newRequest(op, input, output)
  121. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  122. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  123. output = &InputService1TestShapeInputService1TestCaseOperation1Output{}
  124. req.Data = output
  125. return
  126. }
  127. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) {
  128. req, out := c.InputService1TestCaseOperation1Request(input)
  129. err := req.Send()
  130. return out, err
  131. }
  132. type InputService1TestShapeInputService1TestCaseOperation1Input struct {
  133. _ struct{} `type:"structure"`
  134. }
  135. type InputService1TestShapeInputService1TestCaseOperation1Output struct {
  136. _ struct{} `type:"structure"`
  137. }
  138. //The service client's operations are safe to be used concurrently.
  139. // It is not safe to mutate any of the client's properties though.
  140. type InputService2ProtocolTest struct {
  141. *client.Client
  142. }
  143. // New creates a new instance of the InputService2ProtocolTest client with a session.
  144. // If additional configuration is needed for the client instance use the optional
  145. // aws.Config parameter to add your extra config.
  146. //
  147. // Example:
  148. // // Create a InputService2ProtocolTest client from just a session.
  149. // svc := inputservice2protocoltest.New(mySession)
  150. //
  151. // // Create a InputService2ProtocolTest client with additional configuration
  152. // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  153. func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest {
  154. c := p.ClientConfig("inputservice2protocoltest", cfgs...)
  155. return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  156. }
  157. // newClient creates, initializes and returns a new service client instance.
  158. func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest {
  159. svc := &InputService2ProtocolTest{
  160. Client: client.New(
  161. cfg,
  162. metadata.ClientInfo{
  163. ServiceName: "inputservice2protocoltest",
  164. SigningRegion: signingRegion,
  165. Endpoint: endpoint,
  166. APIVersion: "2014-01-01",
  167. },
  168. handlers,
  169. ),
  170. }
  171. // Handlers
  172. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  173. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  174. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  175. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  176. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  177. return svc
  178. }
  179. // newRequest creates a new request for a InputService2ProtocolTest operation and runs any
  180. // custom request initialization.
  181. func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  182. req := c.NewRequest(op, params, data)
  183. return req
  184. }
  185. const opInputService2TestCaseOperation1 = "OperationName"
  186. // InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the
  187. // client's request for the InputService2TestCaseOperation1 operation. The "output" return
  188. // value can be used to capture response data after the request's "Send" method
  189. // is called.
  190. //
  191. // Creating a request object using this method should be used when you want to inject
  192. // custom logic into the request's lifecycle using a custom handler, or if you want to
  193. // access properties on the request object before or after sending the request. If
  194. // you just want the service response, call the InputService2TestCaseOperation1 method directly
  195. // instead.
  196. //
  197. // Note: You must call the "Send" method on the returned request object in order
  198. // to execute the request.
  199. //
  200. // // Example sending a request using the InputService2TestCaseOperation1Request method.
  201. // req, resp := client.InputService2TestCaseOperation1Request(params)
  202. //
  203. // err := req.Send()
  204. // if err == nil { // resp is now filled
  205. // fmt.Println(resp)
  206. // }
  207. //
  208. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) {
  209. op := &request.Operation{
  210. Name: opInputService2TestCaseOperation1,
  211. HTTPMethod: "GET",
  212. HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
  213. }
  214. if input == nil {
  215. input = &InputService2TestShapeInputService2TestCaseOperation1Input{}
  216. }
  217. req = c.newRequest(op, input, output)
  218. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  219. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  220. output = &InputService2TestShapeInputService2TestCaseOperation1Output{}
  221. req.Data = output
  222. return
  223. }
  224. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) {
  225. req, out := c.InputService2TestCaseOperation1Request(input)
  226. err := req.Send()
  227. return out, err
  228. }
  229. type InputService2TestShapeInputService2TestCaseOperation1Input struct {
  230. _ struct{} `type:"structure"`
  231. PipelineId *string `location:"uri" type:"string"`
  232. }
  233. type InputService2TestShapeInputService2TestCaseOperation1Output struct {
  234. _ struct{} `type:"structure"`
  235. }
  236. //The service client's operations are safe to be used concurrently.
  237. // It is not safe to mutate any of the client's properties though.
  238. type InputService3ProtocolTest struct {
  239. *client.Client
  240. }
  241. // New creates a new instance of the InputService3ProtocolTest client with a session.
  242. // If additional configuration is needed for the client instance use the optional
  243. // aws.Config parameter to add your extra config.
  244. //
  245. // Example:
  246. // // Create a InputService3ProtocolTest client from just a session.
  247. // svc := inputservice3protocoltest.New(mySession)
  248. //
  249. // // Create a InputService3ProtocolTest client with additional configuration
  250. // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  251. func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest {
  252. c := p.ClientConfig("inputservice3protocoltest", cfgs...)
  253. return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  254. }
  255. // newClient creates, initializes and returns a new service client instance.
  256. func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest {
  257. svc := &InputService3ProtocolTest{
  258. Client: client.New(
  259. cfg,
  260. metadata.ClientInfo{
  261. ServiceName: "inputservice3protocoltest",
  262. SigningRegion: signingRegion,
  263. Endpoint: endpoint,
  264. APIVersion: "2014-01-01",
  265. },
  266. handlers,
  267. ),
  268. }
  269. // Handlers
  270. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  271. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  272. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  273. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  274. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  275. return svc
  276. }
  277. // newRequest creates a new request for a InputService3ProtocolTest operation and runs any
  278. // custom request initialization.
  279. func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  280. req := c.NewRequest(op, params, data)
  281. return req
  282. }
  283. const opInputService3TestCaseOperation1 = "OperationName"
  284. // InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the
  285. // client's request for the InputService3TestCaseOperation1 operation. The "output" return
  286. // value can be used to capture response data after the request's "Send" method
  287. // is called.
  288. //
  289. // Creating a request object using this method should be used when you want to inject
  290. // custom logic into the request's lifecycle using a custom handler, or if you want to
  291. // access properties on the request object before or after sending the request. If
  292. // you just want the service response, call the InputService3TestCaseOperation1 method directly
  293. // instead.
  294. //
  295. // Note: You must call the "Send" method on the returned request object in order
  296. // to execute the request.
  297. //
  298. // // Example sending a request using the InputService3TestCaseOperation1Request method.
  299. // req, resp := client.InputService3TestCaseOperation1Request(params)
  300. //
  301. // err := req.Send()
  302. // if err == nil { // resp is now filled
  303. // fmt.Println(resp)
  304. // }
  305. //
  306. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputService3TestCaseOperation1Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) {
  307. op := &request.Operation{
  308. Name: opInputService3TestCaseOperation1,
  309. HTTPMethod: "GET",
  310. HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
  311. }
  312. if input == nil {
  313. input = &InputService3TestShapeInputService3TestCaseOperation1Input{}
  314. }
  315. req = c.newRequest(op, input, output)
  316. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  317. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  318. output = &InputService3TestShapeInputService3TestCaseOperation1Output{}
  319. req.Data = output
  320. return
  321. }
  322. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) {
  323. req, out := c.InputService3TestCaseOperation1Request(input)
  324. err := req.Send()
  325. return out, err
  326. }
  327. type InputService3TestShapeInputService3TestCaseOperation1Input struct {
  328. _ struct{} `type:"structure"`
  329. Foo *string `location:"uri" locationName:"PipelineId" type:"string"`
  330. }
  331. type InputService3TestShapeInputService3TestCaseOperation1Output struct {
  332. _ struct{} `type:"structure"`
  333. }
  334. //The service client's operations are safe to be used concurrently.
  335. // It is not safe to mutate any of the client's properties though.
  336. type InputService4ProtocolTest struct {
  337. *client.Client
  338. }
  339. // New creates a new instance of the InputService4ProtocolTest client with a session.
  340. // If additional configuration is needed for the client instance use the optional
  341. // aws.Config parameter to add your extra config.
  342. //
  343. // Example:
  344. // // Create a InputService4ProtocolTest client from just a session.
  345. // svc := inputservice4protocoltest.New(mySession)
  346. //
  347. // // Create a InputService4ProtocolTest client with additional configuration
  348. // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  349. func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest {
  350. c := p.ClientConfig("inputservice4protocoltest", cfgs...)
  351. return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  352. }
  353. // newClient creates, initializes and returns a new service client instance.
  354. func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest {
  355. svc := &InputService4ProtocolTest{
  356. Client: client.New(
  357. cfg,
  358. metadata.ClientInfo{
  359. ServiceName: "inputservice4protocoltest",
  360. SigningRegion: signingRegion,
  361. Endpoint: endpoint,
  362. APIVersion: "2014-01-01",
  363. },
  364. handlers,
  365. ),
  366. }
  367. // Handlers
  368. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  369. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  370. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  371. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  372. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  373. return svc
  374. }
  375. // newRequest creates a new request for a InputService4ProtocolTest operation and runs any
  376. // custom request initialization.
  377. func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  378. req := c.NewRequest(op, params, data)
  379. return req
  380. }
  381. const opInputService4TestCaseOperation1 = "OperationName"
  382. // InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the
  383. // client's request for the InputService4TestCaseOperation1 operation. The "output" return
  384. // value can be used to capture response data after the request's "Send" method
  385. // is called.
  386. //
  387. // Creating a request object using this method should be used when you want to inject
  388. // custom logic into the request's lifecycle using a custom handler, or if you want to
  389. // access properties on the request object before or after sending the request. If
  390. // you just want the service response, call the InputService4TestCaseOperation1 method directly
  391. // instead.
  392. //
  393. // Note: You must call the "Send" method on the returned request object in order
  394. // to execute the request.
  395. //
  396. // // Example sending a request using the InputService4TestCaseOperation1Request method.
  397. // req, resp := client.InputService4TestCaseOperation1Request(params)
  398. //
  399. // err := req.Send()
  400. // if err == nil { // resp is now filled
  401. // fmt.Println(resp)
  402. // }
  403. //
  404. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) {
  405. op := &request.Operation{
  406. Name: opInputService4TestCaseOperation1,
  407. HTTPMethod: "GET",
  408. HTTPPath: "/path",
  409. }
  410. if input == nil {
  411. input = &InputService4TestShapeInputService4TestCaseOperation1Input{}
  412. }
  413. req = c.newRequest(op, input, output)
  414. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  415. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  416. output = &InputService4TestShapeInputService4TestCaseOperation1Output{}
  417. req.Data = output
  418. return
  419. }
  420. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) {
  421. req, out := c.InputService4TestCaseOperation1Request(input)
  422. err := req.Send()
  423. return out, err
  424. }
  425. type InputService4TestShapeInputService4TestCaseOperation1Input struct {
  426. _ struct{} `type:"structure"`
  427. Items []*string `location:"querystring" locationName:"item" type:"list"`
  428. }
  429. type InputService4TestShapeInputService4TestCaseOperation1Output struct {
  430. _ struct{} `type:"structure"`
  431. }
  432. //The service client's operations are safe to be used concurrently.
  433. // It is not safe to mutate any of the client's properties though.
  434. type InputService5ProtocolTest struct {
  435. *client.Client
  436. }
  437. // New creates a new instance of the InputService5ProtocolTest client with a session.
  438. // If additional configuration is needed for the client instance use the optional
  439. // aws.Config parameter to add your extra config.
  440. //
  441. // Example:
  442. // // Create a InputService5ProtocolTest client from just a session.
  443. // svc := inputservice5protocoltest.New(mySession)
  444. //
  445. // // Create a InputService5ProtocolTest client with additional configuration
  446. // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  447. func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest {
  448. c := p.ClientConfig("inputservice5protocoltest", cfgs...)
  449. return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  450. }
  451. // newClient creates, initializes and returns a new service client instance.
  452. func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest {
  453. svc := &InputService5ProtocolTest{
  454. Client: client.New(
  455. cfg,
  456. metadata.ClientInfo{
  457. ServiceName: "inputservice5protocoltest",
  458. SigningRegion: signingRegion,
  459. Endpoint: endpoint,
  460. APIVersion: "2014-01-01",
  461. },
  462. handlers,
  463. ),
  464. }
  465. // Handlers
  466. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  467. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  468. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  469. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  470. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  471. return svc
  472. }
  473. // newRequest creates a new request for a InputService5ProtocolTest operation and runs any
  474. // custom request initialization.
  475. func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  476. req := c.NewRequest(op, params, data)
  477. return req
  478. }
  479. const opInputService5TestCaseOperation1 = "OperationName"
  480. // InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the
  481. // client's request for the InputService5TestCaseOperation1 operation. The "output" return
  482. // value can be used to capture response data after the request's "Send" method
  483. // is called.
  484. //
  485. // Creating a request object using this method should be used when you want to inject
  486. // custom logic into the request's lifecycle using a custom handler, or if you want to
  487. // access properties on the request object before or after sending the request. If
  488. // you just want the service response, call the InputService5TestCaseOperation1 method directly
  489. // instead.
  490. //
  491. // Note: You must call the "Send" method on the returned request object in order
  492. // to execute the request.
  493. //
  494. // // Example sending a request using the InputService5TestCaseOperation1Request method.
  495. // req, resp := client.InputService5TestCaseOperation1Request(params)
  496. //
  497. // err := req.Send()
  498. // if err == nil { // resp is now filled
  499. // fmt.Println(resp)
  500. // }
  501. //
  502. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) {
  503. op := &request.Operation{
  504. Name: opInputService5TestCaseOperation1,
  505. HTTPMethod: "GET",
  506. HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
  507. }
  508. if input == nil {
  509. input = &InputService5TestShapeInputService5TestCaseOperation1Input{}
  510. }
  511. req = c.newRequest(op, input, output)
  512. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  513. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  514. output = &InputService5TestShapeInputService5TestCaseOperation1Output{}
  515. req.Data = output
  516. return
  517. }
  518. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) {
  519. req, out := c.InputService5TestCaseOperation1Request(input)
  520. err := req.Send()
  521. return out, err
  522. }
  523. type InputService5TestShapeInputService5TestCaseOperation1Input struct {
  524. _ struct{} `type:"structure"`
  525. PipelineId *string `location:"uri" type:"string"`
  526. QueryDoc map[string]*string `location:"querystring" type:"map"`
  527. }
  528. type InputService5TestShapeInputService5TestCaseOperation1Output struct {
  529. _ struct{} `type:"structure"`
  530. }
  531. //The service client's operations are safe to be used concurrently.
  532. // It is not safe to mutate any of the client's properties though.
  533. type InputService6ProtocolTest struct {
  534. *client.Client
  535. }
  536. // New creates a new instance of the InputService6ProtocolTest client with a session.
  537. // If additional configuration is needed for the client instance use the optional
  538. // aws.Config parameter to add your extra config.
  539. //
  540. // Example:
  541. // // Create a InputService6ProtocolTest client from just a session.
  542. // svc := inputservice6protocoltest.New(mySession)
  543. //
  544. // // Create a InputService6ProtocolTest client with additional configuration
  545. // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  546. func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest {
  547. c := p.ClientConfig("inputservice6protocoltest", cfgs...)
  548. return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  549. }
  550. // newClient creates, initializes and returns a new service client instance.
  551. func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest {
  552. svc := &InputService6ProtocolTest{
  553. Client: client.New(
  554. cfg,
  555. metadata.ClientInfo{
  556. ServiceName: "inputservice6protocoltest",
  557. SigningRegion: signingRegion,
  558. Endpoint: endpoint,
  559. APIVersion: "2014-01-01",
  560. },
  561. handlers,
  562. ),
  563. }
  564. // Handlers
  565. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  566. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  567. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  568. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  569. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  570. return svc
  571. }
  572. // newRequest creates a new request for a InputService6ProtocolTest operation and runs any
  573. // custom request initialization.
  574. func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  575. req := c.NewRequest(op, params, data)
  576. return req
  577. }
  578. const opInputService6TestCaseOperation1 = "OperationName"
  579. // InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the
  580. // client's request for the InputService6TestCaseOperation1 operation. The "output" return
  581. // value can be used to capture response data after the request's "Send" method
  582. // is called.
  583. //
  584. // Creating a request object using this method should be used when you want to inject
  585. // custom logic into the request's lifecycle using a custom handler, or if you want to
  586. // access properties on the request object before or after sending the request. If
  587. // you just want the service response, call the InputService6TestCaseOperation1 method directly
  588. // instead.
  589. //
  590. // Note: You must call the "Send" method on the returned request object in order
  591. // to execute the request.
  592. //
  593. // // Example sending a request using the InputService6TestCaseOperation1Request method.
  594. // req, resp := client.InputService6TestCaseOperation1Request(params)
  595. //
  596. // err := req.Send()
  597. // if err == nil { // resp is now filled
  598. // fmt.Println(resp)
  599. // }
  600. //
  601. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) {
  602. op := &request.Operation{
  603. Name: opInputService6TestCaseOperation1,
  604. HTTPMethod: "GET",
  605. HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
  606. }
  607. if input == nil {
  608. input = &InputService6TestShapeInputService6TestCaseOperation1Input{}
  609. }
  610. req = c.newRequest(op, input, output)
  611. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  612. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  613. output = &InputService6TestShapeInputService6TestCaseOperation1Output{}
  614. req.Data = output
  615. return
  616. }
  617. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) {
  618. req, out := c.InputService6TestCaseOperation1Request(input)
  619. err := req.Send()
  620. return out, err
  621. }
  622. type InputService6TestShapeInputService6TestCaseOperation1Input struct {
  623. _ struct{} `type:"structure"`
  624. PipelineId *string `location:"uri" type:"string"`
  625. QueryDoc map[string][]*string `location:"querystring" type:"map"`
  626. }
  627. type InputService6TestShapeInputService6TestCaseOperation1Output struct {
  628. _ struct{} `type:"structure"`
  629. }
  630. //The service client's operations are safe to be used concurrently.
  631. // It is not safe to mutate any of the client's properties though.
  632. type InputService7ProtocolTest struct {
  633. *client.Client
  634. }
  635. // New creates a new instance of the InputService7ProtocolTest client with a session.
  636. // If additional configuration is needed for the client instance use the optional
  637. // aws.Config parameter to add your extra config.
  638. //
  639. // Example:
  640. // // Create a InputService7ProtocolTest client from just a session.
  641. // svc := inputservice7protocoltest.New(mySession)
  642. //
  643. // // Create a InputService7ProtocolTest client with additional configuration
  644. // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  645. func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest {
  646. c := p.ClientConfig("inputservice7protocoltest", cfgs...)
  647. return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  648. }
  649. // newClient creates, initializes and returns a new service client instance.
  650. func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest {
  651. svc := &InputService7ProtocolTest{
  652. Client: client.New(
  653. cfg,
  654. metadata.ClientInfo{
  655. ServiceName: "inputservice7protocoltest",
  656. SigningRegion: signingRegion,
  657. Endpoint: endpoint,
  658. APIVersion: "2014-01-01",
  659. },
  660. handlers,
  661. ),
  662. }
  663. // Handlers
  664. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  665. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  666. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  667. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  668. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  669. return svc
  670. }
  671. // newRequest creates a new request for a InputService7ProtocolTest operation and runs any
  672. // custom request initialization.
  673. func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  674. req := c.NewRequest(op, params, data)
  675. return req
  676. }
  677. const opInputService7TestCaseOperation1 = "OperationName"
  678. // InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the
  679. // client's request for the InputService7TestCaseOperation1 operation. The "output" return
  680. // value can be used to capture response data after the request's "Send" method
  681. // is called.
  682. //
  683. // Creating a request object using this method should be used when you want to inject
  684. // custom logic into the request's lifecycle using a custom handler, or if you want to
  685. // access properties on the request object before or after sending the request. If
  686. // you just want the service response, call the InputService7TestCaseOperation1 method directly
  687. // instead.
  688. //
  689. // Note: You must call the "Send" method on the returned request object in order
  690. // to execute the request.
  691. //
  692. // // Example sending a request using the InputService7TestCaseOperation1Request method.
  693. // req, resp := client.InputService7TestCaseOperation1Request(params)
  694. //
  695. // err := req.Send()
  696. // if err == nil { // resp is now filled
  697. // fmt.Println(resp)
  698. // }
  699. //
  700. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) {
  701. op := &request.Operation{
  702. Name: opInputService7TestCaseOperation1,
  703. HTTPMethod: "GET",
  704. HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
  705. }
  706. if input == nil {
  707. input = &InputService7TestShapeInputService7TestCaseOperation1Input{}
  708. }
  709. req = c.newRequest(op, input, output)
  710. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  711. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  712. output = &InputService7TestShapeInputService7TestCaseOperation1Output{}
  713. req.Data = output
  714. return
  715. }
  716. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) {
  717. req, out := c.InputService7TestCaseOperation1Request(input)
  718. err := req.Send()
  719. return out, err
  720. }
  721. type InputService7TestShapeInputService7TestCaseOperation1Input struct {
  722. _ struct{} `type:"structure"`
  723. Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
  724. PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
  725. PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"`
  726. }
  727. type InputService7TestShapeInputService7TestCaseOperation1Output struct {
  728. _ struct{} `type:"structure"`
  729. }
  730. //The service client's operations are safe to be used concurrently.
  731. // It is not safe to mutate any of the client's properties though.
  732. type InputService8ProtocolTest struct {
  733. *client.Client
  734. }
  735. // New creates a new instance of the InputService8ProtocolTest client with a session.
  736. // If additional configuration is needed for the client instance use the optional
  737. // aws.Config parameter to add your extra config.
  738. //
  739. // Example:
  740. // // Create a InputService8ProtocolTest client from just a session.
  741. // svc := inputservice8protocoltest.New(mySession)
  742. //
  743. // // Create a InputService8ProtocolTest client with additional configuration
  744. // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  745. func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest {
  746. c := p.ClientConfig("inputservice8protocoltest", cfgs...)
  747. return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  748. }
  749. // newClient creates, initializes and returns a new service client instance.
  750. func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService8ProtocolTest {
  751. svc := &InputService8ProtocolTest{
  752. Client: client.New(
  753. cfg,
  754. metadata.ClientInfo{
  755. ServiceName: "inputservice8protocoltest",
  756. SigningRegion: signingRegion,
  757. Endpoint: endpoint,
  758. APIVersion: "2014-01-01",
  759. },
  760. handlers,
  761. ),
  762. }
  763. // Handlers
  764. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  765. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  766. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  767. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  768. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  769. return svc
  770. }
  771. // newRequest creates a new request for a InputService8ProtocolTest operation and runs any
  772. // custom request initialization.
  773. func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  774. req := c.NewRequest(op, params, data)
  775. return req
  776. }
  777. const opInputService8TestCaseOperation1 = "OperationName"
  778. // InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the
  779. // client's request for the InputService8TestCaseOperation1 operation. The "output" return
  780. // value can be used to capture response data after the request's "Send" method
  781. // is called.
  782. //
  783. // Creating a request object using this method should be used when you want to inject
  784. // custom logic into the request's lifecycle using a custom handler, or if you want to
  785. // access properties on the request object before or after sending the request. If
  786. // you just want the service response, call the InputService8TestCaseOperation1 method directly
  787. // instead.
  788. //
  789. // Note: You must call the "Send" method on the returned request object in order
  790. // to execute the request.
  791. //
  792. // // Example sending a request using the InputService8TestCaseOperation1Request method.
  793. // req, resp := client.InputService8TestCaseOperation1Request(params)
  794. //
  795. // err := req.Send()
  796. // if err == nil { // resp is now filled
  797. // fmt.Println(resp)
  798. // }
  799. //
  800. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) {
  801. op := &request.Operation{
  802. Name: opInputService8TestCaseOperation1,
  803. HTTPMethod: "POST",
  804. HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
  805. }
  806. if input == nil {
  807. input = &InputService8TestShapeInputService8TestCaseOperation1Input{}
  808. }
  809. req = c.newRequest(op, input, output)
  810. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  811. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  812. output = &InputService8TestShapeInputService8TestCaseOperation1Output{}
  813. req.Data = output
  814. return
  815. }
  816. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) {
  817. req, out := c.InputService8TestCaseOperation1Request(input)
  818. err := req.Send()
  819. return out, err
  820. }
  821. type InputService8TestShapeInputService8TestCaseOperation1Input struct {
  822. _ struct{} `type:"structure"`
  823. Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
  824. Config *InputService8TestShapeStructType `type:"structure"`
  825. PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
  826. PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"`
  827. }
  828. type InputService8TestShapeInputService8TestCaseOperation1Output struct {
  829. _ struct{} `type:"structure"`
  830. }
  831. type InputService8TestShapeStructType struct {
  832. _ struct{} `type:"structure"`
  833. A *string `type:"string"`
  834. B *string `type:"string"`
  835. }
  836. //The service client's operations are safe to be used concurrently.
  837. // It is not safe to mutate any of the client's properties though.
  838. type InputService9ProtocolTest struct {
  839. *client.Client
  840. }
  841. // New creates a new instance of the InputService9ProtocolTest client with a session.
  842. // If additional configuration is needed for the client instance use the optional
  843. // aws.Config parameter to add your extra config.
  844. //
  845. // Example:
  846. // // Create a InputService9ProtocolTest client from just a session.
  847. // svc := inputservice9protocoltest.New(mySession)
  848. //
  849. // // Create a InputService9ProtocolTest client with additional configuration
  850. // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  851. func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest {
  852. c := p.ClientConfig("inputservice9protocoltest", cfgs...)
  853. return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  854. }
  855. // newClient creates, initializes and returns a new service client instance.
  856. func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService9ProtocolTest {
  857. svc := &InputService9ProtocolTest{
  858. Client: client.New(
  859. cfg,
  860. metadata.ClientInfo{
  861. ServiceName: "inputservice9protocoltest",
  862. SigningRegion: signingRegion,
  863. Endpoint: endpoint,
  864. APIVersion: "2014-01-01",
  865. },
  866. handlers,
  867. ),
  868. }
  869. // Handlers
  870. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  871. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  872. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  873. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  874. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  875. return svc
  876. }
  877. // newRequest creates a new request for a InputService9ProtocolTest operation and runs any
  878. // custom request initialization.
  879. func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  880. req := c.NewRequest(op, params, data)
  881. return req
  882. }
  883. const opInputService9TestCaseOperation1 = "OperationName"
  884. // InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the
  885. // client's request for the InputService9TestCaseOperation1 operation. The "output" return
  886. // value can be used to capture response data after the request's "Send" method
  887. // is called.
  888. //
  889. // Creating a request object using this method should be used when you want to inject
  890. // custom logic into the request's lifecycle using a custom handler, or if you want to
  891. // access properties on the request object before or after sending the request. If
  892. // you just want the service response, call the InputService9TestCaseOperation1 method directly
  893. // instead.
  894. //
  895. // Note: You must call the "Send" method on the returned request object in order
  896. // to execute the request.
  897. //
  898. // // Example sending a request using the InputService9TestCaseOperation1Request method.
  899. // req, resp := client.InputService9TestCaseOperation1Request(params)
  900. //
  901. // err := req.Send()
  902. // if err == nil { // resp is now filled
  903. // fmt.Println(resp)
  904. // }
  905. //
  906. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) {
  907. op := &request.Operation{
  908. Name: opInputService9TestCaseOperation1,
  909. HTTPMethod: "POST",
  910. HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
  911. }
  912. if input == nil {
  913. input = &InputService9TestShapeInputService9TestCaseOperation1Input{}
  914. }
  915. req = c.newRequest(op, input, output)
  916. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  917. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  918. output = &InputService9TestShapeInputService9TestCaseOperation1Output{}
  919. req.Data = output
  920. return
  921. }
  922. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) {
  923. req, out := c.InputService9TestCaseOperation1Request(input)
  924. err := req.Send()
  925. return out, err
  926. }
  927. type InputService9TestShapeInputService9TestCaseOperation1Input struct {
  928. _ struct{} `type:"structure"`
  929. Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
  930. Checksum *string `location:"header" locationName:"x-amz-checksum" type:"string"`
  931. Config *InputService9TestShapeStructType `type:"structure"`
  932. PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
  933. PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"`
  934. }
  935. type InputService9TestShapeInputService9TestCaseOperation1Output struct {
  936. _ struct{} `type:"structure"`
  937. }
  938. type InputService9TestShapeStructType struct {
  939. _ struct{} `type:"structure"`
  940. A *string `type:"string"`
  941. B *string `type:"string"`
  942. }
  943. //The service client's operations are safe to be used concurrently.
  944. // It is not safe to mutate any of the client's properties though.
  945. type InputService10ProtocolTest struct {
  946. *client.Client
  947. }
  948. // New creates a new instance of the InputService10ProtocolTest client with a session.
  949. // If additional configuration is needed for the client instance use the optional
  950. // aws.Config parameter to add your extra config.
  951. //
  952. // Example:
  953. // // Create a InputService10ProtocolTest client from just a session.
  954. // svc := inputservice10protocoltest.New(mySession)
  955. //
  956. // // Create a InputService10ProtocolTest client with additional configuration
  957. // svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  958. func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest {
  959. c := p.ClientConfig("inputservice10protocoltest", cfgs...)
  960. return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  961. }
  962. // newClient creates, initializes and returns a new service client instance.
  963. func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService10ProtocolTest {
  964. svc := &InputService10ProtocolTest{
  965. Client: client.New(
  966. cfg,
  967. metadata.ClientInfo{
  968. ServiceName: "inputservice10protocoltest",
  969. SigningRegion: signingRegion,
  970. Endpoint: endpoint,
  971. APIVersion: "2014-01-01",
  972. },
  973. handlers,
  974. ),
  975. }
  976. // Handlers
  977. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  978. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  979. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  980. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  981. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  982. return svc
  983. }
  984. // newRequest creates a new request for a InputService10ProtocolTest operation and runs any
  985. // custom request initialization.
  986. func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  987. req := c.NewRequest(op, params, data)
  988. return req
  989. }
  990. const opInputService10TestCaseOperation1 = "OperationName"
  991. // InputService10TestCaseOperation1Request generates a "aws/request.Request" representing the
  992. // client's request for the InputService10TestCaseOperation1 operation. The "output" return
  993. // value can be used to capture response data after the request's "Send" method
  994. // is called.
  995. //
  996. // Creating a request object using this method should be used when you want to inject
  997. // custom logic into the request's lifecycle using a custom handler, or if you want to
  998. // access properties on the request object before or after sending the request. If
  999. // you just want the service response, call the InputService10TestCaseOperation1 method directly
  1000. // instead.
  1001. //
  1002. // Note: You must call the "Send" method on the returned request object in order
  1003. // to execute the request.
  1004. //
  1005. // // Example sending a request using the InputService10TestCaseOperation1Request method.
  1006. // req, resp := client.InputService10TestCaseOperation1Request(params)
  1007. //
  1008. // err := req.Send()
  1009. // if err == nil { // resp is now filled
  1010. // fmt.Println(resp)
  1011. // }
  1012. //
  1013. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) {
  1014. op := &request.Operation{
  1015. Name: opInputService10TestCaseOperation1,
  1016. HTTPMethod: "POST",
  1017. HTTPPath: "/2014-01-01/vaults/{vaultName}/archives",
  1018. }
  1019. if input == nil {
  1020. input = &InputService10TestShapeInputService10TestCaseOperation1Input{}
  1021. }
  1022. req = c.newRequest(op, input, output)
  1023. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1024. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1025. output = &InputService10TestShapeInputService10TestCaseOperation1Output{}
  1026. req.Data = output
  1027. return
  1028. }
  1029. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) {
  1030. req, out := c.InputService10TestCaseOperation1Request(input)
  1031. err := req.Send()
  1032. return out, err
  1033. }
  1034. type InputService10TestShapeInputService10TestCaseOperation1Input struct {
  1035. _ struct{} `type:"structure" payload:"Body"`
  1036. Body io.ReadSeeker `locationName:"body" type:"blob"`
  1037. Checksum *string `location:"header" locationName:"x-amz-sha256-tree-hash" type:"string"`
  1038. VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"`
  1039. }
  1040. // Validate inspects the fields of the type to determine if they are valid.
  1041. func (s *InputService10TestShapeInputService10TestCaseOperation1Input) Validate() error {
  1042. invalidParams := request.ErrInvalidParams{Context: "InputService10TestShapeInputService10TestCaseOperation1Input"}
  1043. if s.VaultName == nil {
  1044. invalidParams.Add(request.NewErrParamRequired("VaultName"))
  1045. }
  1046. if invalidParams.Len() > 0 {
  1047. return invalidParams
  1048. }
  1049. return nil
  1050. }
  1051. type InputService10TestShapeInputService10TestCaseOperation1Output struct {
  1052. _ struct{} `type:"structure"`
  1053. }
  1054. //The service client's operations are safe to be used concurrently.
  1055. // It is not safe to mutate any of the client's properties though.
  1056. type InputService11ProtocolTest struct {
  1057. *client.Client
  1058. }
  1059. // New creates a new instance of the InputService11ProtocolTest client with a session.
  1060. // If additional configuration is needed for the client instance use the optional
  1061. // aws.Config parameter to add your extra config.
  1062. //
  1063. // Example:
  1064. // // Create a InputService11ProtocolTest client from just a session.
  1065. // svc := inputservice11protocoltest.New(mySession)
  1066. //
  1067. // // Create a InputService11ProtocolTest client with additional configuration
  1068. // svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1069. func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest {
  1070. c := p.ClientConfig("inputservice11protocoltest", cfgs...)
  1071. return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1072. }
  1073. // newClient creates, initializes and returns a new service client instance.
  1074. func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService11ProtocolTest {
  1075. svc := &InputService11ProtocolTest{
  1076. Client: client.New(
  1077. cfg,
  1078. metadata.ClientInfo{
  1079. ServiceName: "inputservice11protocoltest",
  1080. SigningRegion: signingRegion,
  1081. Endpoint: endpoint,
  1082. APIVersion: "2014-01-01",
  1083. },
  1084. handlers,
  1085. ),
  1086. }
  1087. // Handlers
  1088. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1089. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  1090. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  1091. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  1092. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  1093. return svc
  1094. }
  1095. // newRequest creates a new request for a InputService11ProtocolTest operation and runs any
  1096. // custom request initialization.
  1097. func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1098. req := c.NewRequest(op, params, data)
  1099. return req
  1100. }
  1101. const opInputService11TestCaseOperation1 = "OperationName"
  1102. // InputService11TestCaseOperation1Request generates a "aws/request.Request" representing the
  1103. // client's request for the InputService11TestCaseOperation1 operation. The "output" return
  1104. // value can be used to capture response data after the request's "Send" method
  1105. // is called.
  1106. //
  1107. // Creating a request object using this method should be used when you want to inject
  1108. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1109. // access properties on the request object before or after sending the request. If
  1110. // you just want the service response, call the InputService11TestCaseOperation1 method directly
  1111. // instead.
  1112. //
  1113. // Note: You must call the "Send" method on the returned request object in order
  1114. // to execute the request.
  1115. //
  1116. // // Example sending a request using the InputService11TestCaseOperation1Request method.
  1117. // req, resp := client.InputService11TestCaseOperation1Request(params)
  1118. //
  1119. // err := req.Send()
  1120. // if err == nil { // resp is now filled
  1121. // fmt.Println(resp)
  1122. // }
  1123. //
  1124. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) {
  1125. op := &request.Operation{
  1126. Name: opInputService11TestCaseOperation1,
  1127. HTTPMethod: "GET",
  1128. HTTPPath: "/2014-01-01/{Foo}",
  1129. }
  1130. if input == nil {
  1131. input = &InputService11TestShapeInputService11TestCaseOperation1Input{}
  1132. }
  1133. req = c.newRequest(op, input, output)
  1134. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1135. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1136. output = &InputService11TestShapeInputService11TestCaseOperation1Output{}
  1137. req.Data = output
  1138. return
  1139. }
  1140. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) {
  1141. req, out := c.InputService11TestCaseOperation1Request(input)
  1142. err := req.Send()
  1143. return out, err
  1144. }
  1145. type InputService11TestShapeInputService11TestCaseOperation1Input struct {
  1146. _ struct{} `type:"structure"`
  1147. // Bar is automatically base64 encoded/decoded by the SDK.
  1148. Bar []byte `type:"blob"`
  1149. Foo *string `location:"uri" locationName:"Foo" type:"string" required:"true"`
  1150. }
  1151. // Validate inspects the fields of the type to determine if they are valid.
  1152. func (s *InputService11TestShapeInputService11TestCaseOperation1Input) Validate() error {
  1153. invalidParams := request.ErrInvalidParams{Context: "InputService11TestShapeInputService11TestCaseOperation1Input"}
  1154. if s.Foo == nil {
  1155. invalidParams.Add(request.NewErrParamRequired("Foo"))
  1156. }
  1157. if invalidParams.Len() > 0 {
  1158. return invalidParams
  1159. }
  1160. return nil
  1161. }
  1162. type InputService11TestShapeInputService11TestCaseOperation1Output struct {
  1163. _ struct{} `type:"structure"`
  1164. }
  1165. //The service client's operations are safe to be used concurrently.
  1166. // It is not safe to mutate any of the client's properties though.
  1167. type InputService12ProtocolTest struct {
  1168. *client.Client
  1169. }
  1170. // New creates a new instance of the InputService12ProtocolTest client with a session.
  1171. // If additional configuration is needed for the client instance use the optional
  1172. // aws.Config parameter to add your extra config.
  1173. //
  1174. // Example:
  1175. // // Create a InputService12ProtocolTest client from just a session.
  1176. // svc := inputservice12protocoltest.New(mySession)
  1177. //
  1178. // // Create a InputService12ProtocolTest client with additional configuration
  1179. // svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1180. func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest {
  1181. c := p.ClientConfig("inputservice12protocoltest", cfgs...)
  1182. return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1183. }
  1184. // newClient creates, initializes and returns a new service client instance.
  1185. func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService12ProtocolTest {
  1186. svc := &InputService12ProtocolTest{
  1187. Client: client.New(
  1188. cfg,
  1189. metadata.ClientInfo{
  1190. ServiceName: "inputservice12protocoltest",
  1191. SigningRegion: signingRegion,
  1192. Endpoint: endpoint,
  1193. APIVersion: "2014-01-01",
  1194. },
  1195. handlers,
  1196. ),
  1197. }
  1198. // Handlers
  1199. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1200. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  1201. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  1202. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  1203. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  1204. return svc
  1205. }
  1206. // newRequest creates a new request for a InputService12ProtocolTest operation and runs any
  1207. // custom request initialization.
  1208. func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1209. req := c.NewRequest(op, params, data)
  1210. return req
  1211. }
  1212. const opInputService12TestCaseOperation1 = "OperationName"
  1213. // InputService12TestCaseOperation1Request generates a "aws/request.Request" representing the
  1214. // client's request for the InputService12TestCaseOperation1 operation. The "output" return
  1215. // value can be used to capture response data after the request's "Send" method
  1216. // is called.
  1217. //
  1218. // Creating a request object using this method should be used when you want to inject
  1219. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1220. // access properties on the request object before or after sending the request. If
  1221. // you just want the service response, call the InputService12TestCaseOperation1 method directly
  1222. // instead.
  1223. //
  1224. // Note: You must call the "Send" method on the returned request object in order
  1225. // to execute the request.
  1226. //
  1227. // // Example sending a request using the InputService12TestCaseOperation1Request method.
  1228. // req, resp := client.InputService12TestCaseOperation1Request(params)
  1229. //
  1230. // err := req.Send()
  1231. // if err == nil { // resp is now filled
  1232. // fmt.Println(resp)
  1233. // }
  1234. //
  1235. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) {
  1236. op := &request.Operation{
  1237. Name: opInputService12TestCaseOperation1,
  1238. HTTPMethod: "POST",
  1239. HTTPPath: "/",
  1240. }
  1241. if input == nil {
  1242. input = &InputService12TestShapeInputShape{}
  1243. }
  1244. req = c.newRequest(op, input, output)
  1245. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1246. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1247. output = &InputService12TestShapeInputService12TestCaseOperation1Output{}
  1248. req.Data = output
  1249. return
  1250. }
  1251. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) {
  1252. req, out := c.InputService12TestCaseOperation1Request(input)
  1253. err := req.Send()
  1254. return out, err
  1255. }
  1256. const opInputService12TestCaseOperation2 = "OperationName"
  1257. // InputService12TestCaseOperation2Request generates a "aws/request.Request" representing the
  1258. // client's request for the InputService12TestCaseOperation2 operation. The "output" return
  1259. // value can be used to capture response data after the request's "Send" method
  1260. // is called.
  1261. //
  1262. // Creating a request object using this method should be used when you want to inject
  1263. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1264. // access properties on the request object before or after sending the request. If
  1265. // you just want the service response, call the InputService12TestCaseOperation2 method directly
  1266. // instead.
  1267. //
  1268. // Note: You must call the "Send" method on the returned request object in order
  1269. // to execute the request.
  1270. //
  1271. // // Example sending a request using the InputService12TestCaseOperation2Request method.
  1272. // req, resp := client.InputService12TestCaseOperation2Request(params)
  1273. //
  1274. // err := req.Send()
  1275. // if err == nil { // resp is now filled
  1276. // fmt.Println(resp)
  1277. // }
  1278. //
  1279. func (c *InputService12ProtocolTest) InputService12TestCaseOperation2Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation2Output) {
  1280. op := &request.Operation{
  1281. Name: opInputService12TestCaseOperation2,
  1282. HTTPMethod: "POST",
  1283. HTTPPath: "/",
  1284. }
  1285. if input == nil {
  1286. input = &InputService12TestShapeInputShape{}
  1287. }
  1288. req = c.newRequest(op, input, output)
  1289. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1290. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1291. output = &InputService12TestShapeInputService12TestCaseOperation2Output{}
  1292. req.Data = output
  1293. return
  1294. }
  1295. func (c *InputService12ProtocolTest) InputService12TestCaseOperation2(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation2Output, error) {
  1296. req, out := c.InputService12TestCaseOperation2Request(input)
  1297. err := req.Send()
  1298. return out, err
  1299. }
  1300. type InputService12TestShapeInputService12TestCaseOperation1Output struct {
  1301. _ struct{} `type:"structure"`
  1302. }
  1303. type InputService12TestShapeInputService12TestCaseOperation2Output struct {
  1304. _ struct{} `type:"structure"`
  1305. }
  1306. type InputService12TestShapeInputShape struct {
  1307. _ struct{} `type:"structure" payload:"Foo"`
  1308. Foo []byte `locationName:"foo" type:"blob"`
  1309. }
  1310. //The service client's operations are safe to be used concurrently.
  1311. // It is not safe to mutate any of the client's properties though.
  1312. type InputService13ProtocolTest struct {
  1313. *client.Client
  1314. }
  1315. // New creates a new instance of the InputService13ProtocolTest client with a session.
  1316. // If additional configuration is needed for the client instance use the optional
  1317. // aws.Config parameter to add your extra config.
  1318. //
  1319. // Example:
  1320. // // Create a InputService13ProtocolTest client from just a session.
  1321. // svc := inputservice13protocoltest.New(mySession)
  1322. //
  1323. // // Create a InputService13ProtocolTest client with additional configuration
  1324. // svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1325. func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest {
  1326. c := p.ClientConfig("inputservice13protocoltest", cfgs...)
  1327. return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1328. }
  1329. // newClient creates, initializes and returns a new service client instance.
  1330. func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService13ProtocolTest {
  1331. svc := &InputService13ProtocolTest{
  1332. Client: client.New(
  1333. cfg,
  1334. metadata.ClientInfo{
  1335. ServiceName: "inputservice13protocoltest",
  1336. SigningRegion: signingRegion,
  1337. Endpoint: endpoint,
  1338. APIVersion: "2014-01-01",
  1339. },
  1340. handlers,
  1341. ),
  1342. }
  1343. // Handlers
  1344. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1345. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  1346. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  1347. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  1348. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  1349. return svc
  1350. }
  1351. // newRequest creates a new request for a InputService13ProtocolTest operation and runs any
  1352. // custom request initialization.
  1353. func (c *InputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1354. req := c.NewRequest(op, params, data)
  1355. return req
  1356. }
  1357. const opInputService13TestCaseOperation1 = "OperationName"
  1358. // InputService13TestCaseOperation1Request generates a "aws/request.Request" representing the
  1359. // client's request for the InputService13TestCaseOperation1 operation. The "output" return
  1360. // value can be used to capture response data after the request's "Send" method
  1361. // is called.
  1362. //
  1363. // Creating a request object using this method should be used when you want to inject
  1364. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1365. // access properties on the request object before or after sending the request. If
  1366. // you just want the service response, call the InputService13TestCaseOperation1 method directly
  1367. // instead.
  1368. //
  1369. // Note: You must call the "Send" method on the returned request object in order
  1370. // to execute the request.
  1371. //
  1372. // // Example sending a request using the InputService13TestCaseOperation1Request method.
  1373. // req, resp := client.InputService13TestCaseOperation1Request(params)
  1374. //
  1375. // err := req.Send()
  1376. // if err == nil { // resp is now filled
  1377. // fmt.Println(resp)
  1378. // }
  1379. //
  1380. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) {
  1381. op := &request.Operation{
  1382. Name: opInputService13TestCaseOperation1,
  1383. HTTPMethod: "POST",
  1384. HTTPPath: "/",
  1385. }
  1386. if input == nil {
  1387. input = &InputService13TestShapeInputShape{}
  1388. }
  1389. req = c.newRequest(op, input, output)
  1390. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1391. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1392. output = &InputService13TestShapeInputService13TestCaseOperation1Output{}
  1393. req.Data = output
  1394. return
  1395. }
  1396. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) {
  1397. req, out := c.InputService13TestCaseOperation1Request(input)
  1398. err := req.Send()
  1399. return out, err
  1400. }
  1401. const opInputService13TestCaseOperation2 = "OperationName"
  1402. // InputService13TestCaseOperation2Request generates a "aws/request.Request" representing the
  1403. // client's request for the InputService13TestCaseOperation2 operation. The "output" return
  1404. // value can be used to capture response data after the request's "Send" method
  1405. // is called.
  1406. //
  1407. // Creating a request object using this method should be used when you want to inject
  1408. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1409. // access properties on the request object before or after sending the request. If
  1410. // you just want the service response, call the InputService13TestCaseOperation2 method directly
  1411. // instead.
  1412. //
  1413. // Note: You must call the "Send" method on the returned request object in order
  1414. // to execute the request.
  1415. //
  1416. // // Example sending a request using the InputService13TestCaseOperation2Request method.
  1417. // req, resp := client.InputService13TestCaseOperation2Request(params)
  1418. //
  1419. // err := req.Send()
  1420. // if err == nil { // resp is now filled
  1421. // fmt.Println(resp)
  1422. // }
  1423. //
  1424. func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation2Output) {
  1425. op := &request.Operation{
  1426. Name: opInputService13TestCaseOperation2,
  1427. HTTPMethod: "POST",
  1428. HTTPPath: "/",
  1429. }
  1430. if input == nil {
  1431. input = &InputService13TestShapeInputShape{}
  1432. }
  1433. req = c.newRequest(op, input, output)
  1434. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1435. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1436. output = &InputService13TestShapeInputService13TestCaseOperation2Output{}
  1437. req.Data = output
  1438. return
  1439. }
  1440. func (c *InputService13ProtocolTest) InputService13TestCaseOperation2(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) {
  1441. req, out := c.InputService13TestCaseOperation2Request(input)
  1442. err := req.Send()
  1443. return out, err
  1444. }
  1445. type InputService13TestShapeFooShape struct {
  1446. _ struct{} `locationName:"foo" type:"structure"`
  1447. Baz *string `locationName:"baz" type:"string"`
  1448. }
  1449. type InputService13TestShapeInputService13TestCaseOperation1Output struct {
  1450. _ struct{} `type:"structure"`
  1451. }
  1452. type InputService13TestShapeInputService13TestCaseOperation2Output struct {
  1453. _ struct{} `type:"structure"`
  1454. }
  1455. type InputService13TestShapeInputShape struct {
  1456. _ struct{} `type:"structure" payload:"Foo"`
  1457. Foo *InputService13TestShapeFooShape `locationName:"foo" type:"structure"`
  1458. }
  1459. //The service client's operations are safe to be used concurrently.
  1460. // It is not safe to mutate any of the client's properties though.
  1461. type InputService14ProtocolTest struct {
  1462. *client.Client
  1463. }
  1464. // New creates a new instance of the InputService14ProtocolTest client with a session.
  1465. // If additional configuration is needed for the client instance use the optional
  1466. // aws.Config parameter to add your extra config.
  1467. //
  1468. // Example:
  1469. // // Create a InputService14ProtocolTest client from just a session.
  1470. // svc := inputservice14protocoltest.New(mySession)
  1471. //
  1472. // // Create a InputService14ProtocolTest client with additional configuration
  1473. // svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1474. func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest {
  1475. c := p.ClientConfig("inputservice14protocoltest", cfgs...)
  1476. return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1477. }
  1478. // newClient creates, initializes and returns a new service client instance.
  1479. func newInputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService14ProtocolTest {
  1480. svc := &InputService14ProtocolTest{
  1481. Client: client.New(
  1482. cfg,
  1483. metadata.ClientInfo{
  1484. ServiceName: "inputservice14protocoltest",
  1485. SigningRegion: signingRegion,
  1486. Endpoint: endpoint,
  1487. APIVersion: "2014-01-01",
  1488. },
  1489. handlers,
  1490. ),
  1491. }
  1492. // Handlers
  1493. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1494. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  1495. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  1496. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  1497. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  1498. return svc
  1499. }
  1500. // newRequest creates a new request for a InputService14ProtocolTest operation and runs any
  1501. // custom request initialization.
  1502. func (c *InputService14ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1503. req := c.NewRequest(op, params, data)
  1504. return req
  1505. }
  1506. const opInputService14TestCaseOperation1 = "OperationName"
  1507. // InputService14TestCaseOperation1Request generates a "aws/request.Request" representing the
  1508. // client's request for the InputService14TestCaseOperation1 operation. The "output" return
  1509. // value can be used to capture response data after the request's "Send" method
  1510. // is called.
  1511. //
  1512. // Creating a request object using this method should be used when you want to inject
  1513. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1514. // access properties on the request object before or after sending the request. If
  1515. // you just want the service response, call the InputService14TestCaseOperation1 method directly
  1516. // instead.
  1517. //
  1518. // Note: You must call the "Send" method on the returned request object in order
  1519. // to execute the request.
  1520. //
  1521. // // Example sending a request using the InputService14TestCaseOperation1Request method.
  1522. // req, resp := client.InputService14TestCaseOperation1Request(params)
  1523. //
  1524. // err := req.Send()
  1525. // if err == nil { // resp is now filled
  1526. // fmt.Println(resp)
  1527. // }
  1528. //
  1529. func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(input *InputService14TestShapeInputShape) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation1Output) {
  1530. op := &request.Operation{
  1531. Name: opInputService14TestCaseOperation1,
  1532. HTTPMethod: "POST",
  1533. HTTPPath: "/path",
  1534. }
  1535. if input == nil {
  1536. input = &InputService14TestShapeInputShape{}
  1537. }
  1538. req = c.newRequest(op, input, output)
  1539. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1540. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1541. output = &InputService14TestShapeInputService14TestCaseOperation1Output{}
  1542. req.Data = output
  1543. return
  1544. }
  1545. func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputShape) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) {
  1546. req, out := c.InputService14TestCaseOperation1Request(input)
  1547. err := req.Send()
  1548. return out, err
  1549. }
  1550. const opInputService14TestCaseOperation2 = "OperationName"
  1551. // InputService14TestCaseOperation2Request generates a "aws/request.Request" representing the
  1552. // client's request for the InputService14TestCaseOperation2 operation. The "output" return
  1553. // value can be used to capture response data after the request's "Send" method
  1554. // is called.
  1555. //
  1556. // Creating a request object using this method should be used when you want to inject
  1557. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1558. // access properties on the request object before or after sending the request. If
  1559. // you just want the service response, call the InputService14TestCaseOperation2 method directly
  1560. // instead.
  1561. //
  1562. // Note: You must call the "Send" method on the returned request object in order
  1563. // to execute the request.
  1564. //
  1565. // // Example sending a request using the InputService14TestCaseOperation2Request method.
  1566. // req, resp := client.InputService14TestCaseOperation2Request(params)
  1567. //
  1568. // err := req.Send()
  1569. // if err == nil { // resp is now filled
  1570. // fmt.Println(resp)
  1571. // }
  1572. //
  1573. func (c *InputService14ProtocolTest) InputService14TestCaseOperation2Request(input *InputService14TestShapeInputShape) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation2Output) {
  1574. op := &request.Operation{
  1575. Name: opInputService14TestCaseOperation2,
  1576. HTTPMethod: "POST",
  1577. HTTPPath: "/path?abc=mno",
  1578. }
  1579. if input == nil {
  1580. input = &InputService14TestShapeInputShape{}
  1581. }
  1582. req = c.newRequest(op, input, output)
  1583. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1584. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1585. output = &InputService14TestShapeInputService14TestCaseOperation2Output{}
  1586. req.Data = output
  1587. return
  1588. }
  1589. func (c *InputService14ProtocolTest) InputService14TestCaseOperation2(input *InputService14TestShapeInputShape) (*InputService14TestShapeInputService14TestCaseOperation2Output, error) {
  1590. req, out := c.InputService14TestCaseOperation2Request(input)
  1591. err := req.Send()
  1592. return out, err
  1593. }
  1594. type InputService14TestShapeInputService14TestCaseOperation1Output struct {
  1595. _ struct{} `type:"structure"`
  1596. }
  1597. type InputService14TestShapeInputService14TestCaseOperation2Output struct {
  1598. _ struct{} `type:"structure"`
  1599. }
  1600. type InputService14TestShapeInputShape struct {
  1601. _ struct{} `type:"structure"`
  1602. Foo *string `location:"querystring" locationName:"param-name" type:"string"`
  1603. }
  1604. //The service client's operations are safe to be used concurrently.
  1605. // It is not safe to mutate any of the client's properties though.
  1606. type InputService15ProtocolTest struct {
  1607. *client.Client
  1608. }
  1609. // New creates a new instance of the InputService15ProtocolTest client with a session.
  1610. // If additional configuration is needed for the client instance use the optional
  1611. // aws.Config parameter to add your extra config.
  1612. //
  1613. // Example:
  1614. // // Create a InputService15ProtocolTest client from just a session.
  1615. // svc := inputservice15protocoltest.New(mySession)
  1616. //
  1617. // // Create a InputService15ProtocolTest client with additional configuration
  1618. // svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1619. func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest {
  1620. c := p.ClientConfig("inputservice15protocoltest", cfgs...)
  1621. return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1622. }
  1623. // newClient creates, initializes and returns a new service client instance.
  1624. func newInputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService15ProtocolTest {
  1625. svc := &InputService15ProtocolTest{
  1626. Client: client.New(
  1627. cfg,
  1628. metadata.ClientInfo{
  1629. ServiceName: "inputservice15protocoltest",
  1630. SigningRegion: signingRegion,
  1631. Endpoint: endpoint,
  1632. APIVersion: "2014-01-01",
  1633. },
  1634. handlers,
  1635. ),
  1636. }
  1637. // Handlers
  1638. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1639. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  1640. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  1641. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  1642. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  1643. return svc
  1644. }
  1645. // newRequest creates a new request for a InputService15ProtocolTest operation and runs any
  1646. // custom request initialization.
  1647. func (c *InputService15ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1648. req := c.NewRequest(op, params, data)
  1649. return req
  1650. }
  1651. const opInputService15TestCaseOperation1 = "OperationName"
  1652. // InputService15TestCaseOperation1Request generates a "aws/request.Request" representing the
  1653. // client's request for the InputService15TestCaseOperation1 operation. The "output" return
  1654. // value can be used to capture response data after the request's "Send" method
  1655. // is called.
  1656. //
  1657. // Creating a request object using this method should be used when you want to inject
  1658. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1659. // access properties on the request object before or after sending the request. If
  1660. // you just want the service response, call the InputService15TestCaseOperation1 method directly
  1661. // instead.
  1662. //
  1663. // Note: You must call the "Send" method on the returned request object in order
  1664. // to execute the request.
  1665. //
  1666. // // Example sending a request using the InputService15TestCaseOperation1Request method.
  1667. // req, resp := client.InputService15TestCaseOperation1Request(params)
  1668. //
  1669. // err := req.Send()
  1670. // if err == nil { // resp is now filled
  1671. // fmt.Println(resp)
  1672. // }
  1673. //
  1674. func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation1Output) {
  1675. op := &request.Operation{
  1676. Name: opInputService15TestCaseOperation1,
  1677. HTTPMethod: "POST",
  1678. HTTPPath: "/path",
  1679. }
  1680. if input == nil {
  1681. input = &InputService15TestShapeInputShape{}
  1682. }
  1683. req = c.newRequest(op, input, output)
  1684. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1685. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1686. output = &InputService15TestShapeInputService15TestCaseOperation1Output{}
  1687. req.Data = output
  1688. return
  1689. }
  1690. func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) {
  1691. req, out := c.InputService15TestCaseOperation1Request(input)
  1692. err := req.Send()
  1693. return out, err
  1694. }
  1695. const opInputService15TestCaseOperation2 = "OperationName"
  1696. // InputService15TestCaseOperation2Request generates a "aws/request.Request" representing the
  1697. // client's request for the InputService15TestCaseOperation2 operation. The "output" return
  1698. // value can be used to capture response data after the request's "Send" method
  1699. // is called.
  1700. //
  1701. // Creating a request object using this method should be used when you want to inject
  1702. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1703. // access properties on the request object before or after sending the request. If
  1704. // you just want the service response, call the InputService15TestCaseOperation2 method directly
  1705. // instead.
  1706. //
  1707. // Note: You must call the "Send" method on the returned request object in order
  1708. // to execute the request.
  1709. //
  1710. // // Example sending a request using the InputService15TestCaseOperation2Request method.
  1711. // req, resp := client.InputService15TestCaseOperation2Request(params)
  1712. //
  1713. // err := req.Send()
  1714. // if err == nil { // resp is now filled
  1715. // fmt.Println(resp)
  1716. // }
  1717. //
  1718. func (c *InputService15ProtocolTest) InputService15TestCaseOperation2Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation2Output) {
  1719. op := &request.Operation{
  1720. Name: opInputService15TestCaseOperation2,
  1721. HTTPMethod: "POST",
  1722. HTTPPath: "/path",
  1723. }
  1724. if input == nil {
  1725. input = &InputService15TestShapeInputShape{}
  1726. }
  1727. req = c.newRequest(op, input, output)
  1728. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1729. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1730. output = &InputService15TestShapeInputService15TestCaseOperation2Output{}
  1731. req.Data = output
  1732. return
  1733. }
  1734. func (c *InputService15ProtocolTest) InputService15TestCaseOperation2(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation2Output, error) {
  1735. req, out := c.InputService15TestCaseOperation2Request(input)
  1736. err := req.Send()
  1737. return out, err
  1738. }
  1739. const opInputService15TestCaseOperation3 = "OperationName"
  1740. // InputService15TestCaseOperation3Request generates a "aws/request.Request" representing the
  1741. // client's request for the InputService15TestCaseOperation3 operation. The "output" return
  1742. // value can be used to capture response data after the request's "Send" method
  1743. // is called.
  1744. //
  1745. // Creating a request object using this method should be used when you want to inject
  1746. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1747. // access properties on the request object before or after sending the request. If
  1748. // you just want the service response, call the InputService15TestCaseOperation3 method directly
  1749. // instead.
  1750. //
  1751. // Note: You must call the "Send" method on the returned request object in order
  1752. // to execute the request.
  1753. //
  1754. // // Example sending a request using the InputService15TestCaseOperation3Request method.
  1755. // req, resp := client.InputService15TestCaseOperation3Request(params)
  1756. //
  1757. // err := req.Send()
  1758. // if err == nil { // resp is now filled
  1759. // fmt.Println(resp)
  1760. // }
  1761. //
  1762. func (c *InputService15ProtocolTest) InputService15TestCaseOperation3Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation3Output) {
  1763. op := &request.Operation{
  1764. Name: opInputService15TestCaseOperation3,
  1765. HTTPMethod: "POST",
  1766. HTTPPath: "/path",
  1767. }
  1768. if input == nil {
  1769. input = &InputService15TestShapeInputShape{}
  1770. }
  1771. req = c.newRequest(op, input, output)
  1772. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1773. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1774. output = &InputService15TestShapeInputService15TestCaseOperation3Output{}
  1775. req.Data = output
  1776. return
  1777. }
  1778. func (c *InputService15ProtocolTest) InputService15TestCaseOperation3(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation3Output, error) {
  1779. req, out := c.InputService15TestCaseOperation3Request(input)
  1780. err := req.Send()
  1781. return out, err
  1782. }
  1783. const opInputService15TestCaseOperation4 = "OperationName"
  1784. // InputService15TestCaseOperation4Request generates a "aws/request.Request" representing the
  1785. // client's request for the InputService15TestCaseOperation4 operation. The "output" return
  1786. // value can be used to capture response data after the request's "Send" method
  1787. // is called.
  1788. //
  1789. // Creating a request object using this method should be used when you want to inject
  1790. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1791. // access properties on the request object before or after sending the request. If
  1792. // you just want the service response, call the InputService15TestCaseOperation4 method directly
  1793. // instead.
  1794. //
  1795. // Note: You must call the "Send" method on the returned request object in order
  1796. // to execute the request.
  1797. //
  1798. // // Example sending a request using the InputService15TestCaseOperation4Request method.
  1799. // req, resp := client.InputService15TestCaseOperation4Request(params)
  1800. //
  1801. // err := req.Send()
  1802. // if err == nil { // resp is now filled
  1803. // fmt.Println(resp)
  1804. // }
  1805. //
  1806. func (c *InputService15ProtocolTest) InputService15TestCaseOperation4Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation4Output) {
  1807. op := &request.Operation{
  1808. Name: opInputService15TestCaseOperation4,
  1809. HTTPMethod: "POST",
  1810. HTTPPath: "/path",
  1811. }
  1812. if input == nil {
  1813. input = &InputService15TestShapeInputShape{}
  1814. }
  1815. req = c.newRequest(op, input, output)
  1816. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1817. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1818. output = &InputService15TestShapeInputService15TestCaseOperation4Output{}
  1819. req.Data = output
  1820. return
  1821. }
  1822. func (c *InputService15ProtocolTest) InputService15TestCaseOperation4(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation4Output, error) {
  1823. req, out := c.InputService15TestCaseOperation4Request(input)
  1824. err := req.Send()
  1825. return out, err
  1826. }
  1827. const opInputService15TestCaseOperation5 = "OperationName"
  1828. // InputService15TestCaseOperation5Request generates a "aws/request.Request" representing the
  1829. // client's request for the InputService15TestCaseOperation5 operation. The "output" return
  1830. // value can be used to capture response data after the request's "Send" method
  1831. // is called.
  1832. //
  1833. // Creating a request object using this method should be used when you want to inject
  1834. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1835. // access properties on the request object before or after sending the request. If
  1836. // you just want the service response, call the InputService15TestCaseOperation5 method directly
  1837. // instead.
  1838. //
  1839. // Note: You must call the "Send" method on the returned request object in order
  1840. // to execute the request.
  1841. //
  1842. // // Example sending a request using the InputService15TestCaseOperation5Request method.
  1843. // req, resp := client.InputService15TestCaseOperation5Request(params)
  1844. //
  1845. // err := req.Send()
  1846. // if err == nil { // resp is now filled
  1847. // fmt.Println(resp)
  1848. // }
  1849. //
  1850. func (c *InputService15ProtocolTest) InputService15TestCaseOperation5Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation5Output) {
  1851. op := &request.Operation{
  1852. Name: opInputService15TestCaseOperation5,
  1853. HTTPMethod: "POST",
  1854. HTTPPath: "/path",
  1855. }
  1856. if input == nil {
  1857. input = &InputService15TestShapeInputShape{}
  1858. }
  1859. req = c.newRequest(op, input, output)
  1860. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1861. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1862. output = &InputService15TestShapeInputService15TestCaseOperation5Output{}
  1863. req.Data = output
  1864. return
  1865. }
  1866. func (c *InputService15ProtocolTest) InputService15TestCaseOperation5(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation5Output, error) {
  1867. req, out := c.InputService15TestCaseOperation5Request(input)
  1868. err := req.Send()
  1869. return out, err
  1870. }
  1871. const opInputService15TestCaseOperation6 = "OperationName"
  1872. // InputService15TestCaseOperation6Request generates a "aws/request.Request" representing the
  1873. // client's request for the InputService15TestCaseOperation6 operation. The "output" return
  1874. // value can be used to capture response data after the request's "Send" method
  1875. // is called.
  1876. //
  1877. // Creating a request object using this method should be used when you want to inject
  1878. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1879. // access properties on the request object before or after sending the request. If
  1880. // you just want the service response, call the InputService15TestCaseOperation6 method directly
  1881. // instead.
  1882. //
  1883. // Note: You must call the "Send" method on the returned request object in order
  1884. // to execute the request.
  1885. //
  1886. // // Example sending a request using the InputService15TestCaseOperation6Request method.
  1887. // req, resp := client.InputService15TestCaseOperation6Request(params)
  1888. //
  1889. // err := req.Send()
  1890. // if err == nil { // resp is now filled
  1891. // fmt.Println(resp)
  1892. // }
  1893. //
  1894. func (c *InputService15ProtocolTest) InputService15TestCaseOperation6Request(input *InputService15TestShapeInputShape) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation6Output) {
  1895. op := &request.Operation{
  1896. Name: opInputService15TestCaseOperation6,
  1897. HTTPMethod: "POST",
  1898. HTTPPath: "/path",
  1899. }
  1900. if input == nil {
  1901. input = &InputService15TestShapeInputShape{}
  1902. }
  1903. req = c.newRequest(op, input, output)
  1904. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  1905. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1906. output = &InputService15TestShapeInputService15TestCaseOperation6Output{}
  1907. req.Data = output
  1908. return
  1909. }
  1910. func (c *InputService15ProtocolTest) InputService15TestCaseOperation6(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation6Output, error) {
  1911. req, out := c.InputService15TestCaseOperation6Request(input)
  1912. err := req.Send()
  1913. return out, err
  1914. }
  1915. type InputService15TestShapeInputService15TestCaseOperation1Output struct {
  1916. _ struct{} `type:"structure"`
  1917. }
  1918. type InputService15TestShapeInputService15TestCaseOperation2Output struct {
  1919. _ struct{} `type:"structure"`
  1920. }
  1921. type InputService15TestShapeInputService15TestCaseOperation3Output struct {
  1922. _ struct{} `type:"structure"`
  1923. }
  1924. type InputService15TestShapeInputService15TestCaseOperation4Output struct {
  1925. _ struct{} `type:"structure"`
  1926. }
  1927. type InputService15TestShapeInputService15TestCaseOperation5Output struct {
  1928. _ struct{} `type:"structure"`
  1929. }
  1930. type InputService15TestShapeInputService15TestCaseOperation6Output struct {
  1931. _ struct{} `type:"structure"`
  1932. }
  1933. type InputService15TestShapeInputShape struct {
  1934. _ struct{} `type:"structure"`
  1935. RecursiveStruct *InputService15TestShapeRecursiveStructType `type:"structure"`
  1936. }
  1937. type InputService15TestShapeRecursiveStructType struct {
  1938. _ struct{} `type:"structure"`
  1939. NoRecurse *string `type:"string"`
  1940. RecursiveList []*InputService15TestShapeRecursiveStructType `type:"list"`
  1941. RecursiveMap map[string]*InputService15TestShapeRecursiveStructType `type:"map"`
  1942. RecursiveStruct *InputService15TestShapeRecursiveStructType `type:"structure"`
  1943. }
  1944. //The service client's operations are safe to be used concurrently.
  1945. // It is not safe to mutate any of the client's properties though.
  1946. type InputService16ProtocolTest struct {
  1947. *client.Client
  1948. }
  1949. // New creates a new instance of the InputService16ProtocolTest client with a session.
  1950. // If additional configuration is needed for the client instance use the optional
  1951. // aws.Config parameter to add your extra config.
  1952. //
  1953. // Example:
  1954. // // Create a InputService16ProtocolTest client from just a session.
  1955. // svc := inputservice16protocoltest.New(mySession)
  1956. //
  1957. // // Create a InputService16ProtocolTest client with additional configuration
  1958. // svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1959. func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest {
  1960. c := p.ClientConfig("inputservice16protocoltest", cfgs...)
  1961. return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1962. }
  1963. // newClient creates, initializes and returns a new service client instance.
  1964. func newInputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService16ProtocolTest {
  1965. svc := &InputService16ProtocolTest{
  1966. Client: client.New(
  1967. cfg,
  1968. metadata.ClientInfo{
  1969. ServiceName: "inputservice16protocoltest",
  1970. SigningRegion: signingRegion,
  1971. Endpoint: endpoint,
  1972. APIVersion: "2014-01-01",
  1973. },
  1974. handlers,
  1975. ),
  1976. }
  1977. // Handlers
  1978. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1979. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  1980. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  1981. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  1982. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  1983. return svc
  1984. }
  1985. // newRequest creates a new request for a InputService16ProtocolTest operation and runs any
  1986. // custom request initialization.
  1987. func (c *InputService16ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1988. req := c.NewRequest(op, params, data)
  1989. return req
  1990. }
  1991. const opInputService16TestCaseOperation1 = "OperationName"
  1992. // InputService16TestCaseOperation1Request generates a "aws/request.Request" representing the
  1993. // client's request for the InputService16TestCaseOperation1 operation. The "output" return
  1994. // value can be used to capture response data after the request's "Send" method
  1995. // is called.
  1996. //
  1997. // Creating a request object using this method should be used when you want to inject
  1998. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1999. // access properties on the request object before or after sending the request. If
  2000. // you just want the service response, call the InputService16TestCaseOperation1 method directly
  2001. // instead.
  2002. //
  2003. // Note: You must call the "Send" method on the returned request object in order
  2004. // to execute the request.
  2005. //
  2006. // // Example sending a request using the InputService16TestCaseOperation1Request method.
  2007. // req, resp := client.InputService16TestCaseOperation1Request(params)
  2008. //
  2009. // err := req.Send()
  2010. // if err == nil { // resp is now filled
  2011. // fmt.Println(resp)
  2012. // }
  2013. //
  2014. func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) {
  2015. op := &request.Operation{
  2016. Name: opInputService16TestCaseOperation1,
  2017. HTTPMethod: "POST",
  2018. HTTPPath: "/path",
  2019. }
  2020. if input == nil {
  2021. input = &InputService16TestShapeInputShape{}
  2022. }
  2023. req = c.newRequest(op, input, output)
  2024. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  2025. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2026. output = &InputService16TestShapeInputService16TestCaseOperation1Output{}
  2027. req.Data = output
  2028. return
  2029. }
  2030. func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) {
  2031. req, out := c.InputService16TestCaseOperation1Request(input)
  2032. err := req.Send()
  2033. return out, err
  2034. }
  2035. const opInputService16TestCaseOperation2 = "OperationName"
  2036. // InputService16TestCaseOperation2Request generates a "aws/request.Request" representing the
  2037. // client's request for the InputService16TestCaseOperation2 operation. The "output" return
  2038. // value can be used to capture response data after the request's "Send" method
  2039. // is called.
  2040. //
  2041. // Creating a request object using this method should be used when you want to inject
  2042. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2043. // access properties on the request object before or after sending the request. If
  2044. // you just want the service response, call the InputService16TestCaseOperation2 method directly
  2045. // instead.
  2046. //
  2047. // Note: You must call the "Send" method on the returned request object in order
  2048. // to execute the request.
  2049. //
  2050. // // Example sending a request using the InputService16TestCaseOperation2Request method.
  2051. // req, resp := client.InputService16TestCaseOperation2Request(params)
  2052. //
  2053. // err := req.Send()
  2054. // if err == nil { // resp is now filled
  2055. // fmt.Println(resp)
  2056. // }
  2057. //
  2058. func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation2Output) {
  2059. op := &request.Operation{
  2060. Name: opInputService16TestCaseOperation2,
  2061. HTTPMethod: "POST",
  2062. HTTPPath: "/path",
  2063. }
  2064. if input == nil {
  2065. input = &InputService16TestShapeInputShape{}
  2066. }
  2067. req = c.newRequest(op, input, output)
  2068. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  2069. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2070. output = &InputService16TestShapeInputService16TestCaseOperation2Output{}
  2071. req.Data = output
  2072. return
  2073. }
  2074. func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) {
  2075. req, out := c.InputService16TestCaseOperation2Request(input)
  2076. err := req.Send()
  2077. return out, err
  2078. }
  2079. type InputService16TestShapeInputService16TestCaseOperation1Output struct {
  2080. _ struct{} `type:"structure"`
  2081. }
  2082. type InputService16TestShapeInputService16TestCaseOperation2Output struct {
  2083. _ struct{} `type:"structure"`
  2084. }
  2085. type InputService16TestShapeInputShape struct {
  2086. _ struct{} `type:"structure"`
  2087. TimeArg *time.Time `type:"timestamp" timestampFormat:"unix"`
  2088. TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp" timestampFormat:"rfc822"`
  2089. }
  2090. //The service client's operations are safe to be used concurrently.
  2091. // It is not safe to mutate any of the client's properties though.
  2092. type InputService17ProtocolTest struct {
  2093. *client.Client
  2094. }
  2095. // New creates a new instance of the InputService17ProtocolTest client with a session.
  2096. // If additional configuration is needed for the client instance use the optional
  2097. // aws.Config parameter to add your extra config.
  2098. //
  2099. // Example:
  2100. // // Create a InputService17ProtocolTest client from just a session.
  2101. // svc := inputservice17protocoltest.New(mySession)
  2102. //
  2103. // // Create a InputService17ProtocolTest client with additional configuration
  2104. // svc := inputservice17protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  2105. func NewInputService17ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService17ProtocolTest {
  2106. c := p.ClientConfig("inputservice17protocoltest", cfgs...)
  2107. return newInputService17ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  2108. }
  2109. // newClient creates, initializes and returns a new service client instance.
  2110. func newInputService17ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService17ProtocolTest {
  2111. svc := &InputService17ProtocolTest{
  2112. Client: client.New(
  2113. cfg,
  2114. metadata.ClientInfo{
  2115. ServiceName: "inputservice17protocoltest",
  2116. SigningRegion: signingRegion,
  2117. Endpoint: endpoint,
  2118. APIVersion: "2014-01-01",
  2119. },
  2120. handlers,
  2121. ),
  2122. }
  2123. // Handlers
  2124. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  2125. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  2126. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  2127. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  2128. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  2129. return svc
  2130. }
  2131. // newRequest creates a new request for a InputService17ProtocolTest operation and runs any
  2132. // custom request initialization.
  2133. func (c *InputService17ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  2134. req := c.NewRequest(op, params, data)
  2135. return req
  2136. }
  2137. const opInputService17TestCaseOperation1 = "OperationName"
  2138. // InputService17TestCaseOperation1Request generates a "aws/request.Request" representing the
  2139. // client's request for the InputService17TestCaseOperation1 operation. The "output" return
  2140. // value can be used to capture response data after the request's "Send" method
  2141. // is called.
  2142. //
  2143. // Creating a request object using this method should be used when you want to inject
  2144. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2145. // access properties on the request object before or after sending the request. If
  2146. // you just want the service response, call the InputService17TestCaseOperation1 method directly
  2147. // instead.
  2148. //
  2149. // Note: You must call the "Send" method on the returned request object in order
  2150. // to execute the request.
  2151. //
  2152. // // Example sending a request using the InputService17TestCaseOperation1Request method.
  2153. // req, resp := client.InputService17TestCaseOperation1Request(params)
  2154. //
  2155. // err := req.Send()
  2156. // if err == nil { // resp is now filled
  2157. // fmt.Println(resp)
  2158. // }
  2159. //
  2160. func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(input *InputService17TestShapeInputService17TestCaseOperation1Input) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation1Output) {
  2161. op := &request.Operation{
  2162. Name: opInputService17TestCaseOperation1,
  2163. HTTPMethod: "POST",
  2164. HTTPPath: "/path",
  2165. }
  2166. if input == nil {
  2167. input = &InputService17TestShapeInputService17TestCaseOperation1Input{}
  2168. }
  2169. req = c.newRequest(op, input, output)
  2170. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  2171. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2172. output = &InputService17TestShapeInputService17TestCaseOperation1Output{}
  2173. req.Data = output
  2174. return
  2175. }
  2176. func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputService17TestCaseOperation1Input) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) {
  2177. req, out := c.InputService17TestCaseOperation1Request(input)
  2178. err := req.Send()
  2179. return out, err
  2180. }
  2181. type InputService17TestShapeInputService17TestCaseOperation1Input struct {
  2182. _ struct{} `type:"structure"`
  2183. TimeArg *time.Time `locationName:"timestamp_location" type:"timestamp" timestampFormat:"unix"`
  2184. }
  2185. type InputService17TestShapeInputService17TestCaseOperation1Output struct {
  2186. _ struct{} `type:"structure"`
  2187. }
  2188. //The service client's operations are safe to be used concurrently.
  2189. // It is not safe to mutate any of the client's properties though.
  2190. type InputService18ProtocolTest struct {
  2191. *client.Client
  2192. }
  2193. // New creates a new instance of the InputService18ProtocolTest client with a session.
  2194. // If additional configuration is needed for the client instance use the optional
  2195. // aws.Config parameter to add your extra config.
  2196. //
  2197. // Example:
  2198. // // Create a InputService18ProtocolTest client from just a session.
  2199. // svc := inputservice18protocoltest.New(mySession)
  2200. //
  2201. // // Create a InputService18ProtocolTest client with additional configuration
  2202. // svc := inputservice18protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  2203. func NewInputService18ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService18ProtocolTest {
  2204. c := p.ClientConfig("inputservice18protocoltest", cfgs...)
  2205. return newInputService18ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  2206. }
  2207. // newClient creates, initializes and returns a new service client instance.
  2208. func newInputService18ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService18ProtocolTest {
  2209. svc := &InputService18ProtocolTest{
  2210. Client: client.New(
  2211. cfg,
  2212. metadata.ClientInfo{
  2213. ServiceName: "inputservice18protocoltest",
  2214. SigningRegion: signingRegion,
  2215. Endpoint: endpoint,
  2216. APIVersion: "2014-01-01",
  2217. },
  2218. handlers,
  2219. ),
  2220. }
  2221. // Handlers
  2222. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  2223. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  2224. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  2225. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  2226. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  2227. return svc
  2228. }
  2229. // newRequest creates a new request for a InputService18ProtocolTest operation and runs any
  2230. // custom request initialization.
  2231. func (c *InputService18ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  2232. req := c.NewRequest(op, params, data)
  2233. return req
  2234. }
  2235. const opInputService18TestCaseOperation1 = "OperationName"
  2236. // InputService18TestCaseOperation1Request generates a "aws/request.Request" representing the
  2237. // client's request for the InputService18TestCaseOperation1 operation. The "output" return
  2238. // value can be used to capture response data after the request's "Send" method
  2239. // is called.
  2240. //
  2241. // Creating a request object using this method should be used when you want to inject
  2242. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2243. // access properties on the request object before or after sending the request. If
  2244. // you just want the service response, call the InputService18TestCaseOperation1 method directly
  2245. // instead.
  2246. //
  2247. // Note: You must call the "Send" method on the returned request object in order
  2248. // to execute the request.
  2249. //
  2250. // // Example sending a request using the InputService18TestCaseOperation1Request method.
  2251. // req, resp := client.InputService18TestCaseOperation1Request(params)
  2252. //
  2253. // err := req.Send()
  2254. // if err == nil { // resp is now filled
  2255. // fmt.Println(resp)
  2256. // }
  2257. //
  2258. func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(input *InputService18TestShapeInputService18TestCaseOperation1Input) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation1Output) {
  2259. op := &request.Operation{
  2260. Name: opInputService18TestCaseOperation1,
  2261. HTTPMethod: "POST",
  2262. HTTPPath: "/",
  2263. }
  2264. if input == nil {
  2265. input = &InputService18TestShapeInputService18TestCaseOperation1Input{}
  2266. }
  2267. req = c.newRequest(op, input, output)
  2268. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  2269. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2270. output = &InputService18TestShapeInputService18TestCaseOperation1Output{}
  2271. req.Data = output
  2272. return
  2273. }
  2274. func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputService18TestCaseOperation1Input) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) {
  2275. req, out := c.InputService18TestCaseOperation1Request(input)
  2276. err := req.Send()
  2277. return out, err
  2278. }
  2279. type InputService18TestShapeInputService18TestCaseOperation1Input struct {
  2280. _ struct{} `type:"structure" payload:"Foo"`
  2281. Foo *string `locationName:"foo" type:"string"`
  2282. }
  2283. type InputService18TestShapeInputService18TestCaseOperation1Output struct {
  2284. _ struct{} `type:"structure"`
  2285. }
  2286. //The service client's operations are safe to be used concurrently.
  2287. // It is not safe to mutate any of the client's properties though.
  2288. type InputService19ProtocolTest struct {
  2289. *client.Client
  2290. }
  2291. // New creates a new instance of the InputService19ProtocolTest client with a session.
  2292. // If additional configuration is needed for the client instance use the optional
  2293. // aws.Config parameter to add your extra config.
  2294. //
  2295. // Example:
  2296. // // Create a InputService19ProtocolTest client from just a session.
  2297. // svc := inputservice19protocoltest.New(mySession)
  2298. //
  2299. // // Create a InputService19ProtocolTest client with additional configuration
  2300. // svc := inputservice19protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  2301. func NewInputService19ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService19ProtocolTest {
  2302. c := p.ClientConfig("inputservice19protocoltest", cfgs...)
  2303. return newInputService19ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  2304. }
  2305. // newClient creates, initializes and returns a new service client instance.
  2306. func newInputService19ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService19ProtocolTest {
  2307. svc := &InputService19ProtocolTest{
  2308. Client: client.New(
  2309. cfg,
  2310. metadata.ClientInfo{
  2311. ServiceName: "inputservice19protocoltest",
  2312. SigningRegion: signingRegion,
  2313. Endpoint: endpoint,
  2314. APIVersion: "2014-01-01",
  2315. },
  2316. handlers,
  2317. ),
  2318. }
  2319. // Handlers
  2320. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  2321. svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
  2322. svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
  2323. svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
  2324. svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
  2325. return svc
  2326. }
  2327. // newRequest creates a new request for a InputService19ProtocolTest operation and runs any
  2328. // custom request initialization.
  2329. func (c *InputService19ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  2330. req := c.NewRequest(op, params, data)
  2331. return req
  2332. }
  2333. const opInputService19TestCaseOperation1 = "OperationName"
  2334. // InputService19TestCaseOperation1Request generates a "aws/request.Request" representing the
  2335. // client's request for the InputService19TestCaseOperation1 operation. The "output" return
  2336. // value can be used to capture response data after the request's "Send" method
  2337. // is called.
  2338. //
  2339. // Creating a request object using this method should be used when you want to inject
  2340. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2341. // access properties on the request object before or after sending the request. If
  2342. // you just want the service response, call the InputService19TestCaseOperation1 method directly
  2343. // instead.
  2344. //
  2345. // Note: You must call the "Send" method on the returned request object in order
  2346. // to execute the request.
  2347. //
  2348. // // Example sending a request using the InputService19TestCaseOperation1Request method.
  2349. // req, resp := client.InputService19TestCaseOperation1Request(params)
  2350. //
  2351. // err := req.Send()
  2352. // if err == nil { // resp is now filled
  2353. // fmt.Println(resp)
  2354. // }
  2355. //
  2356. func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputShape) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation1Output) {
  2357. op := &request.Operation{
  2358. Name: opInputService19TestCaseOperation1,
  2359. HTTPMethod: "POST",
  2360. HTTPPath: "/path",
  2361. }
  2362. if input == nil {
  2363. input = &InputService19TestShapeInputShape{}
  2364. }
  2365. req = c.newRequest(op, input, output)
  2366. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  2367. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2368. output = &InputService19TestShapeInputService19TestCaseOperation1Output{}
  2369. req.Data = output
  2370. return
  2371. }
  2372. func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputShape) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) {
  2373. req, out := c.InputService19TestCaseOperation1Request(input)
  2374. err := req.Send()
  2375. return out, err
  2376. }
  2377. const opInputService19TestCaseOperation2 = "OperationName"
  2378. // InputService19TestCaseOperation2Request generates a "aws/request.Request" representing the
  2379. // client's request for the InputService19TestCaseOperation2 operation. The "output" return
  2380. // value can be used to capture response data after the request's "Send" method
  2381. // is called.
  2382. //
  2383. // Creating a request object using this method should be used when you want to inject
  2384. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2385. // access properties on the request object before or after sending the request. If
  2386. // you just want the service response, call the InputService19TestCaseOperation2 method directly
  2387. // instead.
  2388. //
  2389. // Note: You must call the "Send" method on the returned request object in order
  2390. // to execute the request.
  2391. //
  2392. // // Example sending a request using the InputService19TestCaseOperation2Request method.
  2393. // req, resp := client.InputService19TestCaseOperation2Request(params)
  2394. //
  2395. // err := req.Send()
  2396. // if err == nil { // resp is now filled
  2397. // fmt.Println(resp)
  2398. // }
  2399. //
  2400. func (c *InputService19ProtocolTest) InputService19TestCaseOperation2Request(input *InputService19TestShapeInputShape) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation2Output) {
  2401. op := &request.Operation{
  2402. Name: opInputService19TestCaseOperation2,
  2403. HTTPMethod: "POST",
  2404. HTTPPath: "/path",
  2405. }
  2406. if input == nil {
  2407. input = &InputService19TestShapeInputShape{}
  2408. }
  2409. req = c.newRequest(op, input, output)
  2410. req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
  2411. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2412. output = &InputService19TestShapeInputService19TestCaseOperation2Output{}
  2413. req.Data = output
  2414. return
  2415. }
  2416. func (c *InputService19ProtocolTest) InputService19TestCaseOperation2(input *InputService19TestShapeInputShape) (*InputService19TestShapeInputService19TestCaseOperation2Output, error) {
  2417. req, out := c.InputService19TestCaseOperation2Request(input)
  2418. err := req.Send()
  2419. return out, err
  2420. }
  2421. type InputService19TestShapeInputService19TestCaseOperation1Output struct {
  2422. _ struct{} `type:"structure"`
  2423. }
  2424. type InputService19TestShapeInputService19TestCaseOperation2Output struct {
  2425. _ struct{} `type:"structure"`
  2426. }
  2427. type InputService19TestShapeInputShape struct {
  2428. _ struct{} `type:"structure"`
  2429. Token *string `type:"string" idempotencyToken:"true"`
  2430. }
  2431. //
  2432. // Tests begin here
  2433. //
  2434. func TestInputService1ProtocolTestNoParametersCase1(t *testing.T) {
  2435. svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2436. req, _ := svc.InputService1TestCaseOperation1Request(nil)
  2437. r := req.HTTPRequest
  2438. // build request
  2439. restjson.Build(req)
  2440. assert.NoError(t, req.Error)
  2441. // assert URL
  2442. awstesting.AssertURL(t, "https://test/2014-01-01/jobs", r.URL.String())
  2443. // assert headers
  2444. }
  2445. func TestInputService2ProtocolTestURIParameterOnlyWithNoLocationNameCase1(t *testing.T) {
  2446. svc := NewInputService2ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2447. input := &InputService2TestShapeInputService2TestCaseOperation1Input{
  2448. PipelineId: aws.String("foo"),
  2449. }
  2450. req, _ := svc.InputService2TestCaseOperation1Request(input)
  2451. r := req.HTTPRequest
  2452. // build request
  2453. restjson.Build(req)
  2454. assert.NoError(t, req.Error)
  2455. // assert URL
  2456. awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo", r.URL.String())
  2457. // assert headers
  2458. }
  2459. func TestInputService3ProtocolTestURIParameterOnlyWithLocationNameCase1(t *testing.T) {
  2460. svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2461. input := &InputService3TestShapeInputService3TestCaseOperation1Input{
  2462. Foo: aws.String("bar"),
  2463. }
  2464. req, _ := svc.InputService3TestCaseOperation1Request(input)
  2465. r := req.HTTPRequest
  2466. // build request
  2467. restjson.Build(req)
  2468. assert.NoError(t, req.Error)
  2469. // assert URL
  2470. awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/bar", r.URL.String())
  2471. // assert headers
  2472. }
  2473. func TestInputService4ProtocolTestQuerystringListOfStringsCase1(t *testing.T) {
  2474. svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2475. input := &InputService4TestShapeInputService4TestCaseOperation1Input{
  2476. Items: []*string{
  2477. aws.String("value1"),
  2478. aws.String("value2"),
  2479. },
  2480. }
  2481. req, _ := svc.InputService4TestCaseOperation1Request(input)
  2482. r := req.HTTPRequest
  2483. // build request
  2484. restjson.Build(req)
  2485. assert.NoError(t, req.Error)
  2486. // assert URL
  2487. awstesting.AssertURL(t, "https://test/path?item=value1&item=value2", r.URL.String())
  2488. // assert headers
  2489. }
  2490. func TestInputService5ProtocolTestStringToStringMapsInQuerystringCase1(t *testing.T) {
  2491. svc := NewInputService5ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2492. input := &InputService5TestShapeInputService5TestCaseOperation1Input{
  2493. PipelineId: aws.String("foo"),
  2494. QueryDoc: map[string]*string{
  2495. "bar": aws.String("baz"),
  2496. "fizz": aws.String("buzz"),
  2497. },
  2498. }
  2499. req, _ := svc.InputService5TestCaseOperation1Request(input)
  2500. r := req.HTTPRequest
  2501. // build request
  2502. restjson.Build(req)
  2503. assert.NoError(t, req.Error)
  2504. // assert URL
  2505. awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?bar=baz&fizz=buzz", r.URL.String())
  2506. // assert headers
  2507. }
  2508. func TestInputService6ProtocolTestStringToStringListMapsInQuerystringCase1(t *testing.T) {
  2509. svc := NewInputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2510. input := &InputService6TestShapeInputService6TestCaseOperation1Input{
  2511. PipelineId: aws.String("id"),
  2512. QueryDoc: map[string][]*string{
  2513. "fizz": {
  2514. aws.String("buzz"),
  2515. aws.String("pop"),
  2516. },
  2517. "foo": {
  2518. aws.String("bar"),
  2519. aws.String("baz"),
  2520. },
  2521. },
  2522. }
  2523. req, _ := svc.InputService6TestCaseOperation1Request(input)
  2524. r := req.HTTPRequest
  2525. // build request
  2526. restjson.Build(req)
  2527. assert.NoError(t, req.Error)
  2528. // assert URL
  2529. awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/id?foo=bar&foo=baz&fizz=buzz&fizz=pop", r.URL.String())
  2530. // assert headers
  2531. }
  2532. func TestInputService7ProtocolTestURIParameterAndQuerystringParamsCase1(t *testing.T) {
  2533. svc := NewInputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2534. input := &InputService7TestShapeInputService7TestCaseOperation1Input{
  2535. Ascending: aws.String("true"),
  2536. PageToken: aws.String("bar"),
  2537. PipelineId: aws.String("foo"),
  2538. }
  2539. req, _ := svc.InputService7TestCaseOperation1Request(input)
  2540. r := req.HTTPRequest
  2541. // build request
  2542. restjson.Build(req)
  2543. assert.NoError(t, req.Error)
  2544. // assert URL
  2545. awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String())
  2546. // assert headers
  2547. }
  2548. func TestInputService8ProtocolTestURIParameterQuerystringParamsAndJSONBodyCase1(t *testing.T) {
  2549. svc := NewInputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2550. input := &InputService8TestShapeInputService8TestCaseOperation1Input{
  2551. Ascending: aws.String("true"),
  2552. Config: &InputService8TestShapeStructType{
  2553. A: aws.String("one"),
  2554. B: aws.String("two"),
  2555. },
  2556. PageToken: aws.String("bar"),
  2557. PipelineId: aws.String("foo"),
  2558. }
  2559. req, _ := svc.InputService8TestCaseOperation1Request(input)
  2560. r := req.HTTPRequest
  2561. // build request
  2562. restjson.Build(req)
  2563. assert.NoError(t, req.Error)
  2564. // assert body
  2565. assert.NotNil(t, r.Body)
  2566. body, _ := ioutil.ReadAll(r.Body)
  2567. awstesting.AssertJSON(t, `{"Config":{"A":"one","B":"two"}}`, util.Trim(string(body)))
  2568. // assert URL
  2569. awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String())
  2570. // assert headers
  2571. }
  2572. func TestInputService9ProtocolTestURIParameterQuerystringParamsHeadersAndJSONBodyCase1(t *testing.T) {
  2573. svc := NewInputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2574. input := &InputService9TestShapeInputService9TestCaseOperation1Input{
  2575. Ascending: aws.String("true"),
  2576. Checksum: aws.String("12345"),
  2577. Config: &InputService9TestShapeStructType{
  2578. A: aws.String("one"),
  2579. B: aws.String("two"),
  2580. },
  2581. PageToken: aws.String("bar"),
  2582. PipelineId: aws.String("foo"),
  2583. }
  2584. req, _ := svc.InputService9TestCaseOperation1Request(input)
  2585. r := req.HTTPRequest
  2586. // build request
  2587. restjson.Build(req)
  2588. assert.NoError(t, req.Error)
  2589. // assert body
  2590. assert.NotNil(t, r.Body)
  2591. body, _ := ioutil.ReadAll(r.Body)
  2592. awstesting.AssertJSON(t, `{"Config":{"A":"one","B":"two"}}`, util.Trim(string(body)))
  2593. // assert URL
  2594. awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String())
  2595. // assert headers
  2596. assert.Equal(t, "12345", r.Header.Get("x-amz-checksum"))
  2597. }
  2598. func TestInputService10ProtocolTestStreamingPayloadCase1(t *testing.T) {
  2599. svc := NewInputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2600. input := &InputService10TestShapeInputService10TestCaseOperation1Input{
  2601. Body: aws.ReadSeekCloser(bytes.NewBufferString("contents")),
  2602. Checksum: aws.String("foo"),
  2603. VaultName: aws.String("name"),
  2604. }
  2605. req, _ := svc.InputService10TestCaseOperation1Request(input)
  2606. r := req.HTTPRequest
  2607. // build request
  2608. restjson.Build(req)
  2609. assert.NoError(t, req.Error)
  2610. // assert body
  2611. assert.NotNil(t, r.Body)
  2612. body, _ := ioutil.ReadAll(r.Body)
  2613. assert.Equal(t, `contents`, util.Trim(string(body)))
  2614. // assert URL
  2615. awstesting.AssertURL(t, "https://test/2014-01-01/vaults/name/archives", r.URL.String())
  2616. // assert headers
  2617. assert.Equal(t, "foo", r.Header.Get("x-amz-sha256-tree-hash"))
  2618. }
  2619. func TestInputService11ProtocolTestSerializeBlobsInBodyCase1(t *testing.T) {
  2620. svc := NewInputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2621. input := &InputService11TestShapeInputService11TestCaseOperation1Input{
  2622. Bar: []byte("Blob param"),
  2623. Foo: aws.String("foo_name"),
  2624. }
  2625. req, _ := svc.InputService11TestCaseOperation1Request(input)
  2626. r := req.HTTPRequest
  2627. // build request
  2628. restjson.Build(req)
  2629. assert.NoError(t, req.Error)
  2630. // assert body
  2631. assert.NotNil(t, r.Body)
  2632. body, _ := ioutil.ReadAll(r.Body)
  2633. awstesting.AssertJSON(t, `{"Bar":"QmxvYiBwYXJhbQ=="}`, util.Trim(string(body)))
  2634. // assert URL
  2635. awstesting.AssertURL(t, "https://test/2014-01-01/foo_name", r.URL.String())
  2636. // assert headers
  2637. }
  2638. func TestInputService12ProtocolTestBlobPayloadCase1(t *testing.T) {
  2639. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2640. input := &InputService12TestShapeInputShape{
  2641. Foo: []byte("bar"),
  2642. }
  2643. req, _ := svc.InputService12TestCaseOperation1Request(input)
  2644. r := req.HTTPRequest
  2645. // build request
  2646. restjson.Build(req)
  2647. assert.NoError(t, req.Error)
  2648. // assert body
  2649. assert.NotNil(t, r.Body)
  2650. body, _ := ioutil.ReadAll(r.Body)
  2651. assert.Equal(t, `bar`, util.Trim(string(body)))
  2652. // assert URL
  2653. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2654. // assert headers
  2655. }
  2656. func TestInputService12ProtocolTestBlobPayloadCase2(t *testing.T) {
  2657. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2658. input := &InputService12TestShapeInputShape{}
  2659. req, _ := svc.InputService12TestCaseOperation2Request(input)
  2660. r := req.HTTPRequest
  2661. // build request
  2662. restjson.Build(req)
  2663. assert.NoError(t, req.Error)
  2664. // assert URL
  2665. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2666. // assert headers
  2667. }
  2668. func TestInputService13ProtocolTestStructurePayloadCase1(t *testing.T) {
  2669. svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2670. input := &InputService13TestShapeInputShape{
  2671. Foo: &InputService13TestShapeFooShape{
  2672. Baz: aws.String("bar"),
  2673. },
  2674. }
  2675. req, _ := svc.InputService13TestCaseOperation1Request(input)
  2676. r := req.HTTPRequest
  2677. // build request
  2678. restjson.Build(req)
  2679. assert.NoError(t, req.Error)
  2680. // assert body
  2681. assert.NotNil(t, r.Body)
  2682. body, _ := ioutil.ReadAll(r.Body)
  2683. awstesting.AssertJSON(t, `{"baz":"bar"}`, util.Trim(string(body)))
  2684. // assert URL
  2685. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2686. // assert headers
  2687. }
  2688. func TestInputService13ProtocolTestStructurePayloadCase2(t *testing.T) {
  2689. svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2690. input := &InputService13TestShapeInputShape{}
  2691. req, _ := svc.InputService13TestCaseOperation2Request(input)
  2692. r := req.HTTPRequest
  2693. // build request
  2694. restjson.Build(req)
  2695. assert.NoError(t, req.Error)
  2696. // assert URL
  2697. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2698. // assert headers
  2699. }
  2700. func TestInputService14ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) {
  2701. svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2702. input := &InputService14TestShapeInputShape{}
  2703. req, _ := svc.InputService14TestCaseOperation1Request(input)
  2704. r := req.HTTPRequest
  2705. // build request
  2706. restjson.Build(req)
  2707. assert.NoError(t, req.Error)
  2708. // assert URL
  2709. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2710. // assert headers
  2711. }
  2712. func TestInputService14ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) {
  2713. svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2714. input := &InputService14TestShapeInputShape{
  2715. Foo: aws.String(""),
  2716. }
  2717. req, _ := svc.InputService14TestCaseOperation2Request(input)
  2718. r := req.HTTPRequest
  2719. // build request
  2720. restjson.Build(req)
  2721. assert.NoError(t, req.Error)
  2722. // assert URL
  2723. awstesting.AssertURL(t, "https://test/path?abc=mno&param-name=", r.URL.String())
  2724. // assert headers
  2725. }
  2726. func TestInputService15ProtocolTestRecursiveShapesCase1(t *testing.T) {
  2727. svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2728. input := &InputService15TestShapeInputShape{
  2729. RecursiveStruct: &InputService15TestShapeRecursiveStructType{
  2730. NoRecurse: aws.String("foo"),
  2731. },
  2732. }
  2733. req, _ := svc.InputService15TestCaseOperation1Request(input)
  2734. r := req.HTTPRequest
  2735. // build request
  2736. restjson.Build(req)
  2737. assert.NoError(t, req.Error)
  2738. // assert body
  2739. assert.NotNil(t, r.Body)
  2740. body, _ := ioutil.ReadAll(r.Body)
  2741. awstesting.AssertJSON(t, `{"RecursiveStruct":{"NoRecurse":"foo"}}`, util.Trim(string(body)))
  2742. // assert URL
  2743. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2744. // assert headers
  2745. }
  2746. func TestInputService15ProtocolTestRecursiveShapesCase2(t *testing.T) {
  2747. svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2748. input := &InputService15TestShapeInputShape{
  2749. RecursiveStruct: &InputService15TestShapeRecursiveStructType{
  2750. RecursiveStruct: &InputService15TestShapeRecursiveStructType{
  2751. NoRecurse: aws.String("foo"),
  2752. },
  2753. },
  2754. }
  2755. req, _ := svc.InputService15TestCaseOperation2Request(input)
  2756. r := req.HTTPRequest
  2757. // build request
  2758. restjson.Build(req)
  2759. assert.NoError(t, req.Error)
  2760. // assert body
  2761. assert.NotNil(t, r.Body)
  2762. body, _ := ioutil.ReadAll(r.Body)
  2763. awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}`, util.Trim(string(body)))
  2764. // assert URL
  2765. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2766. // assert headers
  2767. }
  2768. func TestInputService15ProtocolTestRecursiveShapesCase3(t *testing.T) {
  2769. svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2770. input := &InputService15TestShapeInputShape{
  2771. RecursiveStruct: &InputService15TestShapeRecursiveStructType{
  2772. RecursiveStruct: &InputService15TestShapeRecursiveStructType{
  2773. RecursiveStruct: &InputService15TestShapeRecursiveStructType{
  2774. RecursiveStruct: &InputService15TestShapeRecursiveStructType{
  2775. NoRecurse: aws.String("foo"),
  2776. },
  2777. },
  2778. },
  2779. },
  2780. }
  2781. req, _ := svc.InputService15TestCaseOperation3Request(input)
  2782. r := req.HTTPRequest
  2783. // build request
  2784. restjson.Build(req)
  2785. assert.NoError(t, req.Error)
  2786. // assert body
  2787. assert.NotNil(t, r.Body)
  2788. body, _ := ioutil.ReadAll(r.Body)
  2789. awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"RecursiveStruct":{"NoRecurse":"foo"}}}}}`, util.Trim(string(body)))
  2790. // assert URL
  2791. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2792. // assert headers
  2793. }
  2794. func TestInputService15ProtocolTestRecursiveShapesCase4(t *testing.T) {
  2795. svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2796. input := &InputService15TestShapeInputShape{
  2797. RecursiveStruct: &InputService15TestShapeRecursiveStructType{
  2798. RecursiveList: []*InputService15TestShapeRecursiveStructType{
  2799. {
  2800. NoRecurse: aws.String("foo"),
  2801. },
  2802. {
  2803. NoRecurse: aws.String("bar"),
  2804. },
  2805. },
  2806. },
  2807. }
  2808. req, _ := svc.InputService15TestCaseOperation4Request(input)
  2809. r := req.HTTPRequest
  2810. // build request
  2811. restjson.Build(req)
  2812. assert.NoError(t, req.Error)
  2813. // assert body
  2814. assert.NotNil(t, r.Body)
  2815. body, _ := ioutil.ReadAll(r.Body)
  2816. awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"NoRecurse":"bar"}]}}`, util.Trim(string(body)))
  2817. // assert URL
  2818. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2819. // assert headers
  2820. }
  2821. func TestInputService15ProtocolTestRecursiveShapesCase5(t *testing.T) {
  2822. svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2823. input := &InputService15TestShapeInputShape{
  2824. RecursiveStruct: &InputService15TestShapeRecursiveStructType{
  2825. RecursiveList: []*InputService15TestShapeRecursiveStructType{
  2826. {
  2827. NoRecurse: aws.String("foo"),
  2828. },
  2829. {
  2830. RecursiveStruct: &InputService15TestShapeRecursiveStructType{
  2831. NoRecurse: aws.String("bar"),
  2832. },
  2833. },
  2834. },
  2835. },
  2836. }
  2837. req, _ := svc.InputService15TestCaseOperation5Request(input)
  2838. r := req.HTTPRequest
  2839. // build request
  2840. restjson.Build(req)
  2841. assert.NoError(t, req.Error)
  2842. // assert body
  2843. assert.NotNil(t, r.Body)
  2844. body, _ := ioutil.ReadAll(r.Body)
  2845. awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveList":[{"NoRecurse":"foo"},{"RecursiveStruct":{"NoRecurse":"bar"}}]}}`, util.Trim(string(body)))
  2846. // assert URL
  2847. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2848. // assert headers
  2849. }
  2850. func TestInputService15ProtocolTestRecursiveShapesCase6(t *testing.T) {
  2851. svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2852. input := &InputService15TestShapeInputShape{
  2853. RecursiveStruct: &InputService15TestShapeRecursiveStructType{
  2854. RecursiveMap: map[string]*InputService15TestShapeRecursiveStructType{
  2855. "bar": {
  2856. NoRecurse: aws.String("bar"),
  2857. },
  2858. "foo": {
  2859. NoRecurse: aws.String("foo"),
  2860. },
  2861. },
  2862. },
  2863. }
  2864. req, _ := svc.InputService15TestCaseOperation6Request(input)
  2865. r := req.HTTPRequest
  2866. // build request
  2867. restjson.Build(req)
  2868. assert.NoError(t, req.Error)
  2869. // assert body
  2870. assert.NotNil(t, r.Body)
  2871. body, _ := ioutil.ReadAll(r.Body)
  2872. awstesting.AssertJSON(t, `{"RecursiveStruct":{"RecursiveMap":{"foo":{"NoRecurse":"foo"},"bar":{"NoRecurse":"bar"}}}}`, util.Trim(string(body)))
  2873. // assert URL
  2874. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2875. // assert headers
  2876. }
  2877. func TestInputService16ProtocolTestTimestampValuesCase1(t *testing.T) {
  2878. svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2879. input := &InputService16TestShapeInputShape{
  2880. TimeArg: aws.Time(time.Unix(1422172800, 0)),
  2881. }
  2882. req, _ := svc.InputService16TestCaseOperation1Request(input)
  2883. r := req.HTTPRequest
  2884. // build request
  2885. restjson.Build(req)
  2886. assert.NoError(t, req.Error)
  2887. // assert body
  2888. assert.NotNil(t, r.Body)
  2889. body, _ := ioutil.ReadAll(r.Body)
  2890. awstesting.AssertJSON(t, `{"TimeArg":1422172800}`, util.Trim(string(body)))
  2891. // assert URL
  2892. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2893. // assert headers
  2894. }
  2895. func TestInputService16ProtocolTestTimestampValuesCase2(t *testing.T) {
  2896. svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2897. input := &InputService16TestShapeInputShape{
  2898. TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)),
  2899. }
  2900. req, _ := svc.InputService16TestCaseOperation2Request(input)
  2901. r := req.HTTPRequest
  2902. // build request
  2903. restjson.Build(req)
  2904. assert.NoError(t, req.Error)
  2905. // assert URL
  2906. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2907. // assert headers
  2908. assert.Equal(t, "Sun, 25 Jan 2015 08:00:00 GMT", r.Header.Get("x-amz-timearg"))
  2909. }
  2910. func TestInputService17ProtocolTestNamedLocationsInJSONBodyCase1(t *testing.T) {
  2911. svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2912. input := &InputService17TestShapeInputService17TestCaseOperation1Input{
  2913. TimeArg: aws.Time(time.Unix(1422172800, 0)),
  2914. }
  2915. req, _ := svc.InputService17TestCaseOperation1Request(input)
  2916. r := req.HTTPRequest
  2917. // build request
  2918. restjson.Build(req)
  2919. assert.NoError(t, req.Error)
  2920. // assert body
  2921. assert.NotNil(t, r.Body)
  2922. body, _ := ioutil.ReadAll(r.Body)
  2923. awstesting.AssertJSON(t, `{"timestamp_location":1422172800}`, util.Trim(string(body)))
  2924. // assert URL
  2925. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2926. // assert headers
  2927. }
  2928. func TestInputService18ProtocolTestStringPayloadCase1(t *testing.T) {
  2929. svc := NewInputService18ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2930. input := &InputService18TestShapeInputService18TestCaseOperation1Input{
  2931. Foo: aws.String("bar"),
  2932. }
  2933. req, _ := svc.InputService18TestCaseOperation1Request(input)
  2934. r := req.HTTPRequest
  2935. // build request
  2936. restjson.Build(req)
  2937. assert.NoError(t, req.Error)
  2938. // assert body
  2939. assert.NotNil(t, r.Body)
  2940. body, _ := ioutil.ReadAll(r.Body)
  2941. assert.Equal(t, `bar`, util.Trim(string(body)))
  2942. // assert URL
  2943. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2944. // assert headers
  2945. }
  2946. func TestInputService19ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) {
  2947. svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2948. input := &InputService19TestShapeInputShape{
  2949. Token: aws.String("abc123"),
  2950. }
  2951. req, _ := svc.InputService19TestCaseOperation1Request(input)
  2952. r := req.HTTPRequest
  2953. // build request
  2954. restjson.Build(req)
  2955. assert.NoError(t, req.Error)
  2956. // assert body
  2957. assert.NotNil(t, r.Body)
  2958. body, _ := ioutil.ReadAll(r.Body)
  2959. awstesting.AssertJSON(t, `{"Token":"abc123"}`, util.Trim(string(body)))
  2960. // assert URL
  2961. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2962. // assert headers
  2963. }
  2964. func TestInputService19ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) {
  2965. svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2966. input := &InputService19TestShapeInputShape{}
  2967. req, _ := svc.InputService19TestCaseOperation2Request(input)
  2968. r := req.HTTPRequest
  2969. // build request
  2970. restjson.Build(req)
  2971. assert.NoError(t, req.Error)
  2972. // assert body
  2973. assert.NotNil(t, r.Body)
  2974. body, _ := ioutil.ReadAll(r.Body)
  2975. awstesting.AssertJSON(t, `{"Token":"00000000-0000-4000-8000-000000000000"}`, util.Trim(string(body)))
  2976. // assert URL
  2977. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2978. // assert headers
  2979. }