build_test.go 143 KB

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