build_test.go 108 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910
  1. package query_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/query"
  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(query.BuildHandler)
  77. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  78. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  79. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  80. return svc
  81. }
  82. // newRequest creates a new request for a InputService1ProtocolTest operation and runs any
  83. // custom request initialization.
  84. func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  85. req := c.NewRequest(op, params, data)
  86. return req
  87. }
  88. const opInputService1TestCaseOperation1 = "OperationName"
  89. // InputService1TestCaseOperation1Request generates a "aws/request.Request" representing the
  90. // client's request for the InputService1TestCaseOperation1 operation. The "output" return
  91. // value can be used to capture response data after the request's "Send" method
  92. // is called.
  93. //
  94. // See InputService1TestCaseOperation1 for usage and error information.
  95. //
  96. // Creating a request object using this method should be used when you want to inject
  97. // custom logic into the request's lifecycle using a custom handler, or if you want to
  98. // access properties on the request object before or after sending the request. If
  99. // you just want the service response, call the InputService1TestCaseOperation1 method directly
  100. // instead.
  101. //
  102. // Note: You must call the "Send" method on the returned request object in order
  103. // to execute the request.
  104. //
  105. // // Example sending a request using the InputService1TestCaseOperation1Request method.
  106. // req, resp := client.InputService1TestCaseOperation1Request(params)
  107. //
  108. // err := req.Send()
  109. // if err == nil { // resp is now filled
  110. // fmt.Println(resp)
  111. // }
  112. //
  113. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) {
  114. op := &request.Operation{
  115. Name: opInputService1TestCaseOperation1,
  116. HTTPPath: "/",
  117. }
  118. if input == nil {
  119. input = &InputService1TestShapeInputShape{}
  120. }
  121. req = c.newRequest(op, input, output)
  122. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  123. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  124. output = &InputService1TestShapeInputService1TestCaseOperation1Output{}
  125. req.Data = output
  126. return
  127. }
  128. // InputService1TestCaseOperation1 API operation for .
  129. //
  130. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  131. // with awserr.Error's Code and Message methods to get detailed information about
  132. // the error.
  133. //
  134. // See the AWS API reference guide for 's
  135. // API operation InputService1TestCaseOperation1 for usage and error information.
  136. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) {
  137. req, out := c.InputService1TestCaseOperation1Request(input)
  138. err := req.Send()
  139. return out, err
  140. }
  141. const opInputService1TestCaseOperation2 = "OperationName"
  142. // InputService1TestCaseOperation2Request generates a "aws/request.Request" representing the
  143. // client's request for the InputService1TestCaseOperation2 operation. The "output" return
  144. // value can be used to capture response data after the request's "Send" method
  145. // is called.
  146. //
  147. // See InputService1TestCaseOperation2 for usage and error information.
  148. //
  149. // Creating a request object using this method should be used when you want to inject
  150. // custom logic into the request's lifecycle using a custom handler, or if you want to
  151. // access properties on the request object before or after sending the request. If
  152. // you just want the service response, call the InputService1TestCaseOperation2 method directly
  153. // instead.
  154. //
  155. // Note: You must call the "Send" method on the returned request object in order
  156. // to execute the request.
  157. //
  158. // // Example sending a request using the InputService1TestCaseOperation2Request method.
  159. // req, resp := client.InputService1TestCaseOperation2Request(params)
  160. //
  161. // err := req.Send()
  162. // if err == nil { // resp is now filled
  163. // fmt.Println(resp)
  164. // }
  165. //
  166. func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation2Output) {
  167. op := &request.Operation{
  168. Name: opInputService1TestCaseOperation2,
  169. HTTPPath: "/",
  170. }
  171. if input == nil {
  172. input = &InputService1TestShapeInputShape{}
  173. }
  174. req = c.newRequest(op, input, output)
  175. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  176. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  177. output = &InputService1TestShapeInputService1TestCaseOperation2Output{}
  178. req.Data = output
  179. return
  180. }
  181. // InputService1TestCaseOperation2 API operation for .
  182. //
  183. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  184. // with awserr.Error's Code and Message methods to get detailed information about
  185. // the error.
  186. //
  187. // See the AWS API reference guide for 's
  188. // API operation InputService1TestCaseOperation2 for usage and error information.
  189. func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) {
  190. req, out := c.InputService1TestCaseOperation2Request(input)
  191. err := req.Send()
  192. return out, err
  193. }
  194. const opInputService1TestCaseOperation3 = "OperationName"
  195. // InputService1TestCaseOperation3Request generates a "aws/request.Request" representing the
  196. // client's request for the InputService1TestCaseOperation3 operation. The "output" return
  197. // value can be used to capture response data after the request's "Send" method
  198. // is called.
  199. //
  200. // See InputService1TestCaseOperation3 for usage and error information.
  201. //
  202. // Creating a request object using this method should be used when you want to inject
  203. // custom logic into the request's lifecycle using a custom handler, or if you want to
  204. // access properties on the request object before or after sending the request. If
  205. // you just want the service response, call the InputService1TestCaseOperation3 method directly
  206. // instead.
  207. //
  208. // Note: You must call the "Send" method on the returned request object in order
  209. // to execute the request.
  210. //
  211. // // Example sending a request using the InputService1TestCaseOperation3Request method.
  212. // req, resp := client.InputService1TestCaseOperation3Request(params)
  213. //
  214. // err := req.Send()
  215. // if err == nil { // resp is now filled
  216. // fmt.Println(resp)
  217. // }
  218. //
  219. func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation3Output) {
  220. op := &request.Operation{
  221. Name: opInputService1TestCaseOperation3,
  222. HTTPPath: "/",
  223. }
  224. if input == nil {
  225. input = &InputService1TestShapeInputShape{}
  226. }
  227. req = c.newRequest(op, input, output)
  228. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  229. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  230. output = &InputService1TestShapeInputService1TestCaseOperation3Output{}
  231. req.Data = output
  232. return
  233. }
  234. // InputService1TestCaseOperation3 API operation for .
  235. //
  236. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  237. // with awserr.Error's Code and Message methods to get detailed information about
  238. // the error.
  239. //
  240. // See the AWS API reference guide for 's
  241. // API operation InputService1TestCaseOperation3 for usage and error information.
  242. func (c *InputService1ProtocolTest) InputService1TestCaseOperation3(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) {
  243. req, out := c.InputService1TestCaseOperation3Request(input)
  244. err := req.Send()
  245. return out, err
  246. }
  247. type InputService1TestShapeInputService1TestCaseOperation1Output struct {
  248. _ struct{} `type:"structure"`
  249. }
  250. type InputService1TestShapeInputService1TestCaseOperation2Output struct {
  251. _ struct{} `type:"structure"`
  252. }
  253. type InputService1TestShapeInputService1TestCaseOperation3Output struct {
  254. _ struct{} `type:"structure"`
  255. }
  256. type InputService1TestShapeInputShape struct {
  257. _ struct{} `type:"structure"`
  258. Bar *string `type:"string"`
  259. Baz *bool `type:"boolean"`
  260. Foo *string `type:"string"`
  261. }
  262. //The service client's operations are safe to be used concurrently.
  263. // It is not safe to mutate any of the client's properties though.
  264. type InputService2ProtocolTest struct {
  265. *client.Client
  266. }
  267. // New creates a new instance of the InputService2ProtocolTest client with a session.
  268. // If additional configuration is needed for the client instance use the optional
  269. // aws.Config parameter to add your extra config.
  270. //
  271. // Example:
  272. // // Create a InputService2ProtocolTest client from just a session.
  273. // svc := inputservice2protocoltest.New(mySession)
  274. //
  275. // // Create a InputService2ProtocolTest client with additional configuration
  276. // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  277. func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest {
  278. c := p.ClientConfig("inputservice2protocoltest", cfgs...)
  279. return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  280. }
  281. // newClient creates, initializes and returns a new service client instance.
  282. func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest {
  283. svc := &InputService2ProtocolTest{
  284. Client: client.New(
  285. cfg,
  286. metadata.ClientInfo{
  287. ServiceName: "inputservice2protocoltest",
  288. SigningRegion: signingRegion,
  289. Endpoint: endpoint,
  290. APIVersion: "2014-01-01",
  291. },
  292. handlers,
  293. ),
  294. }
  295. // Handlers
  296. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  297. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  298. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  299. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  300. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  301. return svc
  302. }
  303. // newRequest creates a new request for a InputService2ProtocolTest operation and runs any
  304. // custom request initialization.
  305. func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  306. req := c.NewRequest(op, params, data)
  307. return req
  308. }
  309. const opInputService2TestCaseOperation1 = "OperationName"
  310. // InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the
  311. // client's request for the InputService2TestCaseOperation1 operation. The "output" return
  312. // value can be used to capture response data after the request's "Send" method
  313. // is called.
  314. //
  315. // See InputService2TestCaseOperation1 for usage and error information.
  316. //
  317. // Creating a request object using this method should be used when you want to inject
  318. // custom logic into the request's lifecycle using a custom handler, or if you want to
  319. // access properties on the request object before or after sending the request. If
  320. // you just want the service response, call the InputService2TestCaseOperation1 method directly
  321. // instead.
  322. //
  323. // Note: You must call the "Send" method on the returned request object in order
  324. // to execute the request.
  325. //
  326. // // Example sending a request using the InputService2TestCaseOperation1Request method.
  327. // req, resp := client.InputService2TestCaseOperation1Request(params)
  328. //
  329. // err := req.Send()
  330. // if err == nil { // resp is now filled
  331. // fmt.Println(resp)
  332. // }
  333. //
  334. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) {
  335. op := &request.Operation{
  336. Name: opInputService2TestCaseOperation1,
  337. HTTPPath: "/",
  338. }
  339. if input == nil {
  340. input = &InputService2TestShapeInputService2TestCaseOperation1Input{}
  341. }
  342. req = c.newRequest(op, input, output)
  343. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  344. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  345. output = &InputService2TestShapeInputService2TestCaseOperation1Output{}
  346. req.Data = output
  347. return
  348. }
  349. // InputService2TestCaseOperation1 API operation for .
  350. //
  351. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  352. // with awserr.Error's Code and Message methods to get detailed information about
  353. // the error.
  354. //
  355. // See the AWS API reference guide for 's
  356. // API operation InputService2TestCaseOperation1 for usage and error information.
  357. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) {
  358. req, out := c.InputService2TestCaseOperation1Request(input)
  359. err := req.Send()
  360. return out, err
  361. }
  362. type InputService2TestShapeInputService2TestCaseOperation1Input struct {
  363. _ struct{} `type:"structure"`
  364. StructArg *InputService2TestShapeStructType `type:"structure"`
  365. }
  366. type InputService2TestShapeInputService2TestCaseOperation1Output struct {
  367. _ struct{} `type:"structure"`
  368. }
  369. type InputService2TestShapeStructType struct {
  370. _ struct{} `type:"structure"`
  371. ScalarArg *string `type:"string"`
  372. }
  373. //The service client's operations are safe to be used concurrently.
  374. // It is not safe to mutate any of the client's properties though.
  375. type InputService3ProtocolTest struct {
  376. *client.Client
  377. }
  378. // New creates a new instance of the InputService3ProtocolTest client with a session.
  379. // If additional configuration is needed for the client instance use the optional
  380. // aws.Config parameter to add your extra config.
  381. //
  382. // Example:
  383. // // Create a InputService3ProtocolTest client from just a session.
  384. // svc := inputservice3protocoltest.New(mySession)
  385. //
  386. // // Create a InputService3ProtocolTest client with additional configuration
  387. // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  388. func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest {
  389. c := p.ClientConfig("inputservice3protocoltest", cfgs...)
  390. return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  391. }
  392. // newClient creates, initializes and returns a new service client instance.
  393. func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest {
  394. svc := &InputService3ProtocolTest{
  395. Client: client.New(
  396. cfg,
  397. metadata.ClientInfo{
  398. ServiceName: "inputservice3protocoltest",
  399. SigningRegion: signingRegion,
  400. Endpoint: endpoint,
  401. APIVersion: "2014-01-01",
  402. },
  403. handlers,
  404. ),
  405. }
  406. // Handlers
  407. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  408. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  409. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  410. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  411. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  412. return svc
  413. }
  414. // newRequest creates a new request for a InputService3ProtocolTest operation and runs any
  415. // custom request initialization.
  416. func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  417. req := c.NewRequest(op, params, data)
  418. return req
  419. }
  420. const opInputService3TestCaseOperation1 = "OperationName"
  421. // InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the
  422. // client's request for the InputService3TestCaseOperation1 operation. The "output" return
  423. // value can be used to capture response data after the request's "Send" method
  424. // is called.
  425. //
  426. // See InputService3TestCaseOperation1 for usage and error information.
  427. //
  428. // Creating a request object using this method should be used when you want to inject
  429. // custom logic into the request's lifecycle using a custom handler, or if you want to
  430. // access properties on the request object before or after sending the request. If
  431. // you just want the service response, call the InputService3TestCaseOperation1 method directly
  432. // instead.
  433. //
  434. // Note: You must call the "Send" method on the returned request object in order
  435. // to execute the request.
  436. //
  437. // // Example sending a request using the InputService3TestCaseOperation1Request method.
  438. // req, resp := client.InputService3TestCaseOperation1Request(params)
  439. //
  440. // err := req.Send()
  441. // if err == nil { // resp is now filled
  442. // fmt.Println(resp)
  443. // }
  444. //
  445. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) {
  446. op := &request.Operation{
  447. Name: opInputService3TestCaseOperation1,
  448. HTTPPath: "/",
  449. }
  450. if input == nil {
  451. input = &InputService3TestShapeInputShape{}
  452. }
  453. req = c.newRequest(op, input, output)
  454. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  455. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  456. output = &InputService3TestShapeInputService3TestCaseOperation1Output{}
  457. req.Data = output
  458. return
  459. }
  460. // InputService3TestCaseOperation1 API operation for .
  461. //
  462. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  463. // with awserr.Error's Code and Message methods to get detailed information about
  464. // the error.
  465. //
  466. // See the AWS API reference guide for 's
  467. // API operation InputService3TestCaseOperation1 for usage and error information.
  468. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) {
  469. req, out := c.InputService3TestCaseOperation1Request(input)
  470. err := req.Send()
  471. return out, err
  472. }
  473. const opInputService3TestCaseOperation2 = "OperationName"
  474. // InputService3TestCaseOperation2Request generates a "aws/request.Request" representing the
  475. // client's request for the InputService3TestCaseOperation2 operation. The "output" return
  476. // value can be used to capture response data after the request's "Send" method
  477. // is called.
  478. //
  479. // See InputService3TestCaseOperation2 for usage and error information.
  480. //
  481. // Creating a request object using this method should be used when you want to inject
  482. // custom logic into the request's lifecycle using a custom handler, or if you want to
  483. // access properties on the request object before or after sending the request. If
  484. // you just want the service response, call the InputService3TestCaseOperation2 method directly
  485. // instead.
  486. //
  487. // Note: You must call the "Send" method on the returned request object in order
  488. // to execute the request.
  489. //
  490. // // Example sending a request using the InputService3TestCaseOperation2Request method.
  491. // req, resp := client.InputService3TestCaseOperation2Request(params)
  492. //
  493. // err := req.Send()
  494. // if err == nil { // resp is now filled
  495. // fmt.Println(resp)
  496. // }
  497. //
  498. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation2Output) {
  499. op := &request.Operation{
  500. Name: opInputService3TestCaseOperation2,
  501. HTTPPath: "/",
  502. }
  503. if input == nil {
  504. input = &InputService3TestShapeInputShape{}
  505. }
  506. req = c.newRequest(op, input, output)
  507. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  508. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  509. output = &InputService3TestShapeInputService3TestCaseOperation2Output{}
  510. req.Data = output
  511. return
  512. }
  513. // InputService3TestCaseOperation2 API operation for .
  514. //
  515. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  516. // with awserr.Error's Code and Message methods to get detailed information about
  517. // the error.
  518. //
  519. // See the AWS API reference guide for 's
  520. // API operation InputService3TestCaseOperation2 for usage and error information.
  521. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) {
  522. req, out := c.InputService3TestCaseOperation2Request(input)
  523. err := req.Send()
  524. return out, err
  525. }
  526. type InputService3TestShapeInputService3TestCaseOperation1Output struct {
  527. _ struct{} `type:"structure"`
  528. }
  529. type InputService3TestShapeInputService3TestCaseOperation2Output struct {
  530. _ struct{} `type:"structure"`
  531. }
  532. type InputService3TestShapeInputShape struct {
  533. _ struct{} `type:"structure"`
  534. ListArg []*string `type:"list"`
  535. }
  536. //The service client's operations are safe to be used concurrently.
  537. // It is not safe to mutate any of the client's properties though.
  538. type InputService4ProtocolTest struct {
  539. *client.Client
  540. }
  541. // New creates a new instance of the InputService4ProtocolTest client with a session.
  542. // If additional configuration is needed for the client instance use the optional
  543. // aws.Config parameter to add your extra config.
  544. //
  545. // Example:
  546. // // Create a InputService4ProtocolTest client from just a session.
  547. // svc := inputservice4protocoltest.New(mySession)
  548. //
  549. // // Create a InputService4ProtocolTest client with additional configuration
  550. // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  551. func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest {
  552. c := p.ClientConfig("inputservice4protocoltest", cfgs...)
  553. return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  554. }
  555. // newClient creates, initializes and returns a new service client instance.
  556. func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest {
  557. svc := &InputService4ProtocolTest{
  558. Client: client.New(
  559. cfg,
  560. metadata.ClientInfo{
  561. ServiceName: "inputservice4protocoltest",
  562. SigningRegion: signingRegion,
  563. Endpoint: endpoint,
  564. APIVersion: "2014-01-01",
  565. },
  566. handlers,
  567. ),
  568. }
  569. // Handlers
  570. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  571. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  572. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  573. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  574. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  575. return svc
  576. }
  577. // newRequest creates a new request for a InputService4ProtocolTest operation and runs any
  578. // custom request initialization.
  579. func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  580. req := c.NewRequest(op, params, data)
  581. return req
  582. }
  583. const opInputService4TestCaseOperation1 = "OperationName"
  584. // InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the
  585. // client's request for the InputService4TestCaseOperation1 operation. The "output" return
  586. // value can be used to capture response data after the request's "Send" method
  587. // is called.
  588. //
  589. // See InputService4TestCaseOperation1 for usage and error information.
  590. //
  591. // Creating a request object using this method should be used when you want to inject
  592. // custom logic into the request's lifecycle using a custom handler, or if you want to
  593. // access properties on the request object before or after sending the request. If
  594. // you just want the service response, call the InputService4TestCaseOperation1 method directly
  595. // instead.
  596. //
  597. // Note: You must call the "Send" method on the returned request object in order
  598. // to execute the request.
  599. //
  600. // // Example sending a request using the InputService4TestCaseOperation1Request method.
  601. // req, resp := client.InputService4TestCaseOperation1Request(params)
  602. //
  603. // err := req.Send()
  604. // if err == nil { // resp is now filled
  605. // fmt.Println(resp)
  606. // }
  607. //
  608. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputShape) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) {
  609. op := &request.Operation{
  610. Name: opInputService4TestCaseOperation1,
  611. HTTPPath: "/",
  612. }
  613. if input == nil {
  614. input = &InputService4TestShapeInputShape{}
  615. }
  616. req = c.newRequest(op, input, output)
  617. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  618. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  619. output = &InputService4TestShapeInputService4TestCaseOperation1Output{}
  620. req.Data = output
  621. return
  622. }
  623. // InputService4TestCaseOperation1 API operation for .
  624. //
  625. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  626. // with awserr.Error's Code and Message methods to get detailed information about
  627. // the error.
  628. //
  629. // See the AWS API reference guide for 's
  630. // API operation InputService4TestCaseOperation1 for usage and error information.
  631. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputShape) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) {
  632. req, out := c.InputService4TestCaseOperation1Request(input)
  633. err := req.Send()
  634. return out, err
  635. }
  636. const opInputService4TestCaseOperation2 = "OperationName"
  637. // InputService4TestCaseOperation2Request generates a "aws/request.Request" representing the
  638. // client's request for the InputService4TestCaseOperation2 operation. The "output" return
  639. // value can be used to capture response data after the request's "Send" method
  640. // is called.
  641. //
  642. // See InputService4TestCaseOperation2 for usage and error information.
  643. //
  644. // Creating a request object using this method should be used when you want to inject
  645. // custom logic into the request's lifecycle using a custom handler, or if you want to
  646. // access properties on the request object before or after sending the request. If
  647. // you just want the service response, call the InputService4TestCaseOperation2 method directly
  648. // instead.
  649. //
  650. // Note: You must call the "Send" method on the returned request object in order
  651. // to execute the request.
  652. //
  653. // // Example sending a request using the InputService4TestCaseOperation2Request method.
  654. // req, resp := client.InputService4TestCaseOperation2Request(params)
  655. //
  656. // err := req.Send()
  657. // if err == nil { // resp is now filled
  658. // fmt.Println(resp)
  659. // }
  660. //
  661. func (c *InputService4ProtocolTest) InputService4TestCaseOperation2Request(input *InputService4TestShapeInputShape) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation2Output) {
  662. op := &request.Operation{
  663. Name: opInputService4TestCaseOperation2,
  664. HTTPPath: "/",
  665. }
  666. if input == nil {
  667. input = &InputService4TestShapeInputShape{}
  668. }
  669. req = c.newRequest(op, input, output)
  670. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  671. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  672. output = &InputService4TestShapeInputService4TestCaseOperation2Output{}
  673. req.Data = output
  674. return
  675. }
  676. // InputService4TestCaseOperation2 API operation for .
  677. //
  678. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  679. // with awserr.Error's Code and Message methods to get detailed information about
  680. // the error.
  681. //
  682. // See the AWS API reference guide for 's
  683. // API operation InputService4TestCaseOperation2 for usage and error information.
  684. func (c *InputService4ProtocolTest) InputService4TestCaseOperation2(input *InputService4TestShapeInputShape) (*InputService4TestShapeInputService4TestCaseOperation2Output, error) {
  685. req, out := c.InputService4TestCaseOperation2Request(input)
  686. err := req.Send()
  687. return out, err
  688. }
  689. type InputService4TestShapeInputService4TestCaseOperation1Output struct {
  690. _ struct{} `type:"structure"`
  691. }
  692. type InputService4TestShapeInputService4TestCaseOperation2Output struct {
  693. _ struct{} `type:"structure"`
  694. }
  695. type InputService4TestShapeInputShape struct {
  696. _ struct{} `type:"structure"`
  697. ListArg []*string `type:"list" flattened:"true"`
  698. NamedListArg []*string `locationNameList:"Foo" type:"list" flattened:"true"`
  699. ScalarArg *string `type:"string"`
  700. }
  701. //The service client's operations are safe to be used concurrently.
  702. // It is not safe to mutate any of the client's properties though.
  703. type InputService5ProtocolTest struct {
  704. *client.Client
  705. }
  706. // New creates a new instance of the InputService5ProtocolTest client with a session.
  707. // If additional configuration is needed for the client instance use the optional
  708. // aws.Config parameter to add your extra config.
  709. //
  710. // Example:
  711. // // Create a InputService5ProtocolTest client from just a session.
  712. // svc := inputservice5protocoltest.New(mySession)
  713. //
  714. // // Create a InputService5ProtocolTest client with additional configuration
  715. // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  716. func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest {
  717. c := p.ClientConfig("inputservice5protocoltest", cfgs...)
  718. return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  719. }
  720. // newClient creates, initializes and returns a new service client instance.
  721. func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest {
  722. svc := &InputService5ProtocolTest{
  723. Client: client.New(
  724. cfg,
  725. metadata.ClientInfo{
  726. ServiceName: "inputservice5protocoltest",
  727. SigningRegion: signingRegion,
  728. Endpoint: endpoint,
  729. APIVersion: "2014-01-01",
  730. },
  731. handlers,
  732. ),
  733. }
  734. // Handlers
  735. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  736. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  737. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  738. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  739. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  740. return svc
  741. }
  742. // newRequest creates a new request for a InputService5ProtocolTest operation and runs any
  743. // custom request initialization.
  744. func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  745. req := c.NewRequest(op, params, data)
  746. return req
  747. }
  748. const opInputService5TestCaseOperation1 = "OperationName"
  749. // InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the
  750. // client's request for the InputService5TestCaseOperation1 operation. The "output" return
  751. // value can be used to capture response data after the request's "Send" method
  752. // is called.
  753. //
  754. // See InputService5TestCaseOperation1 for usage and error information.
  755. //
  756. // Creating a request object using this method should be used when you want to inject
  757. // custom logic into the request's lifecycle using a custom handler, or if you want to
  758. // access properties on the request object before or after sending the request. If
  759. // you just want the service response, call the InputService5TestCaseOperation1 method directly
  760. // instead.
  761. //
  762. // Note: You must call the "Send" method on the returned request object in order
  763. // to execute the request.
  764. //
  765. // // Example sending a request using the InputService5TestCaseOperation1Request method.
  766. // req, resp := client.InputService5TestCaseOperation1Request(params)
  767. //
  768. // err := req.Send()
  769. // if err == nil { // resp is now filled
  770. // fmt.Println(resp)
  771. // }
  772. //
  773. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) {
  774. op := &request.Operation{
  775. Name: opInputService5TestCaseOperation1,
  776. HTTPPath: "/",
  777. }
  778. if input == nil {
  779. input = &InputService5TestShapeInputService5TestCaseOperation1Input{}
  780. }
  781. req = c.newRequest(op, input, output)
  782. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  783. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  784. output = &InputService5TestShapeInputService5TestCaseOperation1Output{}
  785. req.Data = output
  786. return
  787. }
  788. // InputService5TestCaseOperation1 API operation for .
  789. //
  790. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  791. // with awserr.Error's Code and Message methods to get detailed information about
  792. // the error.
  793. //
  794. // See the AWS API reference guide for 's
  795. // API operation InputService5TestCaseOperation1 for usage and error information.
  796. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) {
  797. req, out := c.InputService5TestCaseOperation1Request(input)
  798. err := req.Send()
  799. return out, err
  800. }
  801. type InputService5TestShapeInputService5TestCaseOperation1Input struct {
  802. _ struct{} `type:"structure"`
  803. MapArg map[string]*string `type:"map" flattened:"true"`
  804. }
  805. type InputService5TestShapeInputService5TestCaseOperation1Output struct {
  806. _ struct{} `type:"structure"`
  807. }
  808. //The service client's operations are safe to be used concurrently.
  809. // It is not safe to mutate any of the client's properties though.
  810. type InputService6ProtocolTest struct {
  811. *client.Client
  812. }
  813. // New creates a new instance of the InputService6ProtocolTest client with a session.
  814. // If additional configuration is needed for the client instance use the optional
  815. // aws.Config parameter to add your extra config.
  816. //
  817. // Example:
  818. // // Create a InputService6ProtocolTest client from just a session.
  819. // svc := inputservice6protocoltest.New(mySession)
  820. //
  821. // // Create a InputService6ProtocolTest client with additional configuration
  822. // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  823. func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest {
  824. c := p.ClientConfig("inputservice6protocoltest", cfgs...)
  825. return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  826. }
  827. // newClient creates, initializes and returns a new service client instance.
  828. func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest {
  829. svc := &InputService6ProtocolTest{
  830. Client: client.New(
  831. cfg,
  832. metadata.ClientInfo{
  833. ServiceName: "inputservice6protocoltest",
  834. SigningRegion: signingRegion,
  835. Endpoint: endpoint,
  836. APIVersion: "2014-01-01",
  837. },
  838. handlers,
  839. ),
  840. }
  841. // Handlers
  842. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  843. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  844. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  845. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  846. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  847. return svc
  848. }
  849. // newRequest creates a new request for a InputService6ProtocolTest operation and runs any
  850. // custom request initialization.
  851. func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  852. req := c.NewRequest(op, params, data)
  853. return req
  854. }
  855. const opInputService6TestCaseOperation1 = "OperationName"
  856. // InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the
  857. // client's request for the InputService6TestCaseOperation1 operation. The "output" return
  858. // value can be used to capture response data after the request's "Send" method
  859. // is called.
  860. //
  861. // See InputService6TestCaseOperation1 for usage and error information.
  862. //
  863. // Creating a request object using this method should be used when you want to inject
  864. // custom logic into the request's lifecycle using a custom handler, or if you want to
  865. // access properties on the request object before or after sending the request. If
  866. // you just want the service response, call the InputService6TestCaseOperation1 method directly
  867. // instead.
  868. //
  869. // Note: You must call the "Send" method on the returned request object in order
  870. // to execute the request.
  871. //
  872. // // Example sending a request using the InputService6TestCaseOperation1Request method.
  873. // req, resp := client.InputService6TestCaseOperation1Request(params)
  874. //
  875. // err := req.Send()
  876. // if err == nil { // resp is now filled
  877. // fmt.Println(resp)
  878. // }
  879. //
  880. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) {
  881. op := &request.Operation{
  882. Name: opInputService6TestCaseOperation1,
  883. HTTPPath: "/",
  884. }
  885. if input == nil {
  886. input = &InputService6TestShapeInputService6TestCaseOperation1Input{}
  887. }
  888. req = c.newRequest(op, input, output)
  889. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  890. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  891. output = &InputService6TestShapeInputService6TestCaseOperation1Output{}
  892. req.Data = output
  893. return
  894. }
  895. // InputService6TestCaseOperation1 API operation for .
  896. //
  897. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  898. // with awserr.Error's Code and Message methods to get detailed information about
  899. // the error.
  900. //
  901. // See the AWS API reference guide for 's
  902. // API operation InputService6TestCaseOperation1 for usage and error information.
  903. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) {
  904. req, out := c.InputService6TestCaseOperation1Request(input)
  905. err := req.Send()
  906. return out, err
  907. }
  908. type InputService6TestShapeInputService6TestCaseOperation1Input struct {
  909. _ struct{} `type:"structure"`
  910. ListArg []*string `locationNameList:"item" type:"list"`
  911. }
  912. type InputService6TestShapeInputService6TestCaseOperation1Output struct {
  913. _ struct{} `type:"structure"`
  914. }
  915. //The service client's operations are safe to be used concurrently.
  916. // It is not safe to mutate any of the client's properties though.
  917. type InputService7ProtocolTest struct {
  918. *client.Client
  919. }
  920. // New creates a new instance of the InputService7ProtocolTest client with a session.
  921. // If additional configuration is needed for the client instance use the optional
  922. // aws.Config parameter to add your extra config.
  923. //
  924. // Example:
  925. // // Create a InputService7ProtocolTest client from just a session.
  926. // svc := inputservice7protocoltest.New(mySession)
  927. //
  928. // // Create a InputService7ProtocolTest client with additional configuration
  929. // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  930. func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest {
  931. c := p.ClientConfig("inputservice7protocoltest", cfgs...)
  932. return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  933. }
  934. // newClient creates, initializes and returns a new service client instance.
  935. func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest {
  936. svc := &InputService7ProtocolTest{
  937. Client: client.New(
  938. cfg,
  939. metadata.ClientInfo{
  940. ServiceName: "inputservice7protocoltest",
  941. SigningRegion: signingRegion,
  942. Endpoint: endpoint,
  943. APIVersion: "2014-01-01",
  944. },
  945. handlers,
  946. ),
  947. }
  948. // Handlers
  949. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  950. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  951. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  952. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  953. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  954. return svc
  955. }
  956. // newRequest creates a new request for a InputService7ProtocolTest operation and runs any
  957. // custom request initialization.
  958. func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  959. req := c.NewRequest(op, params, data)
  960. return req
  961. }
  962. const opInputService7TestCaseOperation1 = "OperationName"
  963. // InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the
  964. // client's request for the InputService7TestCaseOperation1 operation. The "output" return
  965. // value can be used to capture response data after the request's "Send" method
  966. // is called.
  967. //
  968. // See InputService7TestCaseOperation1 for usage and error information.
  969. //
  970. // Creating a request object using this method should be used when you want to inject
  971. // custom logic into the request's lifecycle using a custom handler, or if you want to
  972. // access properties on the request object before or after sending the request. If
  973. // you just want the service response, call the InputService7TestCaseOperation1 method directly
  974. // instead.
  975. //
  976. // Note: You must call the "Send" method on the returned request object in order
  977. // to execute the request.
  978. //
  979. // // Example sending a request using the InputService7TestCaseOperation1Request method.
  980. // req, resp := client.InputService7TestCaseOperation1Request(params)
  981. //
  982. // err := req.Send()
  983. // if err == nil { // resp is now filled
  984. // fmt.Println(resp)
  985. // }
  986. //
  987. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) {
  988. op := &request.Operation{
  989. Name: opInputService7TestCaseOperation1,
  990. HTTPPath: "/",
  991. }
  992. if input == nil {
  993. input = &InputService7TestShapeInputService7TestCaseOperation1Input{}
  994. }
  995. req = c.newRequest(op, input, output)
  996. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  997. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  998. output = &InputService7TestShapeInputService7TestCaseOperation1Output{}
  999. req.Data = output
  1000. return
  1001. }
  1002. // InputService7TestCaseOperation1 API operation for .
  1003. //
  1004. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1005. // with awserr.Error's Code and Message methods to get detailed information about
  1006. // the error.
  1007. //
  1008. // See the AWS API reference guide for 's
  1009. // API operation InputService7TestCaseOperation1 for usage and error information.
  1010. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) {
  1011. req, out := c.InputService7TestCaseOperation1Request(input)
  1012. err := req.Send()
  1013. return out, err
  1014. }
  1015. type InputService7TestShapeInputService7TestCaseOperation1Input struct {
  1016. _ struct{} `type:"structure"`
  1017. ListArg []*string `locationNameList:"ListArgLocation" type:"list" flattened:"true"`
  1018. ScalarArg *string `type:"string"`
  1019. }
  1020. type InputService7TestShapeInputService7TestCaseOperation1Output struct {
  1021. _ struct{} `type:"structure"`
  1022. }
  1023. //The service client's operations are safe to be used concurrently.
  1024. // It is not safe to mutate any of the client's properties though.
  1025. type InputService8ProtocolTest struct {
  1026. *client.Client
  1027. }
  1028. // New creates a new instance of the InputService8ProtocolTest client with a session.
  1029. // If additional configuration is needed for the client instance use the optional
  1030. // aws.Config parameter to add your extra config.
  1031. //
  1032. // Example:
  1033. // // Create a InputService8ProtocolTest client from just a session.
  1034. // svc := inputservice8protocoltest.New(mySession)
  1035. //
  1036. // // Create a InputService8ProtocolTest client with additional configuration
  1037. // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1038. func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest {
  1039. c := p.ClientConfig("inputservice8protocoltest", cfgs...)
  1040. return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1041. }
  1042. // newClient creates, initializes and returns a new service client instance.
  1043. func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService8ProtocolTest {
  1044. svc := &InputService8ProtocolTest{
  1045. Client: client.New(
  1046. cfg,
  1047. metadata.ClientInfo{
  1048. ServiceName: "inputservice8protocoltest",
  1049. SigningRegion: signingRegion,
  1050. Endpoint: endpoint,
  1051. APIVersion: "2014-01-01",
  1052. },
  1053. handlers,
  1054. ),
  1055. }
  1056. // Handlers
  1057. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1058. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1059. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1060. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1061. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1062. return svc
  1063. }
  1064. // newRequest creates a new request for a InputService8ProtocolTest operation and runs any
  1065. // custom request initialization.
  1066. func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1067. req := c.NewRequest(op, params, data)
  1068. return req
  1069. }
  1070. const opInputService8TestCaseOperation1 = "OperationName"
  1071. // InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the
  1072. // client's request for the InputService8TestCaseOperation1 operation. The "output" return
  1073. // value can be used to capture response data after the request's "Send" method
  1074. // is called.
  1075. //
  1076. // See InputService8TestCaseOperation1 for usage and error information.
  1077. //
  1078. // Creating a request object using this method should be used when you want to inject
  1079. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1080. // access properties on the request object before or after sending the request. If
  1081. // you just want the service response, call the InputService8TestCaseOperation1 method directly
  1082. // instead.
  1083. //
  1084. // Note: You must call the "Send" method on the returned request object in order
  1085. // to execute the request.
  1086. //
  1087. // // Example sending a request using the InputService8TestCaseOperation1Request method.
  1088. // req, resp := client.InputService8TestCaseOperation1Request(params)
  1089. //
  1090. // err := req.Send()
  1091. // if err == nil { // resp is now filled
  1092. // fmt.Println(resp)
  1093. // }
  1094. //
  1095. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) {
  1096. op := &request.Operation{
  1097. Name: opInputService8TestCaseOperation1,
  1098. HTTPPath: "/",
  1099. }
  1100. if input == nil {
  1101. input = &InputService8TestShapeInputService8TestCaseOperation1Input{}
  1102. }
  1103. req = c.newRequest(op, input, output)
  1104. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1105. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1106. output = &InputService8TestShapeInputService8TestCaseOperation1Output{}
  1107. req.Data = output
  1108. return
  1109. }
  1110. // InputService8TestCaseOperation1 API operation for .
  1111. //
  1112. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1113. // with awserr.Error's Code and Message methods to get detailed information about
  1114. // the error.
  1115. //
  1116. // See the AWS API reference guide for 's
  1117. // API operation InputService8TestCaseOperation1 for usage and error information.
  1118. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) {
  1119. req, out := c.InputService8TestCaseOperation1Request(input)
  1120. err := req.Send()
  1121. return out, err
  1122. }
  1123. type InputService8TestShapeInputService8TestCaseOperation1Input struct {
  1124. _ struct{} `type:"structure"`
  1125. MapArg map[string]*string `type:"map"`
  1126. }
  1127. type InputService8TestShapeInputService8TestCaseOperation1Output struct {
  1128. _ struct{} `type:"structure"`
  1129. }
  1130. //The service client's operations are safe to be used concurrently.
  1131. // It is not safe to mutate any of the client's properties though.
  1132. type InputService9ProtocolTest struct {
  1133. *client.Client
  1134. }
  1135. // New creates a new instance of the InputService9ProtocolTest client with a session.
  1136. // If additional configuration is needed for the client instance use the optional
  1137. // aws.Config parameter to add your extra config.
  1138. //
  1139. // Example:
  1140. // // Create a InputService9ProtocolTest client from just a session.
  1141. // svc := inputservice9protocoltest.New(mySession)
  1142. //
  1143. // // Create a InputService9ProtocolTest client with additional configuration
  1144. // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1145. func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest {
  1146. c := p.ClientConfig("inputservice9protocoltest", cfgs...)
  1147. return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1148. }
  1149. // newClient creates, initializes and returns a new service client instance.
  1150. func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService9ProtocolTest {
  1151. svc := &InputService9ProtocolTest{
  1152. Client: client.New(
  1153. cfg,
  1154. metadata.ClientInfo{
  1155. ServiceName: "inputservice9protocoltest",
  1156. SigningRegion: signingRegion,
  1157. Endpoint: endpoint,
  1158. APIVersion: "2014-01-01",
  1159. },
  1160. handlers,
  1161. ),
  1162. }
  1163. // Handlers
  1164. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1165. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1166. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1167. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1168. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1169. return svc
  1170. }
  1171. // newRequest creates a new request for a InputService9ProtocolTest operation and runs any
  1172. // custom request initialization.
  1173. func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1174. req := c.NewRequest(op, params, data)
  1175. return req
  1176. }
  1177. const opInputService9TestCaseOperation1 = "OperationName"
  1178. // InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the
  1179. // client's request for the InputService9TestCaseOperation1 operation. The "output" return
  1180. // value can be used to capture response data after the request's "Send" method
  1181. // is called.
  1182. //
  1183. // See InputService9TestCaseOperation1 for usage and error information.
  1184. //
  1185. // Creating a request object using this method should be used when you want to inject
  1186. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1187. // access properties on the request object before or after sending the request. If
  1188. // you just want the service response, call the InputService9TestCaseOperation1 method directly
  1189. // instead.
  1190. //
  1191. // Note: You must call the "Send" method on the returned request object in order
  1192. // to execute the request.
  1193. //
  1194. // // Example sending a request using the InputService9TestCaseOperation1Request method.
  1195. // req, resp := client.InputService9TestCaseOperation1Request(params)
  1196. //
  1197. // err := req.Send()
  1198. // if err == nil { // resp is now filled
  1199. // fmt.Println(resp)
  1200. // }
  1201. //
  1202. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) {
  1203. op := &request.Operation{
  1204. Name: opInputService9TestCaseOperation1,
  1205. HTTPPath: "/",
  1206. }
  1207. if input == nil {
  1208. input = &InputService9TestShapeInputService9TestCaseOperation1Input{}
  1209. }
  1210. req = c.newRequest(op, input, output)
  1211. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1212. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1213. output = &InputService9TestShapeInputService9TestCaseOperation1Output{}
  1214. req.Data = output
  1215. return
  1216. }
  1217. // InputService9TestCaseOperation1 API operation for .
  1218. //
  1219. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1220. // with awserr.Error's Code and Message methods to get detailed information about
  1221. // the error.
  1222. //
  1223. // See the AWS API reference guide for 's
  1224. // API operation InputService9TestCaseOperation1 for usage and error information.
  1225. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) {
  1226. req, out := c.InputService9TestCaseOperation1Request(input)
  1227. err := req.Send()
  1228. return out, err
  1229. }
  1230. type InputService9TestShapeInputService9TestCaseOperation1Input struct {
  1231. _ struct{} `type:"structure"`
  1232. MapArg map[string]*string `locationNameKey:"TheKey" locationNameValue:"TheValue" type:"map"`
  1233. }
  1234. type InputService9TestShapeInputService9TestCaseOperation1Output struct {
  1235. _ struct{} `type:"structure"`
  1236. }
  1237. //The service client's operations are safe to be used concurrently.
  1238. // It is not safe to mutate any of the client's properties though.
  1239. type InputService10ProtocolTest struct {
  1240. *client.Client
  1241. }
  1242. // New creates a new instance of the InputService10ProtocolTest client with a session.
  1243. // If additional configuration is needed for the client instance use the optional
  1244. // aws.Config parameter to add your extra config.
  1245. //
  1246. // Example:
  1247. // // Create a InputService10ProtocolTest client from just a session.
  1248. // svc := inputservice10protocoltest.New(mySession)
  1249. //
  1250. // // Create a InputService10ProtocolTest client with additional configuration
  1251. // svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1252. func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest {
  1253. c := p.ClientConfig("inputservice10protocoltest", cfgs...)
  1254. return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1255. }
  1256. // newClient creates, initializes and returns a new service client instance.
  1257. func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService10ProtocolTest {
  1258. svc := &InputService10ProtocolTest{
  1259. Client: client.New(
  1260. cfg,
  1261. metadata.ClientInfo{
  1262. ServiceName: "inputservice10protocoltest",
  1263. SigningRegion: signingRegion,
  1264. Endpoint: endpoint,
  1265. APIVersion: "2014-01-01",
  1266. },
  1267. handlers,
  1268. ),
  1269. }
  1270. // Handlers
  1271. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1272. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1273. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1274. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1275. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1276. return svc
  1277. }
  1278. // newRequest creates a new request for a InputService10ProtocolTest operation and runs any
  1279. // custom request initialization.
  1280. func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1281. req := c.NewRequest(op, params, data)
  1282. return req
  1283. }
  1284. const opInputService10TestCaseOperation1 = "OperationName"
  1285. // InputService10TestCaseOperation1Request generates a "aws/request.Request" representing the
  1286. // client's request for the InputService10TestCaseOperation1 operation. The "output" return
  1287. // value can be used to capture response data after the request's "Send" method
  1288. // is called.
  1289. //
  1290. // See InputService10TestCaseOperation1 for usage and error information.
  1291. //
  1292. // Creating a request object using this method should be used when you want to inject
  1293. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1294. // access properties on the request object before or after sending the request. If
  1295. // you just want the service response, call the InputService10TestCaseOperation1 method directly
  1296. // instead.
  1297. //
  1298. // Note: You must call the "Send" method on the returned request object in order
  1299. // to execute the request.
  1300. //
  1301. // // Example sending a request using the InputService10TestCaseOperation1Request method.
  1302. // req, resp := client.InputService10TestCaseOperation1Request(params)
  1303. //
  1304. // err := req.Send()
  1305. // if err == nil { // resp is now filled
  1306. // fmt.Println(resp)
  1307. // }
  1308. //
  1309. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) {
  1310. op := &request.Operation{
  1311. Name: opInputService10TestCaseOperation1,
  1312. HTTPPath: "/",
  1313. }
  1314. if input == nil {
  1315. input = &InputService10TestShapeInputService10TestCaseOperation1Input{}
  1316. }
  1317. req = c.newRequest(op, input, output)
  1318. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1319. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1320. output = &InputService10TestShapeInputService10TestCaseOperation1Output{}
  1321. req.Data = output
  1322. return
  1323. }
  1324. // InputService10TestCaseOperation1 API operation for .
  1325. //
  1326. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1327. // with awserr.Error's Code and Message methods to get detailed information about
  1328. // the error.
  1329. //
  1330. // See the AWS API reference guide for 's
  1331. // API operation InputService10TestCaseOperation1 for usage and error information.
  1332. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) {
  1333. req, out := c.InputService10TestCaseOperation1Request(input)
  1334. err := req.Send()
  1335. return out, err
  1336. }
  1337. type InputService10TestShapeInputService10TestCaseOperation1Input struct {
  1338. _ struct{} `type:"structure"`
  1339. // BlobArg is automatically base64 encoded/decoded by the SDK.
  1340. BlobArg []byte `type:"blob"`
  1341. }
  1342. type InputService10TestShapeInputService10TestCaseOperation1Output struct {
  1343. _ struct{} `type:"structure"`
  1344. }
  1345. //The service client's operations are safe to be used concurrently.
  1346. // It is not safe to mutate any of the client's properties though.
  1347. type InputService11ProtocolTest struct {
  1348. *client.Client
  1349. }
  1350. // New creates a new instance of the InputService11ProtocolTest client with a session.
  1351. // If additional configuration is needed for the client instance use the optional
  1352. // aws.Config parameter to add your extra config.
  1353. //
  1354. // Example:
  1355. // // Create a InputService11ProtocolTest client from just a session.
  1356. // svc := inputservice11protocoltest.New(mySession)
  1357. //
  1358. // // Create a InputService11ProtocolTest client with additional configuration
  1359. // svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1360. func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest {
  1361. c := p.ClientConfig("inputservice11protocoltest", cfgs...)
  1362. return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1363. }
  1364. // newClient creates, initializes and returns a new service client instance.
  1365. func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService11ProtocolTest {
  1366. svc := &InputService11ProtocolTest{
  1367. Client: client.New(
  1368. cfg,
  1369. metadata.ClientInfo{
  1370. ServiceName: "inputservice11protocoltest",
  1371. SigningRegion: signingRegion,
  1372. Endpoint: endpoint,
  1373. APIVersion: "2014-01-01",
  1374. },
  1375. handlers,
  1376. ),
  1377. }
  1378. // Handlers
  1379. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1380. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1381. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1382. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1383. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1384. return svc
  1385. }
  1386. // newRequest creates a new request for a InputService11ProtocolTest operation and runs any
  1387. // custom request initialization.
  1388. func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1389. req := c.NewRequest(op, params, data)
  1390. return req
  1391. }
  1392. const opInputService11TestCaseOperation1 = "OperationName"
  1393. // InputService11TestCaseOperation1Request generates a "aws/request.Request" representing the
  1394. // client's request for the InputService11TestCaseOperation1 operation. The "output" return
  1395. // value can be used to capture response data after the request's "Send" method
  1396. // is called.
  1397. //
  1398. // See InputService11TestCaseOperation1 for usage and error information.
  1399. //
  1400. // Creating a request object using this method should be used when you want to inject
  1401. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1402. // access properties on the request object before or after sending the request. If
  1403. // you just want the service response, call the InputService11TestCaseOperation1 method directly
  1404. // instead.
  1405. //
  1406. // Note: You must call the "Send" method on the returned request object in order
  1407. // to execute the request.
  1408. //
  1409. // // Example sending a request using the InputService11TestCaseOperation1Request method.
  1410. // req, resp := client.InputService11TestCaseOperation1Request(params)
  1411. //
  1412. // err := req.Send()
  1413. // if err == nil { // resp is now filled
  1414. // fmt.Println(resp)
  1415. // }
  1416. //
  1417. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) {
  1418. op := &request.Operation{
  1419. Name: opInputService11TestCaseOperation1,
  1420. HTTPPath: "/",
  1421. }
  1422. if input == nil {
  1423. input = &InputService11TestShapeInputService11TestCaseOperation1Input{}
  1424. }
  1425. req = c.newRequest(op, input, output)
  1426. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1427. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1428. output = &InputService11TestShapeInputService11TestCaseOperation1Output{}
  1429. req.Data = output
  1430. return
  1431. }
  1432. // InputService11TestCaseOperation1 API operation for .
  1433. //
  1434. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1435. // with awserr.Error's Code and Message methods to get detailed information about
  1436. // the error.
  1437. //
  1438. // See the AWS API reference guide for 's
  1439. // API operation InputService11TestCaseOperation1 for usage and error information.
  1440. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) {
  1441. req, out := c.InputService11TestCaseOperation1Request(input)
  1442. err := req.Send()
  1443. return out, err
  1444. }
  1445. type InputService11TestShapeInputService11TestCaseOperation1Input struct {
  1446. _ struct{} `type:"structure"`
  1447. TimeArg *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  1448. }
  1449. type InputService11TestShapeInputService11TestCaseOperation1Output struct {
  1450. _ struct{} `type:"structure"`
  1451. }
  1452. //The service client's operations are safe to be used concurrently.
  1453. // It is not safe to mutate any of the client's properties though.
  1454. type InputService12ProtocolTest struct {
  1455. *client.Client
  1456. }
  1457. // New creates a new instance of the InputService12ProtocolTest client with a session.
  1458. // If additional configuration is needed for the client instance use the optional
  1459. // aws.Config parameter to add your extra config.
  1460. //
  1461. // Example:
  1462. // // Create a InputService12ProtocolTest client from just a session.
  1463. // svc := inputservice12protocoltest.New(mySession)
  1464. //
  1465. // // Create a InputService12ProtocolTest client with additional configuration
  1466. // svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1467. func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest {
  1468. c := p.ClientConfig("inputservice12protocoltest", cfgs...)
  1469. return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1470. }
  1471. // newClient creates, initializes and returns a new service client instance.
  1472. func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService12ProtocolTest {
  1473. svc := &InputService12ProtocolTest{
  1474. Client: client.New(
  1475. cfg,
  1476. metadata.ClientInfo{
  1477. ServiceName: "inputservice12protocoltest",
  1478. SigningRegion: signingRegion,
  1479. Endpoint: endpoint,
  1480. APIVersion: "2014-01-01",
  1481. },
  1482. handlers,
  1483. ),
  1484. }
  1485. // Handlers
  1486. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1487. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1488. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1489. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1490. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1491. return svc
  1492. }
  1493. // newRequest creates a new request for a InputService12ProtocolTest operation and runs any
  1494. // custom request initialization.
  1495. func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1496. req := c.NewRequest(op, params, data)
  1497. return req
  1498. }
  1499. const opInputService12TestCaseOperation1 = "OperationName"
  1500. // InputService12TestCaseOperation1Request generates a "aws/request.Request" representing the
  1501. // client's request for the InputService12TestCaseOperation1 operation. The "output" return
  1502. // value can be used to capture response data after the request's "Send" method
  1503. // is called.
  1504. //
  1505. // See InputService12TestCaseOperation1 for usage and error information.
  1506. //
  1507. // Creating a request object using this method should be used when you want to inject
  1508. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1509. // access properties on the request object before or after sending the request. If
  1510. // you just want the service response, call the InputService12TestCaseOperation1 method directly
  1511. // instead.
  1512. //
  1513. // Note: You must call the "Send" method on the returned request object in order
  1514. // to execute the request.
  1515. //
  1516. // // Example sending a request using the InputService12TestCaseOperation1Request method.
  1517. // req, resp := client.InputService12TestCaseOperation1Request(params)
  1518. //
  1519. // err := req.Send()
  1520. // if err == nil { // resp is now filled
  1521. // fmt.Println(resp)
  1522. // }
  1523. //
  1524. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) {
  1525. op := &request.Operation{
  1526. Name: opInputService12TestCaseOperation1,
  1527. HTTPPath: "/",
  1528. }
  1529. if input == nil {
  1530. input = &InputService12TestShapeInputShape{}
  1531. }
  1532. req = c.newRequest(op, input, output)
  1533. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1534. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1535. output = &InputService12TestShapeInputService12TestCaseOperation1Output{}
  1536. req.Data = output
  1537. return
  1538. }
  1539. // InputService12TestCaseOperation1 API operation for .
  1540. //
  1541. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1542. // with awserr.Error's Code and Message methods to get detailed information about
  1543. // the error.
  1544. //
  1545. // See the AWS API reference guide for 's
  1546. // API operation InputService12TestCaseOperation1 for usage and error information.
  1547. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) {
  1548. req, out := c.InputService12TestCaseOperation1Request(input)
  1549. err := req.Send()
  1550. return out, err
  1551. }
  1552. const opInputService12TestCaseOperation2 = "OperationName"
  1553. // InputService12TestCaseOperation2Request generates a "aws/request.Request" representing the
  1554. // client's request for the InputService12TestCaseOperation2 operation. The "output" return
  1555. // value can be used to capture response data after the request's "Send" method
  1556. // is called.
  1557. //
  1558. // See InputService12TestCaseOperation2 for usage and error information.
  1559. //
  1560. // Creating a request object using this method should be used when you want to inject
  1561. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1562. // access properties on the request object before or after sending the request. If
  1563. // you just want the service response, call the InputService12TestCaseOperation2 method directly
  1564. // instead.
  1565. //
  1566. // Note: You must call the "Send" method on the returned request object in order
  1567. // to execute the request.
  1568. //
  1569. // // Example sending a request using the InputService12TestCaseOperation2Request method.
  1570. // req, resp := client.InputService12TestCaseOperation2Request(params)
  1571. //
  1572. // err := req.Send()
  1573. // if err == nil { // resp is now filled
  1574. // fmt.Println(resp)
  1575. // }
  1576. //
  1577. func (c *InputService12ProtocolTest) InputService12TestCaseOperation2Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation2Output) {
  1578. op := &request.Operation{
  1579. Name: opInputService12TestCaseOperation2,
  1580. HTTPPath: "/",
  1581. }
  1582. if input == nil {
  1583. input = &InputService12TestShapeInputShape{}
  1584. }
  1585. req = c.newRequest(op, input, output)
  1586. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1587. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1588. output = &InputService12TestShapeInputService12TestCaseOperation2Output{}
  1589. req.Data = output
  1590. return
  1591. }
  1592. // InputService12TestCaseOperation2 API operation for .
  1593. //
  1594. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1595. // with awserr.Error's Code and Message methods to get detailed information about
  1596. // the error.
  1597. //
  1598. // See the AWS API reference guide for 's
  1599. // API operation InputService12TestCaseOperation2 for usage and error information.
  1600. func (c *InputService12ProtocolTest) InputService12TestCaseOperation2(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation2Output, error) {
  1601. req, out := c.InputService12TestCaseOperation2Request(input)
  1602. err := req.Send()
  1603. return out, err
  1604. }
  1605. const opInputService12TestCaseOperation3 = "OperationName"
  1606. // InputService12TestCaseOperation3Request generates a "aws/request.Request" representing the
  1607. // client's request for the InputService12TestCaseOperation3 operation. The "output" return
  1608. // value can be used to capture response data after the request's "Send" method
  1609. // is called.
  1610. //
  1611. // See InputService12TestCaseOperation3 for usage and error information.
  1612. //
  1613. // Creating a request object using this method should be used when you want to inject
  1614. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1615. // access properties on the request object before or after sending the request. If
  1616. // you just want the service response, call the InputService12TestCaseOperation3 method directly
  1617. // instead.
  1618. //
  1619. // Note: You must call the "Send" method on the returned request object in order
  1620. // to execute the request.
  1621. //
  1622. // // Example sending a request using the InputService12TestCaseOperation3Request method.
  1623. // req, resp := client.InputService12TestCaseOperation3Request(params)
  1624. //
  1625. // err := req.Send()
  1626. // if err == nil { // resp is now filled
  1627. // fmt.Println(resp)
  1628. // }
  1629. //
  1630. func (c *InputService12ProtocolTest) InputService12TestCaseOperation3Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation3Output) {
  1631. op := &request.Operation{
  1632. Name: opInputService12TestCaseOperation3,
  1633. HTTPPath: "/",
  1634. }
  1635. if input == nil {
  1636. input = &InputService12TestShapeInputShape{}
  1637. }
  1638. req = c.newRequest(op, input, output)
  1639. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1640. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1641. output = &InputService12TestShapeInputService12TestCaseOperation3Output{}
  1642. req.Data = output
  1643. return
  1644. }
  1645. // InputService12TestCaseOperation3 API operation for .
  1646. //
  1647. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1648. // with awserr.Error's Code and Message methods to get detailed information about
  1649. // the error.
  1650. //
  1651. // See the AWS API reference guide for 's
  1652. // API operation InputService12TestCaseOperation3 for usage and error information.
  1653. func (c *InputService12ProtocolTest) InputService12TestCaseOperation3(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation3Output, error) {
  1654. req, out := c.InputService12TestCaseOperation3Request(input)
  1655. err := req.Send()
  1656. return out, err
  1657. }
  1658. const opInputService12TestCaseOperation4 = "OperationName"
  1659. // InputService12TestCaseOperation4Request generates a "aws/request.Request" representing the
  1660. // client's request for the InputService12TestCaseOperation4 operation. The "output" return
  1661. // value can be used to capture response data after the request's "Send" method
  1662. // is called.
  1663. //
  1664. // See InputService12TestCaseOperation4 for usage and error information.
  1665. //
  1666. // Creating a request object using this method should be used when you want to inject
  1667. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1668. // access properties on the request object before or after sending the request. If
  1669. // you just want the service response, call the InputService12TestCaseOperation4 method directly
  1670. // instead.
  1671. //
  1672. // Note: You must call the "Send" method on the returned request object in order
  1673. // to execute the request.
  1674. //
  1675. // // Example sending a request using the InputService12TestCaseOperation4Request method.
  1676. // req, resp := client.InputService12TestCaseOperation4Request(params)
  1677. //
  1678. // err := req.Send()
  1679. // if err == nil { // resp is now filled
  1680. // fmt.Println(resp)
  1681. // }
  1682. //
  1683. func (c *InputService12ProtocolTest) InputService12TestCaseOperation4Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation4Output) {
  1684. op := &request.Operation{
  1685. Name: opInputService12TestCaseOperation4,
  1686. HTTPPath: "/",
  1687. }
  1688. if input == nil {
  1689. input = &InputService12TestShapeInputShape{}
  1690. }
  1691. req = c.newRequest(op, input, output)
  1692. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1693. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1694. output = &InputService12TestShapeInputService12TestCaseOperation4Output{}
  1695. req.Data = output
  1696. return
  1697. }
  1698. // InputService12TestCaseOperation4 API operation for .
  1699. //
  1700. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1701. // with awserr.Error's Code and Message methods to get detailed information about
  1702. // the error.
  1703. //
  1704. // See the AWS API reference guide for 's
  1705. // API operation InputService12TestCaseOperation4 for usage and error information.
  1706. func (c *InputService12ProtocolTest) InputService12TestCaseOperation4(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation4Output, error) {
  1707. req, out := c.InputService12TestCaseOperation4Request(input)
  1708. err := req.Send()
  1709. return out, err
  1710. }
  1711. const opInputService12TestCaseOperation5 = "OperationName"
  1712. // InputService12TestCaseOperation5Request generates a "aws/request.Request" representing the
  1713. // client's request for the InputService12TestCaseOperation5 operation. The "output" return
  1714. // value can be used to capture response data after the request's "Send" method
  1715. // is called.
  1716. //
  1717. // See InputService12TestCaseOperation5 for usage and error information.
  1718. //
  1719. // Creating a request object using this method should be used when you want to inject
  1720. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1721. // access properties on the request object before or after sending the request. If
  1722. // you just want the service response, call the InputService12TestCaseOperation5 method directly
  1723. // instead.
  1724. //
  1725. // Note: You must call the "Send" method on the returned request object in order
  1726. // to execute the request.
  1727. //
  1728. // // Example sending a request using the InputService12TestCaseOperation5Request method.
  1729. // req, resp := client.InputService12TestCaseOperation5Request(params)
  1730. //
  1731. // err := req.Send()
  1732. // if err == nil { // resp is now filled
  1733. // fmt.Println(resp)
  1734. // }
  1735. //
  1736. func (c *InputService12ProtocolTest) InputService12TestCaseOperation5Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation5Output) {
  1737. op := &request.Operation{
  1738. Name: opInputService12TestCaseOperation5,
  1739. HTTPPath: "/",
  1740. }
  1741. if input == nil {
  1742. input = &InputService12TestShapeInputShape{}
  1743. }
  1744. req = c.newRequest(op, input, output)
  1745. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1746. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1747. output = &InputService12TestShapeInputService12TestCaseOperation5Output{}
  1748. req.Data = output
  1749. return
  1750. }
  1751. // InputService12TestCaseOperation5 API operation for .
  1752. //
  1753. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1754. // with awserr.Error's Code and Message methods to get detailed information about
  1755. // the error.
  1756. //
  1757. // See the AWS API reference guide for 's
  1758. // API operation InputService12TestCaseOperation5 for usage and error information.
  1759. func (c *InputService12ProtocolTest) InputService12TestCaseOperation5(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation5Output, error) {
  1760. req, out := c.InputService12TestCaseOperation5Request(input)
  1761. err := req.Send()
  1762. return out, err
  1763. }
  1764. const opInputService12TestCaseOperation6 = "OperationName"
  1765. // InputService12TestCaseOperation6Request generates a "aws/request.Request" representing the
  1766. // client's request for the InputService12TestCaseOperation6 operation. The "output" return
  1767. // value can be used to capture response data after the request's "Send" method
  1768. // is called.
  1769. //
  1770. // See InputService12TestCaseOperation6 for usage and error information.
  1771. //
  1772. // Creating a request object using this method should be used when you want to inject
  1773. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1774. // access properties on the request object before or after sending the request. If
  1775. // you just want the service response, call the InputService12TestCaseOperation6 method directly
  1776. // instead.
  1777. //
  1778. // Note: You must call the "Send" method on the returned request object in order
  1779. // to execute the request.
  1780. //
  1781. // // Example sending a request using the InputService12TestCaseOperation6Request method.
  1782. // req, resp := client.InputService12TestCaseOperation6Request(params)
  1783. //
  1784. // err := req.Send()
  1785. // if err == nil { // resp is now filled
  1786. // fmt.Println(resp)
  1787. // }
  1788. //
  1789. func (c *InputService12ProtocolTest) InputService12TestCaseOperation6Request(input *InputService12TestShapeInputShape) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation6Output) {
  1790. op := &request.Operation{
  1791. Name: opInputService12TestCaseOperation6,
  1792. HTTPPath: "/",
  1793. }
  1794. if input == nil {
  1795. input = &InputService12TestShapeInputShape{}
  1796. }
  1797. req = c.newRequest(op, input, output)
  1798. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1799. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1800. output = &InputService12TestShapeInputService12TestCaseOperation6Output{}
  1801. req.Data = output
  1802. return
  1803. }
  1804. // InputService12TestCaseOperation6 API operation for .
  1805. //
  1806. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1807. // with awserr.Error's Code and Message methods to get detailed information about
  1808. // the error.
  1809. //
  1810. // See the AWS API reference guide for 's
  1811. // API operation InputService12TestCaseOperation6 for usage and error information.
  1812. func (c *InputService12ProtocolTest) InputService12TestCaseOperation6(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation6Output, error) {
  1813. req, out := c.InputService12TestCaseOperation6Request(input)
  1814. err := req.Send()
  1815. return out, err
  1816. }
  1817. type InputService12TestShapeInputService12TestCaseOperation1Output struct {
  1818. _ struct{} `type:"structure"`
  1819. }
  1820. type InputService12TestShapeInputService12TestCaseOperation2Output struct {
  1821. _ struct{} `type:"structure"`
  1822. }
  1823. type InputService12TestShapeInputService12TestCaseOperation3Output struct {
  1824. _ struct{} `type:"structure"`
  1825. }
  1826. type InputService12TestShapeInputService12TestCaseOperation4Output struct {
  1827. _ struct{} `type:"structure"`
  1828. }
  1829. type InputService12TestShapeInputService12TestCaseOperation5Output struct {
  1830. _ struct{} `type:"structure"`
  1831. }
  1832. type InputService12TestShapeInputService12TestCaseOperation6Output struct {
  1833. _ struct{} `type:"structure"`
  1834. }
  1835. type InputService12TestShapeInputShape struct {
  1836. _ struct{} `type:"structure"`
  1837. RecursiveStruct *InputService12TestShapeRecursiveStructType `type:"structure"`
  1838. }
  1839. type InputService12TestShapeRecursiveStructType struct {
  1840. _ struct{} `type:"structure"`
  1841. NoRecurse *string `type:"string"`
  1842. RecursiveList []*InputService12TestShapeRecursiveStructType `type:"list"`
  1843. RecursiveMap map[string]*InputService12TestShapeRecursiveStructType `type:"map"`
  1844. RecursiveStruct *InputService12TestShapeRecursiveStructType `type:"structure"`
  1845. }
  1846. //The service client's operations are safe to be used concurrently.
  1847. // It is not safe to mutate any of the client's properties though.
  1848. type InputService13ProtocolTest struct {
  1849. *client.Client
  1850. }
  1851. // New creates a new instance of the InputService13ProtocolTest client with a session.
  1852. // If additional configuration is needed for the client instance use the optional
  1853. // aws.Config parameter to add your extra config.
  1854. //
  1855. // Example:
  1856. // // Create a InputService13ProtocolTest client from just a session.
  1857. // svc := inputservice13protocoltest.New(mySession)
  1858. //
  1859. // // Create a InputService13ProtocolTest client with additional configuration
  1860. // svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1861. func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest {
  1862. c := p.ClientConfig("inputservice13protocoltest", cfgs...)
  1863. return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
  1864. }
  1865. // newClient creates, initializes and returns a new service client instance.
  1866. func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService13ProtocolTest {
  1867. svc := &InputService13ProtocolTest{
  1868. Client: client.New(
  1869. cfg,
  1870. metadata.ClientInfo{
  1871. ServiceName: "inputservice13protocoltest",
  1872. SigningRegion: signingRegion,
  1873. Endpoint: endpoint,
  1874. APIVersion: "2014-01-01",
  1875. },
  1876. handlers,
  1877. ),
  1878. }
  1879. // Handlers
  1880. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1881. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1882. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1883. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1884. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1885. return svc
  1886. }
  1887. // newRequest creates a new request for a InputService13ProtocolTest operation and runs any
  1888. // custom request initialization.
  1889. func (c *InputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1890. req := c.NewRequest(op, params, data)
  1891. return req
  1892. }
  1893. const opInputService13TestCaseOperation1 = "OperationName"
  1894. // InputService13TestCaseOperation1Request generates a "aws/request.Request" representing the
  1895. // client's request for the InputService13TestCaseOperation1 operation. The "output" return
  1896. // value can be used to capture response data after the request's "Send" method
  1897. // is called.
  1898. //
  1899. // See InputService13TestCaseOperation1 for usage and error information.
  1900. //
  1901. // Creating a request object using this method should be used when you want to inject
  1902. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1903. // access properties on the request object before or after sending the request. If
  1904. // you just want the service response, call the InputService13TestCaseOperation1 method directly
  1905. // instead.
  1906. //
  1907. // Note: You must call the "Send" method on the returned request object in order
  1908. // to execute the request.
  1909. //
  1910. // // Example sending a request using the InputService13TestCaseOperation1Request method.
  1911. // req, resp := client.InputService13TestCaseOperation1Request(params)
  1912. //
  1913. // err := req.Send()
  1914. // if err == nil { // resp is now filled
  1915. // fmt.Println(resp)
  1916. // }
  1917. //
  1918. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) {
  1919. op := &request.Operation{
  1920. Name: opInputService13TestCaseOperation1,
  1921. HTTPMethod: "POST",
  1922. HTTPPath: "/path",
  1923. }
  1924. if input == nil {
  1925. input = &InputService13TestShapeInputShape{}
  1926. }
  1927. req = c.newRequest(op, input, output)
  1928. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1929. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1930. output = &InputService13TestShapeInputService13TestCaseOperation1Output{}
  1931. req.Data = output
  1932. return
  1933. }
  1934. // InputService13TestCaseOperation1 API operation for .
  1935. //
  1936. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1937. // with awserr.Error's Code and Message methods to get detailed information about
  1938. // the error.
  1939. //
  1940. // See the AWS API reference guide for 's
  1941. // API operation InputService13TestCaseOperation1 for usage and error information.
  1942. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) {
  1943. req, out := c.InputService13TestCaseOperation1Request(input)
  1944. err := req.Send()
  1945. return out, err
  1946. }
  1947. const opInputService13TestCaseOperation2 = "OperationName"
  1948. // InputService13TestCaseOperation2Request generates a "aws/request.Request" representing the
  1949. // client's request for the InputService13TestCaseOperation2 operation. The "output" return
  1950. // value can be used to capture response data after the request's "Send" method
  1951. // is called.
  1952. //
  1953. // See InputService13TestCaseOperation2 for usage and error information.
  1954. //
  1955. // Creating a request object using this method should be used when you want to inject
  1956. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1957. // access properties on the request object before or after sending the request. If
  1958. // you just want the service response, call the InputService13TestCaseOperation2 method directly
  1959. // instead.
  1960. //
  1961. // Note: You must call the "Send" method on the returned request object in order
  1962. // to execute the request.
  1963. //
  1964. // // Example sending a request using the InputService13TestCaseOperation2Request method.
  1965. // req, resp := client.InputService13TestCaseOperation2Request(params)
  1966. //
  1967. // err := req.Send()
  1968. // if err == nil { // resp is now filled
  1969. // fmt.Println(resp)
  1970. // }
  1971. //
  1972. func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(input *InputService13TestShapeInputShape) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation2Output) {
  1973. op := &request.Operation{
  1974. Name: opInputService13TestCaseOperation2,
  1975. HTTPMethod: "POST",
  1976. HTTPPath: "/path",
  1977. }
  1978. if input == nil {
  1979. input = &InputService13TestShapeInputShape{}
  1980. }
  1981. req = c.newRequest(op, input, output)
  1982. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1983. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1984. output = &InputService13TestShapeInputService13TestCaseOperation2Output{}
  1985. req.Data = output
  1986. return
  1987. }
  1988. // InputService13TestCaseOperation2 API operation for .
  1989. //
  1990. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1991. // with awserr.Error's Code and Message methods to get detailed information about
  1992. // the error.
  1993. //
  1994. // See the AWS API reference guide for 's
  1995. // API operation InputService13TestCaseOperation2 for usage and error information.
  1996. func (c *InputService13ProtocolTest) InputService13TestCaseOperation2(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) {
  1997. req, out := c.InputService13TestCaseOperation2Request(input)
  1998. err := req.Send()
  1999. return out, err
  2000. }
  2001. type InputService13TestShapeInputService13TestCaseOperation1Output struct {
  2002. _ struct{} `type:"structure"`
  2003. }
  2004. type InputService13TestShapeInputService13TestCaseOperation2Output struct {
  2005. _ struct{} `type:"structure"`
  2006. }
  2007. type InputService13TestShapeInputShape struct {
  2008. _ struct{} `type:"structure"`
  2009. Token *string `type:"string" idempotencyToken:"true"`
  2010. }
  2011. //
  2012. // Tests begin here
  2013. //
  2014. func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) {
  2015. svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2016. input := &InputService1TestShapeInputShape{
  2017. Bar: aws.String("val2"),
  2018. Foo: aws.String("val1"),
  2019. }
  2020. req, _ := svc.InputService1TestCaseOperation1Request(input)
  2021. r := req.HTTPRequest
  2022. // build request
  2023. query.Build(req)
  2024. assert.NoError(t, req.Error)
  2025. // assert body
  2026. assert.NotNil(t, r.Body)
  2027. body, _ := ioutil.ReadAll(r.Body)
  2028. awstesting.AssertQuery(t, `Action=OperationName&Bar=val2&Foo=val1&Version=2014-01-01`, util.Trim(string(body)))
  2029. // assert URL
  2030. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2031. // assert headers
  2032. }
  2033. func TestInputService1ProtocolTestScalarMembersCase2(t *testing.T) {
  2034. svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2035. input := &InputService1TestShapeInputShape{
  2036. Baz: aws.Bool(true),
  2037. }
  2038. req, _ := svc.InputService1TestCaseOperation2Request(input)
  2039. r := req.HTTPRequest
  2040. // build request
  2041. query.Build(req)
  2042. assert.NoError(t, req.Error)
  2043. // assert body
  2044. assert.NotNil(t, r.Body)
  2045. body, _ := ioutil.ReadAll(r.Body)
  2046. awstesting.AssertQuery(t, `Action=OperationName&Baz=true&Version=2014-01-01`, util.Trim(string(body)))
  2047. // assert URL
  2048. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2049. // assert headers
  2050. }
  2051. func TestInputService1ProtocolTestScalarMembersCase3(t *testing.T) {
  2052. svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2053. input := &InputService1TestShapeInputShape{
  2054. Baz: aws.Bool(false),
  2055. }
  2056. req, _ := svc.InputService1TestCaseOperation3Request(input)
  2057. r := req.HTTPRequest
  2058. // build request
  2059. query.Build(req)
  2060. assert.NoError(t, req.Error)
  2061. // assert body
  2062. assert.NotNil(t, r.Body)
  2063. body, _ := ioutil.ReadAll(r.Body)
  2064. awstesting.AssertQuery(t, `Action=OperationName&Baz=false&Version=2014-01-01`, util.Trim(string(body)))
  2065. // assert URL
  2066. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2067. // assert headers
  2068. }
  2069. func TestInputService2ProtocolTestNestedStructureMembersCase1(t *testing.T) {
  2070. svc := NewInputService2ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2071. input := &InputService2TestShapeInputService2TestCaseOperation1Input{
  2072. StructArg: &InputService2TestShapeStructType{
  2073. ScalarArg: aws.String("foo"),
  2074. },
  2075. }
  2076. req, _ := svc.InputService2TestCaseOperation1Request(input)
  2077. r := req.HTTPRequest
  2078. // build request
  2079. query.Build(req)
  2080. assert.NoError(t, req.Error)
  2081. // assert body
  2082. assert.NotNil(t, r.Body)
  2083. body, _ := ioutil.ReadAll(r.Body)
  2084. awstesting.AssertQuery(t, `Action=OperationName&StructArg.ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body)))
  2085. // assert URL
  2086. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2087. // assert headers
  2088. }
  2089. func TestInputService3ProtocolTestListTypesCase1(t *testing.T) {
  2090. svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2091. input := &InputService3TestShapeInputShape{
  2092. ListArg: []*string{
  2093. aws.String("foo"),
  2094. aws.String("bar"),
  2095. aws.String("baz"),
  2096. },
  2097. }
  2098. req, _ := svc.InputService3TestCaseOperation1Request(input)
  2099. r := req.HTTPRequest
  2100. // build request
  2101. query.Build(req)
  2102. assert.NoError(t, req.Error)
  2103. // assert body
  2104. assert.NotNil(t, r.Body)
  2105. body, _ := ioutil.ReadAll(r.Body)
  2106. awstesting.AssertQuery(t, `Action=OperationName&ListArg.member.1=foo&ListArg.member.2=bar&ListArg.member.3=baz&Version=2014-01-01`, util.Trim(string(body)))
  2107. // assert URL
  2108. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2109. // assert headers
  2110. }
  2111. func TestInputService3ProtocolTestListTypesCase2(t *testing.T) {
  2112. svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2113. input := &InputService3TestShapeInputShape{
  2114. ListArg: []*string{},
  2115. }
  2116. req, _ := svc.InputService3TestCaseOperation2Request(input)
  2117. r := req.HTTPRequest
  2118. // build request
  2119. query.Build(req)
  2120. assert.NoError(t, req.Error)
  2121. // assert body
  2122. assert.NotNil(t, r.Body)
  2123. body, _ := ioutil.ReadAll(r.Body)
  2124. awstesting.AssertQuery(t, `Action=OperationName&ListArg=&Version=2014-01-01`, util.Trim(string(body)))
  2125. // assert URL
  2126. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2127. // assert headers
  2128. }
  2129. func TestInputService4ProtocolTestFlattenedListCase1(t *testing.T) {
  2130. svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2131. input := &InputService4TestShapeInputShape{
  2132. ListArg: []*string{
  2133. aws.String("a"),
  2134. aws.String("b"),
  2135. aws.String("c"),
  2136. },
  2137. ScalarArg: aws.String("foo"),
  2138. }
  2139. req, _ := svc.InputService4TestCaseOperation1Request(input)
  2140. r := req.HTTPRequest
  2141. // build request
  2142. query.Build(req)
  2143. assert.NoError(t, req.Error)
  2144. // assert body
  2145. assert.NotNil(t, r.Body)
  2146. body, _ := ioutil.ReadAll(r.Body)
  2147. awstesting.AssertQuery(t, `Action=OperationName&ListArg.1=a&ListArg.2=b&ListArg.3=c&ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body)))
  2148. // assert URL
  2149. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2150. // assert headers
  2151. }
  2152. func TestInputService4ProtocolTestFlattenedListCase2(t *testing.T) {
  2153. svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2154. input := &InputService4TestShapeInputShape{
  2155. NamedListArg: []*string{
  2156. aws.String("a"),
  2157. },
  2158. }
  2159. req, _ := svc.InputService4TestCaseOperation2Request(input)
  2160. r := req.HTTPRequest
  2161. // build request
  2162. query.Build(req)
  2163. assert.NoError(t, req.Error)
  2164. // assert body
  2165. assert.NotNil(t, r.Body)
  2166. body, _ := ioutil.ReadAll(r.Body)
  2167. awstesting.AssertQuery(t, `Action=OperationName&Foo.1=a&Version=2014-01-01`, util.Trim(string(body)))
  2168. // assert URL
  2169. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2170. // assert headers
  2171. }
  2172. func TestInputService5ProtocolTestSerializeFlattenedMapTypeCase1(t *testing.T) {
  2173. svc := NewInputService5ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2174. input := &InputService5TestShapeInputService5TestCaseOperation1Input{
  2175. MapArg: map[string]*string{
  2176. "key1": aws.String("val1"),
  2177. "key2": aws.String("val2"),
  2178. },
  2179. }
  2180. req, _ := svc.InputService5TestCaseOperation1Request(input)
  2181. r := req.HTTPRequest
  2182. // build request
  2183. query.Build(req)
  2184. assert.NoError(t, req.Error)
  2185. // assert body
  2186. assert.NotNil(t, r.Body)
  2187. body, _ := ioutil.ReadAll(r.Body)
  2188. awstesting.AssertQuery(t, `Action=OperationName&MapArg.1.key=key1&MapArg.1.value=val1&MapArg.2.key=key2&MapArg.2.value=val2&Version=2014-01-01`, util.Trim(string(body)))
  2189. // assert URL
  2190. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2191. // assert headers
  2192. }
  2193. func TestInputService6ProtocolTestNonFlattenedListWithLocationNameCase1(t *testing.T) {
  2194. svc := NewInputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2195. input := &InputService6TestShapeInputService6TestCaseOperation1Input{
  2196. ListArg: []*string{
  2197. aws.String("a"),
  2198. aws.String("b"),
  2199. aws.String("c"),
  2200. },
  2201. }
  2202. req, _ := svc.InputService6TestCaseOperation1Request(input)
  2203. r := req.HTTPRequest
  2204. // build request
  2205. query.Build(req)
  2206. assert.NoError(t, req.Error)
  2207. // assert body
  2208. assert.NotNil(t, r.Body)
  2209. body, _ := ioutil.ReadAll(r.Body)
  2210. awstesting.AssertQuery(t, `Action=OperationName&ListArg.item.1=a&ListArg.item.2=b&ListArg.item.3=c&Version=2014-01-01`, util.Trim(string(body)))
  2211. // assert URL
  2212. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2213. // assert headers
  2214. }
  2215. func TestInputService7ProtocolTestFlattenedListWithLocationNameCase1(t *testing.T) {
  2216. svc := NewInputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2217. input := &InputService7TestShapeInputService7TestCaseOperation1Input{
  2218. ListArg: []*string{
  2219. aws.String("a"),
  2220. aws.String("b"),
  2221. aws.String("c"),
  2222. },
  2223. ScalarArg: aws.String("foo"),
  2224. }
  2225. req, _ := svc.InputService7TestCaseOperation1Request(input)
  2226. r := req.HTTPRequest
  2227. // build request
  2228. query.Build(req)
  2229. assert.NoError(t, req.Error)
  2230. // assert body
  2231. assert.NotNil(t, r.Body)
  2232. body, _ := ioutil.ReadAll(r.Body)
  2233. awstesting.AssertQuery(t, `Action=OperationName&ListArgLocation.1=a&ListArgLocation.2=b&ListArgLocation.3=c&ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body)))
  2234. // assert URL
  2235. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2236. // assert headers
  2237. }
  2238. func TestInputService8ProtocolTestSerializeMapTypeCase1(t *testing.T) {
  2239. svc := NewInputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2240. input := &InputService8TestShapeInputService8TestCaseOperation1Input{
  2241. MapArg: map[string]*string{
  2242. "key1": aws.String("val1"),
  2243. "key2": aws.String("val2"),
  2244. },
  2245. }
  2246. req, _ := svc.InputService8TestCaseOperation1Request(input)
  2247. r := req.HTTPRequest
  2248. // build request
  2249. query.Build(req)
  2250. assert.NoError(t, req.Error)
  2251. // assert body
  2252. assert.NotNil(t, r.Body)
  2253. body, _ := ioutil.ReadAll(r.Body)
  2254. awstesting.AssertQuery(t, `Action=OperationName&MapArg.entry.1.key=key1&MapArg.entry.1.value=val1&MapArg.entry.2.key=key2&MapArg.entry.2.value=val2&Version=2014-01-01`, util.Trim(string(body)))
  2255. // assert URL
  2256. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2257. // assert headers
  2258. }
  2259. func TestInputService9ProtocolTestSerializeMapTypeWithLocationNameCase1(t *testing.T) {
  2260. svc := NewInputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2261. input := &InputService9TestShapeInputService9TestCaseOperation1Input{
  2262. MapArg: map[string]*string{
  2263. "key1": aws.String("val1"),
  2264. "key2": aws.String("val2"),
  2265. },
  2266. }
  2267. req, _ := svc.InputService9TestCaseOperation1Request(input)
  2268. r := req.HTTPRequest
  2269. // build request
  2270. query.Build(req)
  2271. assert.NoError(t, req.Error)
  2272. // assert body
  2273. assert.NotNil(t, r.Body)
  2274. body, _ := ioutil.ReadAll(r.Body)
  2275. awstesting.AssertQuery(t, `Action=OperationName&MapArg.entry.1.TheKey=key1&MapArg.entry.1.TheValue=val1&MapArg.entry.2.TheKey=key2&MapArg.entry.2.TheValue=val2&Version=2014-01-01`, util.Trim(string(body)))
  2276. // assert URL
  2277. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2278. // assert headers
  2279. }
  2280. func TestInputService10ProtocolTestBase64EncodedBlobsCase1(t *testing.T) {
  2281. svc := NewInputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2282. input := &InputService10TestShapeInputService10TestCaseOperation1Input{
  2283. BlobArg: []byte("foo"),
  2284. }
  2285. req, _ := svc.InputService10TestCaseOperation1Request(input)
  2286. r := req.HTTPRequest
  2287. // build request
  2288. query.Build(req)
  2289. assert.NoError(t, req.Error)
  2290. // assert body
  2291. assert.NotNil(t, r.Body)
  2292. body, _ := ioutil.ReadAll(r.Body)
  2293. awstesting.AssertQuery(t, `Action=OperationName&BlobArg=Zm9v&Version=2014-01-01`, util.Trim(string(body)))
  2294. // assert URL
  2295. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2296. // assert headers
  2297. }
  2298. func TestInputService11ProtocolTestTimestampValuesCase1(t *testing.T) {
  2299. svc := NewInputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2300. input := &InputService11TestShapeInputService11TestCaseOperation1Input{
  2301. TimeArg: aws.Time(time.Unix(1422172800, 0)),
  2302. }
  2303. req, _ := svc.InputService11TestCaseOperation1Request(input)
  2304. r := req.HTTPRequest
  2305. // build request
  2306. query.Build(req)
  2307. assert.NoError(t, req.Error)
  2308. // assert body
  2309. assert.NotNil(t, r.Body)
  2310. body, _ := ioutil.ReadAll(r.Body)
  2311. awstesting.AssertQuery(t, `Action=OperationName&TimeArg=2015-01-25T08%3A00%3A00Z&Version=2014-01-01`, util.Trim(string(body)))
  2312. // assert URL
  2313. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2314. // assert headers
  2315. }
  2316. func TestInputService12ProtocolTestRecursiveShapesCase1(t *testing.T) {
  2317. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2318. input := &InputService12TestShapeInputShape{
  2319. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2320. NoRecurse: aws.String("foo"),
  2321. },
  2322. }
  2323. req, _ := svc.InputService12TestCaseOperation1Request(input)
  2324. r := req.HTTPRequest
  2325. // build request
  2326. query.Build(req)
  2327. assert.NoError(t, req.Error)
  2328. // assert body
  2329. assert.NotNil(t, r.Body)
  2330. body, _ := ioutil.ReadAll(r.Body)
  2331. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body)))
  2332. // assert URL
  2333. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2334. // assert headers
  2335. }
  2336. func TestInputService12ProtocolTestRecursiveShapesCase2(t *testing.T) {
  2337. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2338. input := &InputService12TestShapeInputShape{
  2339. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2340. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2341. NoRecurse: aws.String("foo"),
  2342. },
  2343. },
  2344. }
  2345. req, _ := svc.InputService12TestCaseOperation2Request(input)
  2346. r := req.HTTPRequest
  2347. // build request
  2348. query.Build(req)
  2349. assert.NoError(t, req.Error)
  2350. // assert body
  2351. assert.NotNil(t, r.Body)
  2352. body, _ := ioutil.ReadAll(r.Body)
  2353. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body)))
  2354. // assert URL
  2355. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2356. // assert headers
  2357. }
  2358. func TestInputService12ProtocolTestRecursiveShapesCase3(t *testing.T) {
  2359. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2360. input := &InputService12TestShapeInputShape{
  2361. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2362. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2363. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2364. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2365. NoRecurse: aws.String("foo"),
  2366. },
  2367. },
  2368. },
  2369. },
  2370. }
  2371. req, _ := svc.InputService12TestCaseOperation3Request(input)
  2372. r := req.HTTPRequest
  2373. // build request
  2374. query.Build(req)
  2375. assert.NoError(t, req.Error)
  2376. // assert body
  2377. assert.NotNil(t, r.Body)
  2378. body, _ := ioutil.ReadAll(r.Body)
  2379. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveStruct.RecursiveStruct.RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body)))
  2380. // assert URL
  2381. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2382. // assert headers
  2383. }
  2384. func TestInputService12ProtocolTestRecursiveShapesCase4(t *testing.T) {
  2385. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2386. input := &InputService12TestShapeInputShape{
  2387. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2388. RecursiveList: []*InputService12TestShapeRecursiveStructType{
  2389. {
  2390. NoRecurse: aws.String("foo"),
  2391. },
  2392. {
  2393. NoRecurse: aws.String("bar"),
  2394. },
  2395. },
  2396. },
  2397. }
  2398. req, _ := svc.InputService12TestCaseOperation4Request(input)
  2399. r := req.HTTPRequest
  2400. // build request
  2401. query.Build(req)
  2402. assert.NoError(t, req.Error)
  2403. // assert body
  2404. assert.NotNil(t, r.Body)
  2405. body, _ := ioutil.ReadAll(r.Body)
  2406. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveList.member.1.NoRecurse=foo&RecursiveStruct.RecursiveList.member.2.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body)))
  2407. // assert URL
  2408. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2409. // assert headers
  2410. }
  2411. func TestInputService12ProtocolTestRecursiveShapesCase5(t *testing.T) {
  2412. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2413. input := &InputService12TestShapeInputShape{
  2414. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2415. RecursiveList: []*InputService12TestShapeRecursiveStructType{
  2416. {
  2417. NoRecurse: aws.String("foo"),
  2418. },
  2419. {
  2420. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2421. NoRecurse: aws.String("bar"),
  2422. },
  2423. },
  2424. },
  2425. },
  2426. }
  2427. req, _ := svc.InputService12TestCaseOperation5Request(input)
  2428. r := req.HTTPRequest
  2429. // build request
  2430. query.Build(req)
  2431. assert.NoError(t, req.Error)
  2432. // assert body
  2433. assert.NotNil(t, r.Body)
  2434. body, _ := ioutil.ReadAll(r.Body)
  2435. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveList.member.1.NoRecurse=foo&RecursiveStruct.RecursiveList.member.2.RecursiveStruct.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body)))
  2436. // assert URL
  2437. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2438. // assert headers
  2439. }
  2440. func TestInputService12ProtocolTestRecursiveShapesCase6(t *testing.T) {
  2441. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2442. input := &InputService12TestShapeInputShape{
  2443. RecursiveStruct: &InputService12TestShapeRecursiveStructType{
  2444. RecursiveMap: map[string]*InputService12TestShapeRecursiveStructType{
  2445. "bar": {
  2446. NoRecurse: aws.String("bar"),
  2447. },
  2448. "foo": {
  2449. NoRecurse: aws.String("foo"),
  2450. },
  2451. },
  2452. },
  2453. }
  2454. req, _ := svc.InputService12TestCaseOperation6Request(input)
  2455. r := req.HTTPRequest
  2456. // build request
  2457. query.Build(req)
  2458. assert.NoError(t, req.Error)
  2459. // assert body
  2460. assert.NotNil(t, r.Body)
  2461. body, _ := ioutil.ReadAll(r.Body)
  2462. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveMap.entry.1.key=foo&RecursiveStruct.RecursiveMap.entry.1.value.NoRecurse=foo&RecursiveStruct.RecursiveMap.entry.2.key=bar&RecursiveStruct.RecursiveMap.entry.2.value.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body)))
  2463. // assert URL
  2464. awstesting.AssertURL(t, "https://test/", r.URL.String())
  2465. // assert headers
  2466. }
  2467. func TestInputService13ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) {
  2468. svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2469. input := &InputService13TestShapeInputShape{
  2470. Token: aws.String("abc123"),
  2471. }
  2472. req, _ := svc.InputService13TestCaseOperation1Request(input)
  2473. r := req.HTTPRequest
  2474. // build request
  2475. query.Build(req)
  2476. assert.NoError(t, req.Error)
  2477. // assert body
  2478. assert.NotNil(t, r.Body)
  2479. body, _ := ioutil.ReadAll(r.Body)
  2480. awstesting.AssertQuery(t, `Token=abc123`, util.Trim(string(body)))
  2481. // assert URL
  2482. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2483. // assert headers
  2484. }
  2485. func TestInputService13ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) {
  2486. svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  2487. input := &InputService13TestShapeInputShape{}
  2488. req, _ := svc.InputService13TestCaseOperation2Request(input)
  2489. r := req.HTTPRequest
  2490. // build request
  2491. query.Build(req)
  2492. assert.NoError(t, req.Error)
  2493. // assert body
  2494. assert.NotNil(t, r.Body)
  2495. body, _ := ioutil.ReadAll(r.Body)
  2496. awstesting.AssertQuery(t, `Token=00000000-0000-4000-8000-000000000000`, util.Trim(string(body)))
  2497. // assert URL
  2498. awstesting.AssertURL(t, "https://test/path", r.URL.String())
  2499. // assert headers
  2500. }