| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406 |
- package restxml_test
- import (
- "bytes"
- "encoding/json"
- "encoding/xml"
- "fmt"
- "io"
- "io/ioutil"
- "net/http"
- "net/url"
- "testing"
- "time"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/client"
- "github.com/aws/aws-sdk-go/aws/client/metadata"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/aws/signer/v4"
- "github.com/aws/aws-sdk-go/awstesting"
- "github.com/aws/aws-sdk-go/awstesting/unit"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/restxml"
- "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
- "github.com/aws/aws-sdk-go/private/util"
- "github.com/stretchr/testify/assert"
- )
- var _ bytes.Buffer // always import bytes
- var _ http.Request
- var _ json.Marshaler
- var _ time.Time
- var _ xmlutil.XMLNode
- var _ xml.Attr
- var _ = ioutil.Discard
- var _ = util.Trim("")
- var _ = url.Values{}
- var _ = io.EOF
- var _ = aws.String
- var _ = fmt.Println
- func init() {
- protocol.RandReader = &awstesting.ZeroReader{}
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService1ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService1ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService1ProtocolTest client from just a session.
- // svc := inputservice1protocoltest.New(mySession)
- //
- // // Create a InputService1ProtocolTest client with additional configuration
- // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest {
- c := p.ClientConfig("inputservice1protocoltest", cfgs...)
- return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService1ProtocolTest {
- svc := &InputService1ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice1protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService1ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService1TestCaseOperation1 = "OperationName"
- // InputService1TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService1TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService1TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService1TestCaseOperation1Request method.
- // req, resp := client.InputService1TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService1TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/2014-01-01/hostedzone",
- }
- if input == nil {
- input = &InputService1TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService1TestShapeInputService1TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) {
- req, out := c.InputService1TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService1TestCaseOperation2 = "OperationName"
- // InputService1TestCaseOperation2Request generates a "aws/request.Request" representing the
- // client's request for the InputService1TestCaseOperation2 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService1TestCaseOperation2 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService1TestCaseOperation2Request method.
- // req, resp := client.InputService1TestCaseOperation2Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input *InputService1TestShapeInputShape) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation2Output) {
- op := &request.Operation{
- Name: opInputService1TestCaseOperation2,
- HTTPMethod: "PUT",
- HTTPPath: "/2014-01-01/hostedzone",
- }
- if input == nil {
- input = &InputService1TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService1TestShapeInputService1TestCaseOperation2Output{}
- req.Data = output
- return
- }
- func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) {
- req, out := c.InputService1TestCaseOperation2Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService1TestCaseOperation3 = "OperationName"
- // InputService1TestCaseOperation3Request generates a "aws/request.Request" representing the
- // client's request for the InputService1TestCaseOperation3 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService1TestCaseOperation3 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService1TestCaseOperation3Request method.
- // req, resp := client.InputService1TestCaseOperation3Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input *InputService1TestShapeInputService1TestCaseOperation3Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation3Output) {
- op := &request.Operation{
- Name: opInputService1TestCaseOperation3,
- HTTPMethod: "GET",
- HTTPPath: "/2014-01-01/hostedzone",
- }
- if input == nil {
- input = &InputService1TestShapeInputService1TestCaseOperation3Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService1TestShapeInputService1TestCaseOperation3Output{}
- req.Data = output
- return
- }
- func (c *InputService1ProtocolTest) InputService1TestCaseOperation3(input *InputService1TestShapeInputService1TestCaseOperation3Input) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) {
- req, out := c.InputService1TestCaseOperation3Request(input)
- err := req.Send()
- return out, err
- }
- type InputService1TestShapeInputService1TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService1TestShapeInputService1TestCaseOperation2Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService1TestShapeInputService1TestCaseOperation3Input struct {
- _ struct{} `type:"structure"`
- }
- type InputService1TestShapeInputService1TestCaseOperation3Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService1TestShapeInputShape struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- Description *string `type:"string"`
- Name *string `type:"string"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService2ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService2ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService2ProtocolTest client from just a session.
- // svc := inputservice2protocoltest.New(mySession)
- //
- // // Create a InputService2ProtocolTest client with additional configuration
- // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest {
- c := p.ClientConfig("inputservice2protocoltest", cfgs...)
- return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService2ProtocolTest {
- svc := &InputService2ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice2protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService2ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService2TestCaseOperation1 = "OperationName"
- // InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService2TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService2TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService2TestCaseOperation1Request method.
- // req, resp := client.InputService2TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService2TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/2014-01-01/hostedzone",
- }
- if input == nil {
- input = &InputService2TestShapeInputService2TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService2TestShapeInputService2TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) {
- req, out := c.InputService2TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService2TestShapeInputService2TestCaseOperation1Input struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- First *bool `type:"boolean"`
- Fourth *int64 `type:"integer"`
- Second *bool `type:"boolean"`
- Third *float64 `type:"float"`
- }
- type InputService2TestShapeInputService2TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService3ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService3ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService3ProtocolTest client from just a session.
- // svc := inputservice3protocoltest.New(mySession)
- //
- // // Create a InputService3ProtocolTest client with additional configuration
- // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest {
- c := p.ClientConfig("inputservice3protocoltest", cfgs...)
- return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService3ProtocolTest {
- svc := &InputService3ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice3protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService3ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService3TestCaseOperation1 = "OperationName"
- // InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService3TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService3TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService3TestCaseOperation1Request method.
- // req, resp := client.InputService3TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService3TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/2014-01-01/hostedzone",
- }
- if input == nil {
- input = &InputService3TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService3TestShapeInputService3TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) {
- req, out := c.InputService3TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService3TestCaseOperation2 = "OperationName"
- // InputService3TestCaseOperation2Request generates a "aws/request.Request" representing the
- // client's request for the InputService3TestCaseOperation2 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService3TestCaseOperation2 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService3TestCaseOperation2Request method.
- // req, resp := client.InputService3TestCaseOperation2Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input *InputService3TestShapeInputShape) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation2Output) {
- op := &request.Operation{
- Name: opInputService3TestCaseOperation2,
- HTTPMethod: "POST",
- HTTPPath: "/2014-01-01/hostedzone",
- }
- if input == nil {
- input = &InputService3TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService3TestShapeInputService3TestCaseOperation2Output{}
- req.Data = output
- return
- }
- func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) {
- req, out := c.InputService3TestCaseOperation2Request(input)
- err := req.Send()
- return out, err
- }
- type InputService3TestShapeInputService3TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService3TestShapeInputService3TestCaseOperation2Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService3TestShapeInputShape struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- Description *string `type:"string"`
- SubStructure *InputService3TestShapeSubStructure `type:"structure"`
- }
- type InputService3TestShapeSubStructure struct {
- _ struct{} `type:"structure"`
- Bar *string `type:"string"`
- Foo *string `type:"string"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService4ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService4ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService4ProtocolTest client from just a session.
- // svc := inputservice4protocoltest.New(mySession)
- //
- // // Create a InputService4ProtocolTest client with additional configuration
- // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest {
- c := p.ClientConfig("inputservice4protocoltest", cfgs...)
- return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService4ProtocolTest {
- svc := &InputService4ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice4protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService4ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService4TestCaseOperation1 = "OperationName"
- // InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService4TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService4TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService4TestCaseOperation1Request method.
- // req, resp := client.InputService4TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService4TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/2014-01-01/hostedzone",
- }
- if input == nil {
- input = &InputService4TestShapeInputService4TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService4TestShapeInputService4TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) {
- req, out := c.InputService4TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService4TestShapeInputService4TestCaseOperation1Input struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- Description *string `type:"string"`
- SubStructure *InputService4TestShapeSubStructure `type:"structure"`
- }
- type InputService4TestShapeInputService4TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService4TestShapeSubStructure struct {
- _ struct{} `type:"structure"`
- Bar *string `type:"string"`
- Foo *string `type:"string"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService5ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService5ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService5ProtocolTest client from just a session.
- // svc := inputservice5protocoltest.New(mySession)
- //
- // // Create a InputService5ProtocolTest client with additional configuration
- // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest {
- c := p.ClientConfig("inputservice5protocoltest", cfgs...)
- return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService5ProtocolTest {
- svc := &InputService5ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice5protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService5ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService5TestCaseOperation1 = "OperationName"
- // InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService5TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService5TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService5TestCaseOperation1Request method.
- // req, resp := client.InputService5TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService5TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/2014-01-01/hostedzone",
- }
- if input == nil {
- input = &InputService5TestShapeInputService5TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService5TestShapeInputService5TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) {
- req, out := c.InputService5TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService5TestShapeInputService5TestCaseOperation1Input struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- ListParam []*string `type:"list"`
- }
- type InputService5TestShapeInputService5TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService6ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService6ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService6ProtocolTest client from just a session.
- // svc := inputservice6protocoltest.New(mySession)
- //
- // // Create a InputService6ProtocolTest client with additional configuration
- // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest {
- c := p.ClientConfig("inputservice6protocoltest", cfgs...)
- return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService6ProtocolTest {
- svc := &InputService6ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice6protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService6ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService6TestCaseOperation1 = "OperationName"
- // InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService6TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService6TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService6TestCaseOperation1Request method.
- // req, resp := client.InputService6TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService6TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/2014-01-01/hostedzone",
- }
- if input == nil {
- input = &InputService6TestShapeInputService6TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService6TestShapeInputService6TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) {
- req, out := c.InputService6TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService6TestShapeInputService6TestCaseOperation1Input struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- ListParam []*string `locationName:"AlternateName" locationNameList:"NotMember" type:"list"`
- }
- type InputService6TestShapeInputService6TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService7ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService7ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService7ProtocolTest client from just a session.
- // svc := inputservice7protocoltest.New(mySession)
- //
- // // Create a InputService7ProtocolTest client with additional configuration
- // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest {
- c := p.ClientConfig("inputservice7protocoltest", cfgs...)
- return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService7ProtocolTest {
- svc := &InputService7ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice7protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService7ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService7TestCaseOperation1 = "OperationName"
- // InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService7TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService7TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService7TestCaseOperation1Request method.
- // req, resp := client.InputService7TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService7TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/2014-01-01/hostedzone",
- }
- if input == nil {
- input = &InputService7TestShapeInputService7TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService7TestShapeInputService7TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) {
- req, out := c.InputService7TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService7TestShapeInputService7TestCaseOperation1Input struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- ListParam []*string `type:"list" flattened:"true"`
- }
- type InputService7TestShapeInputService7TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService8ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService8ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService8ProtocolTest client from just a session.
- // svc := inputservice8protocoltest.New(mySession)
- //
- // // Create a InputService8ProtocolTest client with additional configuration
- // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest {
- c := p.ClientConfig("inputservice8protocoltest", cfgs...)
- return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService8ProtocolTest {
- svc := &InputService8ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice8protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService8ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService8TestCaseOperation1 = "OperationName"
- // InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService8TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService8TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService8TestCaseOperation1Request method.
- // req, resp := client.InputService8TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService8TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/2014-01-01/hostedzone",
- }
- if input == nil {
- input = &InputService8TestShapeInputService8TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService8TestShapeInputService8TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) {
- req, out := c.InputService8TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService8TestShapeInputService8TestCaseOperation1Input struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- ListParam []*string `locationName:"item" type:"list" flattened:"true"`
- }
- type InputService8TestShapeInputService8TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService9ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService9ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService9ProtocolTest client from just a session.
- // svc := inputservice9protocoltest.New(mySession)
- //
- // // Create a InputService9ProtocolTest client with additional configuration
- // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest {
- c := p.ClientConfig("inputservice9protocoltest", cfgs...)
- return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService9ProtocolTest {
- svc := &InputService9ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice9protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService9ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService9TestCaseOperation1 = "OperationName"
- // InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService9TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService9TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService9TestCaseOperation1Request method.
- // req, resp := client.InputService9TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService9TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/2014-01-01/hostedzone",
- }
- if input == nil {
- input = &InputService9TestShapeInputService9TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService9TestShapeInputService9TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) {
- req, out := c.InputService9TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService9TestShapeInputService9TestCaseOperation1Input struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- ListParam []*InputService9TestShapeSingleFieldStruct `locationName:"item" type:"list" flattened:"true"`
- }
- type InputService9TestShapeInputService9TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService9TestShapeSingleFieldStruct struct {
- _ struct{} `type:"structure"`
- Element *string `locationName:"value" type:"string"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService10ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService10ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService10ProtocolTest client from just a session.
- // svc := inputservice10protocoltest.New(mySession)
- //
- // // Create a InputService10ProtocolTest client with additional configuration
- // svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest {
- c := p.ClientConfig("inputservice10protocoltest", cfgs...)
- return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService10ProtocolTest {
- svc := &InputService10ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice10protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService10ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService10TestCaseOperation1 = "OperationName"
- // InputService10TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService10TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService10TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService10TestCaseOperation1Request method.
- // req, resp := client.InputService10TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService10TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/2014-01-01/hostedzone",
- }
- if input == nil {
- input = &InputService10TestShapeInputService10TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService10TestShapeInputService10TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) {
- req, out := c.InputService10TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService10TestShapeInputService10TestCaseOperation1Input struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- StructureParam *InputService10TestShapeStructureShape `type:"structure"`
- }
- type InputService10TestShapeInputService10TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService10TestShapeStructureShape struct {
- _ struct{} `type:"structure"`
- // B is automatically base64 encoded/decoded by the SDK.
- B []byte `locationName:"b" type:"blob"`
- T *time.Time `locationName:"t" type:"timestamp" timestampFormat:"iso8601"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService11ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService11ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService11ProtocolTest client from just a session.
- // svc := inputservice11protocoltest.New(mySession)
- //
- // // Create a InputService11ProtocolTest client with additional configuration
- // svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest {
- c := p.ClientConfig("inputservice11protocoltest", cfgs...)
- return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService11ProtocolTest {
- svc := &InputService11ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice11protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService11ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService11TestCaseOperation1 = "OperationName"
- // InputService11TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService11TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService11TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService11TestCaseOperation1Request method.
- // req, resp := client.InputService11TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService11TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &InputService11TestShapeInputService11TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService11TestShapeInputService11TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) {
- req, out := c.InputService11TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService11TestShapeInputService11TestCaseOperation1Input struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- Foo map[string]*string `location:"headers" locationName:"x-foo-" type:"map"`
- }
- type InputService11TestShapeInputService11TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService12ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService12ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService12ProtocolTest client from just a session.
- // svc := inputservice12protocoltest.New(mySession)
- //
- // // Create a InputService12ProtocolTest client with additional configuration
- // svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest {
- c := p.ClientConfig("inputservice12protocoltest", cfgs...)
- return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService12ProtocolTest {
- svc := &InputService12ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice12protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService12ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService12TestCaseOperation1 = "OperationName"
- // InputService12TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService12TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService12TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService12TestCaseOperation1Request method.
- // req, resp := client.InputService12TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputService12TestCaseOperation1Input) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService12TestCaseOperation1,
- HTTPMethod: "GET",
- HTTPPath: "/path",
- }
- if input == nil {
- input = &InputService12TestShapeInputService12TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService12TestShapeInputService12TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputService12TestCaseOperation1Input) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) {
- req, out := c.InputService12TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService12TestShapeInputService12TestCaseOperation1Input struct {
- _ struct{} `type:"structure"`
- Items []*string `location:"querystring" locationName:"item" type:"list"`
- }
- type InputService12TestShapeInputService12TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService13ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService13ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService13ProtocolTest client from just a session.
- // svc := inputservice13protocoltest.New(mySession)
- //
- // // Create a InputService13ProtocolTest client with additional configuration
- // svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest {
- c := p.ClientConfig("inputservice13protocoltest", cfgs...)
- return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService13ProtocolTest {
- svc := &InputService13ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice13protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService13ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService13TestCaseOperation1 = "OperationName"
- // InputService13TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService13TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService13TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService13TestCaseOperation1Request method.
- // req, resp := client.InputService13TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputService13TestCaseOperation1Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService13TestCaseOperation1,
- HTTPMethod: "GET",
- HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
- }
- if input == nil {
- input = &InputService13TestShapeInputService13TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService13TestShapeInputService13TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputService13TestCaseOperation1Input) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) {
- req, out := c.InputService13TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService13TestShapeInputService13TestCaseOperation1Input struct {
- _ struct{} `type:"structure"`
- PipelineId *string `location:"uri" type:"string"`
- QueryDoc map[string]*string `location:"querystring" type:"map"`
- }
- type InputService13TestShapeInputService13TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService14ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService14ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService14ProtocolTest client from just a session.
- // svc := inputservice14protocoltest.New(mySession)
- //
- // // Create a InputService14ProtocolTest client with additional configuration
- // svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest {
- c := p.ClientConfig("inputservice14protocoltest", cfgs...)
- return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService14ProtocolTest {
- svc := &InputService14ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice14protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService14ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService14ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService14TestCaseOperation1 = "OperationName"
- // InputService14TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService14TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService14TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService14TestCaseOperation1Request method.
- // req, resp := client.InputService14TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(input *InputService14TestShapeInputService14TestCaseOperation1Input) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService14TestCaseOperation1,
- HTTPMethod: "GET",
- HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
- }
- if input == nil {
- input = &InputService14TestShapeInputService14TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService14TestShapeInputService14TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputService14TestCaseOperation1Input) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) {
- req, out := c.InputService14TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService14TestShapeInputService14TestCaseOperation1Input struct {
- _ struct{} `type:"structure"`
- PipelineId *string `location:"uri" type:"string"`
- QueryDoc map[string][]*string `location:"querystring" type:"map"`
- }
- type InputService14TestShapeInputService14TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService15ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService15ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService15ProtocolTest client from just a session.
- // svc := inputservice15protocoltest.New(mySession)
- //
- // // Create a InputService15ProtocolTest client with additional configuration
- // svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest {
- c := p.ClientConfig("inputservice15protocoltest", cfgs...)
- return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService15ProtocolTest {
- svc := &InputService15ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice15protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService15ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService15ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService15TestCaseOperation1 = "OperationName"
- // InputService15TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService15TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService15TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService15TestCaseOperation1Request method.
- // req, resp := client.InputService15TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(input *InputService15TestShapeInputService15TestCaseOperation1Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService15TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &InputService15TestShapeInputService15TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService15TestShapeInputService15TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputService15TestCaseOperation1Input) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) {
- req, out := c.InputService15TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService15TestShapeInputService15TestCaseOperation1Input struct {
- _ struct{} `type:"structure" payload:"Foo"`
- Foo *string `locationName:"foo" type:"string"`
- }
- type InputService15TestShapeInputService15TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService16ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService16ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService16ProtocolTest client from just a session.
- // svc := inputservice16protocoltest.New(mySession)
- //
- // // Create a InputService16ProtocolTest client with additional configuration
- // svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest {
- c := p.ClientConfig("inputservice16protocoltest", cfgs...)
- return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService16ProtocolTest {
- svc := &InputService16ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice16protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService16ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService16ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService16TestCaseOperation1 = "OperationName"
- // InputService16TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService16TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService16TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService16TestCaseOperation1Request method.
- // req, resp := client.InputService16TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService16TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &InputService16TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService16TestShapeInputService16TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) {
- req, out := c.InputService16TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService16TestCaseOperation2 = "OperationName"
- // InputService16TestCaseOperation2Request generates a "aws/request.Request" representing the
- // client's request for the InputService16TestCaseOperation2 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService16TestCaseOperation2 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService16TestCaseOperation2Request method.
- // req, resp := client.InputService16TestCaseOperation2Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(input *InputService16TestShapeInputShape) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation2Output) {
- op := &request.Operation{
- Name: opInputService16TestCaseOperation2,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &InputService16TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService16TestShapeInputService16TestCaseOperation2Output{}
- req.Data = output
- return
- }
- func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) {
- req, out := c.InputService16TestCaseOperation2Request(input)
- err := req.Send()
- return out, err
- }
- type InputService16TestShapeInputService16TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService16TestShapeInputService16TestCaseOperation2Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService16TestShapeInputShape struct {
- _ struct{} `type:"structure" payload:"Foo"`
- Foo []byte `locationName:"foo" type:"blob"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService17ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService17ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService17ProtocolTest client from just a session.
- // svc := inputservice17protocoltest.New(mySession)
- //
- // // Create a InputService17ProtocolTest client with additional configuration
- // svc := inputservice17protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService17ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService17ProtocolTest {
- c := p.ClientConfig("inputservice17protocoltest", cfgs...)
- return newInputService17ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService17ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService17ProtocolTest {
- svc := &InputService17ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice17protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService17ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService17ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService17TestCaseOperation1 = "OperationName"
- // InputService17TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService17TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService17TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService17TestCaseOperation1Request method.
- // req, resp := client.InputService17TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService17TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &InputService17TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService17TestShapeInputService17TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) {
- req, out := c.InputService17TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService17TestCaseOperation2 = "OperationName"
- // InputService17TestCaseOperation2Request generates a "aws/request.Request" representing the
- // client's request for the InputService17TestCaseOperation2 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService17TestCaseOperation2 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService17TestCaseOperation2Request method.
- // req, resp := client.InputService17TestCaseOperation2Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService17ProtocolTest) InputService17TestCaseOperation2Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation2Output) {
- op := &request.Operation{
- Name: opInputService17TestCaseOperation2,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &InputService17TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService17TestShapeInputService17TestCaseOperation2Output{}
- req.Data = output
- return
- }
- func (c *InputService17ProtocolTest) InputService17TestCaseOperation2(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation2Output, error) {
- req, out := c.InputService17TestCaseOperation2Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService17TestCaseOperation3 = "OperationName"
- // InputService17TestCaseOperation3Request generates a "aws/request.Request" representing the
- // client's request for the InputService17TestCaseOperation3 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService17TestCaseOperation3 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService17TestCaseOperation3Request method.
- // req, resp := client.InputService17TestCaseOperation3Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService17ProtocolTest) InputService17TestCaseOperation3Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation3Output) {
- op := &request.Operation{
- Name: opInputService17TestCaseOperation3,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &InputService17TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService17TestShapeInputService17TestCaseOperation3Output{}
- req.Data = output
- return
- }
- func (c *InputService17ProtocolTest) InputService17TestCaseOperation3(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation3Output, error) {
- req, out := c.InputService17TestCaseOperation3Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService17TestCaseOperation4 = "OperationName"
- // InputService17TestCaseOperation4Request generates a "aws/request.Request" representing the
- // client's request for the InputService17TestCaseOperation4 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService17TestCaseOperation4 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService17TestCaseOperation4Request method.
- // req, resp := client.InputService17TestCaseOperation4Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService17ProtocolTest) InputService17TestCaseOperation4Request(input *InputService17TestShapeInputShape) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation4Output) {
- op := &request.Operation{
- Name: opInputService17TestCaseOperation4,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &InputService17TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService17TestShapeInputService17TestCaseOperation4Output{}
- req.Data = output
- return
- }
- func (c *InputService17ProtocolTest) InputService17TestCaseOperation4(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation4Output, error) {
- req, out := c.InputService17TestCaseOperation4Request(input)
- err := req.Send()
- return out, err
- }
- type InputService17TestShapeFooShape struct {
- _ struct{} `locationName:"foo" type:"structure"`
- Baz *string `locationName:"baz" type:"string"`
- }
- type InputService17TestShapeInputService17TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService17TestShapeInputService17TestCaseOperation2Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService17TestShapeInputService17TestCaseOperation3Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService17TestShapeInputService17TestCaseOperation4Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService17TestShapeInputShape struct {
- _ struct{} `type:"structure" payload:"Foo"`
- Foo *InputService17TestShapeFooShape `locationName:"foo" type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService18ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService18ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService18ProtocolTest client from just a session.
- // svc := inputservice18protocoltest.New(mySession)
- //
- // // Create a InputService18ProtocolTest client with additional configuration
- // svc := inputservice18protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService18ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService18ProtocolTest {
- c := p.ClientConfig("inputservice18protocoltest", cfgs...)
- return newInputService18ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService18ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService18ProtocolTest {
- svc := &InputService18ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice18protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService18ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService18ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService18TestCaseOperation1 = "OperationName"
- // InputService18TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService18TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService18TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService18TestCaseOperation1Request method.
- // req, resp := client.InputService18TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(input *InputService18TestShapeInputService18TestCaseOperation1Input) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService18TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &InputService18TestShapeInputService18TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService18TestShapeInputService18TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputService18TestCaseOperation1Input) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) {
- req, out := c.InputService18TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService18TestShapeGrant struct {
- _ struct{} `locationName:"Grant" type:"structure"`
- Grantee *InputService18TestShapeGrantee `type:"structure"`
- }
- type InputService18TestShapeGrantee struct {
- _ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
- EmailAddress *string `type:"string"`
- Type *string `locationName:"xsi:type" type:"string" xmlAttribute:"true"`
- }
- type InputService18TestShapeInputService18TestCaseOperation1Input struct {
- _ struct{} `type:"structure" payload:"Grant"`
- Grant *InputService18TestShapeGrant `locationName:"Grant" type:"structure"`
- }
- type InputService18TestShapeInputService18TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService19ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService19ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService19ProtocolTest client from just a session.
- // svc := inputservice19protocoltest.New(mySession)
- //
- // // Create a InputService19ProtocolTest client with additional configuration
- // svc := inputservice19protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService19ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService19ProtocolTest {
- c := p.ClientConfig("inputservice19protocoltest", cfgs...)
- return newInputService19ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService19ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService19ProtocolTest {
- svc := &InputService19ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice19protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService19ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService19ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService19TestCaseOperation1 = "OperationName"
- // InputService19TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService19TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService19TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService19TestCaseOperation1Request method.
- // req, resp := client.InputService19TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputService19TestCaseOperation1Input) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService19TestCaseOperation1,
- HTTPMethod: "GET",
- HTTPPath: "/{Bucket}/{Key+}",
- }
- if input == nil {
- input = &InputService19TestShapeInputService19TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService19TestShapeInputService19TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputService19TestCaseOperation1Input) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) {
- req, out := c.InputService19TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService19TestShapeInputService19TestCaseOperation1Input struct {
- _ struct{} `type:"structure"`
- Bucket *string `location:"uri" type:"string"`
- Key *string `location:"uri" type:"string"`
- }
- type InputService19TestShapeInputService19TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService20ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService20ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService20ProtocolTest client from just a session.
- // svc := inputservice20protocoltest.New(mySession)
- //
- // // Create a InputService20ProtocolTest client with additional configuration
- // svc := inputservice20protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService20ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService20ProtocolTest {
- c := p.ClientConfig("inputservice20protocoltest", cfgs...)
- return newInputService20ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService20ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService20ProtocolTest {
- svc := &InputService20ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice20protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService20ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService20ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService20TestCaseOperation1 = "OperationName"
- // InputService20TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService20TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService20TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService20TestCaseOperation1Request method.
- // req, resp := client.InputService20TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService20ProtocolTest) InputService20TestCaseOperation1Request(input *InputService20TestShapeInputShape) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService20TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/path",
- }
- if input == nil {
- input = &InputService20TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService20TestShapeInputService20TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService20ProtocolTest) InputService20TestCaseOperation1(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation1Output, error) {
- req, out := c.InputService20TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService20TestCaseOperation2 = "OperationName"
- // InputService20TestCaseOperation2Request generates a "aws/request.Request" representing the
- // client's request for the InputService20TestCaseOperation2 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService20TestCaseOperation2 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService20TestCaseOperation2Request method.
- // req, resp := client.InputService20TestCaseOperation2Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService20ProtocolTest) InputService20TestCaseOperation2Request(input *InputService20TestShapeInputShape) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation2Output) {
- op := &request.Operation{
- Name: opInputService20TestCaseOperation2,
- HTTPMethod: "POST",
- HTTPPath: "/path?abc=mno",
- }
- if input == nil {
- input = &InputService20TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService20TestShapeInputService20TestCaseOperation2Output{}
- req.Data = output
- return
- }
- func (c *InputService20ProtocolTest) InputService20TestCaseOperation2(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation2Output, error) {
- req, out := c.InputService20TestCaseOperation2Request(input)
- err := req.Send()
- return out, err
- }
- type InputService20TestShapeInputService20TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService20TestShapeInputService20TestCaseOperation2Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService20TestShapeInputShape struct {
- _ struct{} `type:"structure"`
- Foo *string `location:"querystring" locationName:"param-name" type:"string"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService21ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService21ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService21ProtocolTest client from just a session.
- // svc := inputservice21protocoltest.New(mySession)
- //
- // // Create a InputService21ProtocolTest client with additional configuration
- // svc := inputservice21protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService21ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService21ProtocolTest {
- c := p.ClientConfig("inputservice21protocoltest", cfgs...)
- return newInputService21ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService21ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService21ProtocolTest {
- svc := &InputService21ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice21protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService21ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService21ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService21TestCaseOperation1 = "OperationName"
- // InputService21TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService21TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService21TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService21TestCaseOperation1Request method.
- // req, resp := client.InputService21TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService21ProtocolTest) InputService21TestCaseOperation1Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService21TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/path",
- }
- if input == nil {
- input = &InputService21TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService21TestShapeInputService21TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService21ProtocolTest) InputService21TestCaseOperation1(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation1Output, error) {
- req, out := c.InputService21TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService21TestCaseOperation2 = "OperationName"
- // InputService21TestCaseOperation2Request generates a "aws/request.Request" representing the
- // client's request for the InputService21TestCaseOperation2 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService21TestCaseOperation2 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService21TestCaseOperation2Request method.
- // req, resp := client.InputService21TestCaseOperation2Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService21ProtocolTest) InputService21TestCaseOperation2Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation2Output) {
- op := &request.Operation{
- Name: opInputService21TestCaseOperation2,
- HTTPMethod: "POST",
- HTTPPath: "/path",
- }
- if input == nil {
- input = &InputService21TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService21TestShapeInputService21TestCaseOperation2Output{}
- req.Data = output
- return
- }
- func (c *InputService21ProtocolTest) InputService21TestCaseOperation2(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation2Output, error) {
- req, out := c.InputService21TestCaseOperation2Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService21TestCaseOperation3 = "OperationName"
- // InputService21TestCaseOperation3Request generates a "aws/request.Request" representing the
- // client's request for the InputService21TestCaseOperation3 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService21TestCaseOperation3 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService21TestCaseOperation3Request method.
- // req, resp := client.InputService21TestCaseOperation3Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService21ProtocolTest) InputService21TestCaseOperation3Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation3Output) {
- op := &request.Operation{
- Name: opInputService21TestCaseOperation3,
- HTTPMethod: "POST",
- HTTPPath: "/path",
- }
- if input == nil {
- input = &InputService21TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService21TestShapeInputService21TestCaseOperation3Output{}
- req.Data = output
- return
- }
- func (c *InputService21ProtocolTest) InputService21TestCaseOperation3(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation3Output, error) {
- req, out := c.InputService21TestCaseOperation3Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService21TestCaseOperation4 = "OperationName"
- // InputService21TestCaseOperation4Request generates a "aws/request.Request" representing the
- // client's request for the InputService21TestCaseOperation4 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService21TestCaseOperation4 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService21TestCaseOperation4Request method.
- // req, resp := client.InputService21TestCaseOperation4Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService21ProtocolTest) InputService21TestCaseOperation4Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation4Output) {
- op := &request.Operation{
- Name: opInputService21TestCaseOperation4,
- HTTPMethod: "POST",
- HTTPPath: "/path",
- }
- if input == nil {
- input = &InputService21TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService21TestShapeInputService21TestCaseOperation4Output{}
- req.Data = output
- return
- }
- func (c *InputService21ProtocolTest) InputService21TestCaseOperation4(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation4Output, error) {
- req, out := c.InputService21TestCaseOperation4Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService21TestCaseOperation5 = "OperationName"
- // InputService21TestCaseOperation5Request generates a "aws/request.Request" representing the
- // client's request for the InputService21TestCaseOperation5 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService21TestCaseOperation5 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService21TestCaseOperation5Request method.
- // req, resp := client.InputService21TestCaseOperation5Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService21ProtocolTest) InputService21TestCaseOperation5Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation5Output) {
- op := &request.Operation{
- Name: opInputService21TestCaseOperation5,
- HTTPMethod: "POST",
- HTTPPath: "/path",
- }
- if input == nil {
- input = &InputService21TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService21TestShapeInputService21TestCaseOperation5Output{}
- req.Data = output
- return
- }
- func (c *InputService21ProtocolTest) InputService21TestCaseOperation5(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation5Output, error) {
- req, out := c.InputService21TestCaseOperation5Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService21TestCaseOperation6 = "OperationName"
- // InputService21TestCaseOperation6Request generates a "aws/request.Request" representing the
- // client's request for the InputService21TestCaseOperation6 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService21TestCaseOperation6 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService21TestCaseOperation6Request method.
- // req, resp := client.InputService21TestCaseOperation6Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService21ProtocolTest) InputService21TestCaseOperation6Request(input *InputService21TestShapeInputShape) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation6Output) {
- op := &request.Operation{
- Name: opInputService21TestCaseOperation6,
- HTTPMethod: "POST",
- HTTPPath: "/path",
- }
- if input == nil {
- input = &InputService21TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService21TestShapeInputService21TestCaseOperation6Output{}
- req.Data = output
- return
- }
- func (c *InputService21ProtocolTest) InputService21TestCaseOperation6(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation6Output, error) {
- req, out := c.InputService21TestCaseOperation6Request(input)
- err := req.Send()
- return out, err
- }
- type InputService21TestShapeInputService21TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService21TestShapeInputService21TestCaseOperation2Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService21TestShapeInputService21TestCaseOperation3Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService21TestShapeInputService21TestCaseOperation4Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService21TestShapeInputService21TestCaseOperation5Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService21TestShapeInputService21TestCaseOperation6Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService21TestShapeInputShape struct {
- _ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
- RecursiveStruct *InputService21TestShapeRecursiveStructType `type:"structure"`
- }
- type InputService21TestShapeRecursiveStructType struct {
- _ struct{} `type:"structure"`
- NoRecurse *string `type:"string"`
- RecursiveList []*InputService21TestShapeRecursiveStructType `type:"list"`
- RecursiveMap map[string]*InputService21TestShapeRecursiveStructType `type:"map"`
- RecursiveStruct *InputService21TestShapeRecursiveStructType `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService22ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService22ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService22ProtocolTest client from just a session.
- // svc := inputservice22protocoltest.New(mySession)
- //
- // // Create a InputService22ProtocolTest client with additional configuration
- // svc := inputservice22protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService22ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService22ProtocolTest {
- c := p.ClientConfig("inputservice22protocoltest", cfgs...)
- return newInputService22ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService22ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService22ProtocolTest {
- svc := &InputService22ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice22protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService22ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService22ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService22TestCaseOperation1 = "OperationName"
- // InputService22TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService22TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService22TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService22TestCaseOperation1Request method.
- // req, resp := client.InputService22TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService22ProtocolTest) InputService22TestCaseOperation1Request(input *InputService22TestShapeInputService22TestCaseOperation1Input) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService22TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/path",
- }
- if input == nil {
- input = &InputService22TestShapeInputService22TestCaseOperation1Input{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService22TestShapeInputService22TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService22ProtocolTest) InputService22TestCaseOperation1(input *InputService22TestShapeInputService22TestCaseOperation1Input) (*InputService22TestShapeInputService22TestCaseOperation1Output, error) {
- req, out := c.InputService22TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- type InputService22TestShapeInputService22TestCaseOperation1Input struct {
- _ struct{} `type:"structure"`
- TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp" timestampFormat:"rfc822"`
- }
- type InputService22TestShapeInputService22TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- //The service client's operations are safe to be used concurrently.
- // It is not safe to mutate any of the client's properties though.
- type InputService23ProtocolTest struct {
- *client.Client
- }
- // New creates a new instance of the InputService23ProtocolTest client with a session.
- // If additional configuration is needed for the client instance use the optional
- // aws.Config parameter to add your extra config.
- //
- // Example:
- // // Create a InputService23ProtocolTest client from just a session.
- // svc := inputservice23protocoltest.New(mySession)
- //
- // // Create a InputService23ProtocolTest client with additional configuration
- // svc := inputservice23protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
- func NewInputService23ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService23ProtocolTest {
- c := p.ClientConfig("inputservice23protocoltest", cfgs...)
- return newInputService23ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion)
- }
- // newClient creates, initializes and returns a new service client instance.
- func newInputService23ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion string) *InputService23ProtocolTest {
- svc := &InputService23ProtocolTest{
- Client: client.New(
- cfg,
- metadata.ClientInfo{
- ServiceName: "inputservice23protocoltest",
- SigningRegion: signingRegion,
- Endpoint: endpoint,
- APIVersion: "2014-01-01",
- },
- handlers,
- ),
- }
- // Handlers
- svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
- svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
- svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
- svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
- svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
- return svc
- }
- // newRequest creates a new request for a InputService23ProtocolTest operation and runs any
- // custom request initialization.
- func (c *InputService23ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
- req := c.NewRequest(op, params, data)
- return req
- }
- const opInputService23TestCaseOperation1 = "OperationName"
- // InputService23TestCaseOperation1Request generates a "aws/request.Request" representing the
- // client's request for the InputService23TestCaseOperation1 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService23TestCaseOperation1 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService23TestCaseOperation1Request method.
- // req, resp := client.InputService23TestCaseOperation1Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService23ProtocolTest) InputService23TestCaseOperation1Request(input *InputService23TestShapeInputShape) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation1Output) {
- op := &request.Operation{
- Name: opInputService23TestCaseOperation1,
- HTTPMethod: "POST",
- HTTPPath: "/path",
- }
- if input == nil {
- input = &InputService23TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService23TestShapeInputService23TestCaseOperation1Output{}
- req.Data = output
- return
- }
- func (c *InputService23ProtocolTest) InputService23TestCaseOperation1(input *InputService23TestShapeInputShape) (*InputService23TestShapeInputService23TestCaseOperation1Output, error) {
- req, out := c.InputService23TestCaseOperation1Request(input)
- err := req.Send()
- return out, err
- }
- const opInputService23TestCaseOperation2 = "OperationName"
- // InputService23TestCaseOperation2Request generates a "aws/request.Request" representing the
- // client's request for the InputService23TestCaseOperation2 operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the InputService23TestCaseOperation2 method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the InputService23TestCaseOperation2Request method.
- // req, resp := client.InputService23TestCaseOperation2Request(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *InputService23ProtocolTest) InputService23TestCaseOperation2Request(input *InputService23TestShapeInputShape) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation2Output) {
- op := &request.Operation{
- Name: opInputService23TestCaseOperation2,
- HTTPMethod: "POST",
- HTTPPath: "/path",
- }
- if input == nil {
- input = &InputService23TestShapeInputShape{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &InputService23TestShapeInputService23TestCaseOperation2Output{}
- req.Data = output
- return
- }
- func (c *InputService23ProtocolTest) InputService23TestCaseOperation2(input *InputService23TestShapeInputShape) (*InputService23TestShapeInputService23TestCaseOperation2Output, error) {
- req, out := c.InputService23TestCaseOperation2Request(input)
- err := req.Send()
- return out, err
- }
- type InputService23TestShapeInputService23TestCaseOperation1Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService23TestShapeInputService23TestCaseOperation2Output struct {
- _ struct{} `type:"structure"`
- }
- type InputService23TestShapeInputShape struct {
- _ struct{} `type:"structure"`
- Token *string `type:"string" idempotencyToken:"true"`
- }
- //
- // Tests begin here
- //
- func TestInputService1ProtocolTestBasicXMLSerializationCase1(t *testing.T) {
- svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService1TestShapeInputShape{
- Description: aws.String("bar"),
- Name: aws.String("foo"),
- }
- req, _ := svc.InputService1TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><Description xmlns="https://foo/">bar</Description><Name xmlns="https://foo/">foo</Name></OperationRequest>`, util.Trim(string(body)), InputService1TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
- // assert headers
- }
- func TestInputService1ProtocolTestBasicXMLSerializationCase2(t *testing.T) {
- svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService1TestShapeInputShape{
- Description: aws.String("bar"),
- Name: aws.String("foo"),
- }
- req, _ := svc.InputService1TestCaseOperation2Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><Description xmlns="https://foo/">bar</Description><Name xmlns="https://foo/">foo</Name></OperationRequest>`, util.Trim(string(body)), InputService1TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
- // assert headers
- }
- func TestInputService1ProtocolTestBasicXMLSerializationCase3(t *testing.T) {
- svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService1TestShapeInputService1TestCaseOperation3Input{}
- req, _ := svc.InputService1TestCaseOperation3Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
- // assert headers
- }
- func TestInputService2ProtocolTestSerializeOtherScalarTypesCase1(t *testing.T) {
- svc := NewInputService2ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService2TestShapeInputService2TestCaseOperation1Input{
- First: aws.Bool(true),
- Fourth: aws.Int64(3),
- Second: aws.Bool(false),
- Third: aws.Float64(1.2),
- }
- req, _ := svc.InputService2TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><First xmlns="https://foo/">true</First><Fourth xmlns="https://foo/">3</Fourth><Second xmlns="https://foo/">false</Second><Third xmlns="https://foo/">1.2</Third></OperationRequest>`, util.Trim(string(body)), InputService2TestShapeInputService2TestCaseOperation1Input{})
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
- // assert headers
- }
- func TestInputService3ProtocolTestNestedStructuresCase1(t *testing.T) {
- svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService3TestShapeInputShape{
- Description: aws.String("baz"),
- SubStructure: &InputService3TestShapeSubStructure{
- Bar: aws.String("b"),
- Foo: aws.String("a"),
- },
- }
- req, _ := svc.InputService3TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><Description xmlns="https://foo/">baz</Description><SubStructure xmlns="https://foo/"><Bar xmlns="https://foo/">b</Bar><Foo xmlns="https://foo/">a</Foo></SubStructure></OperationRequest>`, util.Trim(string(body)), InputService3TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
- // assert headers
- }
- func TestInputService3ProtocolTestNestedStructuresCase2(t *testing.T) {
- svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService3TestShapeInputShape{
- Description: aws.String("baz"),
- SubStructure: &InputService3TestShapeSubStructure{
- Foo: aws.String("a"),
- },
- }
- req, _ := svc.InputService3TestCaseOperation2Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><Description xmlns="https://foo/">baz</Description><SubStructure xmlns="https://foo/"><Foo xmlns="https://foo/">a</Foo></SubStructure></OperationRequest>`, util.Trim(string(body)), InputService3TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
- // assert headers
- }
- func TestInputService4ProtocolTestNestedStructuresCase1(t *testing.T) {
- svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService4TestShapeInputService4TestCaseOperation1Input{
- Description: aws.String("baz"),
- SubStructure: &InputService4TestShapeSubStructure{},
- }
- req, _ := svc.InputService4TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><Description xmlns="https://foo/">baz</Description><SubStructure xmlns="https://foo/"></SubStructure></OperationRequest>`, util.Trim(string(body)), InputService4TestShapeInputService4TestCaseOperation1Input{})
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
- // assert headers
- }
- func TestInputService5ProtocolTestNonFlattenedListsCase1(t *testing.T) {
- svc := NewInputService5ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService5TestShapeInputService5TestCaseOperation1Input{
- ListParam: []*string{
- aws.String("one"),
- aws.String("two"),
- aws.String("three"),
- },
- }
- req, _ := svc.InputService5TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><ListParam xmlns="https://foo/"><member xmlns="https://foo/">one</member><member xmlns="https://foo/">two</member><member xmlns="https://foo/">three</member></ListParam></OperationRequest>`, util.Trim(string(body)), InputService5TestShapeInputService5TestCaseOperation1Input{})
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
- // assert headers
- }
- func TestInputService6ProtocolTestNonFlattenedListsWithLocationNameCase1(t *testing.T) {
- svc := NewInputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService6TestShapeInputService6TestCaseOperation1Input{
- ListParam: []*string{
- aws.String("one"),
- aws.String("two"),
- aws.String("three"),
- },
- }
- req, _ := svc.InputService6TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><AlternateName xmlns="https://foo/"><NotMember xmlns="https://foo/">one</NotMember><NotMember xmlns="https://foo/">two</NotMember><NotMember xmlns="https://foo/">three</NotMember></AlternateName></OperationRequest>`, util.Trim(string(body)), InputService6TestShapeInputService6TestCaseOperation1Input{})
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
- // assert headers
- }
- func TestInputService7ProtocolTestFlattenedListsCase1(t *testing.T) {
- svc := NewInputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService7TestShapeInputService7TestCaseOperation1Input{
- ListParam: []*string{
- aws.String("one"),
- aws.String("two"),
- aws.String("three"),
- },
- }
- req, _ := svc.InputService7TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><ListParam xmlns="https://foo/">one</ListParam><ListParam xmlns="https://foo/">two</ListParam><ListParam xmlns="https://foo/">three</ListParam></OperationRequest>`, util.Trim(string(body)), InputService7TestShapeInputService7TestCaseOperation1Input{})
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
- // assert headers
- }
- func TestInputService8ProtocolTestFlattenedListsWithLocationNameCase1(t *testing.T) {
- svc := NewInputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService8TestShapeInputService8TestCaseOperation1Input{
- ListParam: []*string{
- aws.String("one"),
- aws.String("two"),
- aws.String("three"),
- },
- }
- req, _ := svc.InputService8TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><item xmlns="https://foo/">one</item><item xmlns="https://foo/">two</item><item xmlns="https://foo/">three</item></OperationRequest>`, util.Trim(string(body)), InputService8TestShapeInputService8TestCaseOperation1Input{})
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
- // assert headers
- }
- func TestInputService9ProtocolTestListOfStructuresCase1(t *testing.T) {
- svc := NewInputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService9TestShapeInputService9TestCaseOperation1Input{
- ListParam: []*InputService9TestShapeSingleFieldStruct{
- {
- Element: aws.String("one"),
- },
- {
- Element: aws.String("two"),
- },
- {
- Element: aws.String("three"),
- },
- },
- }
- req, _ := svc.InputService9TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><item xmlns="https://foo/"><value xmlns="https://foo/">one</value></item><item xmlns="https://foo/"><value xmlns="https://foo/">two</value></item><item xmlns="https://foo/"><value xmlns="https://foo/">three</value></item></OperationRequest>`, util.Trim(string(body)), InputService9TestShapeInputService9TestCaseOperation1Input{})
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
- // assert headers
- }
- func TestInputService10ProtocolTestBlobAndTimestampShapesCase1(t *testing.T) {
- svc := NewInputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService10TestShapeInputService10TestCaseOperation1Input{
- StructureParam: &InputService10TestShapeStructureShape{
- B: []byte("foo"),
- T: aws.Time(time.Unix(1422172800, 0)),
- },
- }
- req, _ := svc.InputService10TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><StructureParam xmlns="https://foo/"><b xmlns="https://foo/">Zm9v</b><t xmlns="https://foo/">2015-01-25T08:00:00Z</t></StructureParam></OperationRequest>`, util.Trim(string(body)), InputService10TestShapeInputService10TestCaseOperation1Input{})
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
- // assert headers
- }
- func TestInputService11ProtocolTestHeaderMapsCase1(t *testing.T) {
- svc := NewInputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService11TestShapeInputService11TestCaseOperation1Input{
- Foo: map[string]*string{
- "a": aws.String("b"),
- "c": aws.String("d"),
- },
- }
- req, _ := svc.InputService11TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert URL
- awstesting.AssertURL(t, "https://test/", r.URL.String())
- // assert headers
- assert.Equal(t, "b", r.Header.Get("x-foo-a"))
- assert.Equal(t, "d", r.Header.Get("x-foo-c"))
- }
- func TestInputService12ProtocolTestQuerystringListOfStringsCase1(t *testing.T) {
- svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService12TestShapeInputService12TestCaseOperation1Input{
- Items: []*string{
- aws.String("value1"),
- aws.String("value2"),
- },
- }
- req, _ := svc.InputService12TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert URL
- awstesting.AssertURL(t, "https://test/path?item=value1&item=value2", r.URL.String())
- // assert headers
- }
- func TestInputService13ProtocolTestStringToStringMapsInQuerystringCase1(t *testing.T) {
- svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService13TestShapeInputService13TestCaseOperation1Input{
- PipelineId: aws.String("foo"),
- QueryDoc: map[string]*string{
- "bar": aws.String("baz"),
- "fizz": aws.String("buzz"),
- },
- }
- req, _ := svc.InputService13TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?bar=baz&fizz=buzz", r.URL.String())
- // assert headers
- }
- func TestInputService14ProtocolTestStringToStringListMapsInQuerystringCase1(t *testing.T) {
- svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService14TestShapeInputService14TestCaseOperation1Input{
- PipelineId: aws.String("id"),
- QueryDoc: map[string][]*string{
- "fizz": {
- aws.String("buzz"),
- aws.String("pop"),
- },
- "foo": {
- aws.String("bar"),
- aws.String("baz"),
- },
- },
- }
- req, _ := svc.InputService14TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert URL
- awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/id?foo=bar&foo=baz&fizz=buzz&fizz=pop", r.URL.String())
- // assert headers
- }
- func TestInputService15ProtocolTestStringPayloadCase1(t *testing.T) {
- svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService15TestShapeInputService15TestCaseOperation1Input{
- Foo: aws.String("bar"),
- }
- req, _ := svc.InputService15TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- assert.Equal(t, `bar`, util.Trim(string(body)))
- // assert URL
- awstesting.AssertURL(t, "https://test/", r.URL.String())
- // assert headers
- }
- func TestInputService16ProtocolTestBlobPayloadCase1(t *testing.T) {
- svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService16TestShapeInputShape{
- Foo: []byte("bar"),
- }
- req, _ := svc.InputService16TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- assert.Equal(t, `bar`, util.Trim(string(body)))
- // assert URL
- awstesting.AssertURL(t, "https://test/", r.URL.String())
- // assert headers
- }
- func TestInputService16ProtocolTestBlobPayloadCase2(t *testing.T) {
- svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService16TestShapeInputShape{}
- req, _ := svc.InputService16TestCaseOperation2Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert URL
- awstesting.AssertURL(t, "https://test/", r.URL.String())
- // assert headers
- }
- func TestInputService17ProtocolTestStructurePayloadCase1(t *testing.T) {
- svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService17TestShapeInputShape{
- Foo: &InputService17TestShapeFooShape{
- Baz: aws.String("bar"),
- },
- }
- req, _ := svc.InputService17TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<foo><baz>bar</baz></foo>`, util.Trim(string(body)), InputService17TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/", r.URL.String())
- // assert headers
- }
- func TestInputService17ProtocolTestStructurePayloadCase2(t *testing.T) {
- svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService17TestShapeInputShape{}
- req, _ := svc.InputService17TestCaseOperation2Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert URL
- awstesting.AssertURL(t, "https://test/", r.URL.String())
- // assert headers
- }
- func TestInputService17ProtocolTestStructurePayloadCase3(t *testing.T) {
- svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService17TestShapeInputShape{
- Foo: &InputService17TestShapeFooShape{},
- }
- req, _ := svc.InputService17TestCaseOperation3Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<foo></foo>`, util.Trim(string(body)), InputService17TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/", r.URL.String())
- // assert headers
- }
- func TestInputService17ProtocolTestStructurePayloadCase4(t *testing.T) {
- svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService17TestShapeInputShape{}
- req, _ := svc.InputService17TestCaseOperation4Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert URL
- awstesting.AssertURL(t, "https://test/", r.URL.String())
- // assert headers
- }
- func TestInputService18ProtocolTestXMLAttributeCase1(t *testing.T) {
- svc := NewInputService18ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService18TestShapeInputService18TestCaseOperation1Input{
- Grant: &InputService18TestShapeGrant{
- Grantee: &InputService18TestShapeGrantee{
- EmailAddress: aws.String("foo@example.com"),
- Type: aws.String("CanonicalUser"),
- },
- },
- }
- req, _ := svc.InputService18TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<Grant xmlns:_xmlns="xmlns" _xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:XMLSchema-instance="http://www.w3.org/2001/XMLSchema-instance" XMLSchema-instance:type="CanonicalUser"><Grantee><EmailAddress>foo@example.com</EmailAddress></Grantee></Grant>`, util.Trim(string(body)), InputService18TestShapeInputService18TestCaseOperation1Input{})
- // assert URL
- awstesting.AssertURL(t, "https://test/", r.URL.String())
- // assert headers
- }
- func TestInputService19ProtocolTestGreedyKeysCase1(t *testing.T) {
- svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService19TestShapeInputService19TestCaseOperation1Input{
- Bucket: aws.String("my/bucket"),
- Key: aws.String("testing /123"),
- }
- req, _ := svc.InputService19TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert URL
- awstesting.AssertURL(t, "https://test/my%2Fbucket/testing%20/123", r.URL.String())
- // assert headers
- }
- func TestInputService20ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) {
- svc := NewInputService20ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService20TestShapeInputShape{}
- req, _ := svc.InputService20TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert URL
- awstesting.AssertURL(t, "https://test/path", r.URL.String())
- // assert headers
- }
- func TestInputService20ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) {
- svc := NewInputService20ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService20TestShapeInputShape{
- Foo: aws.String(""),
- }
- req, _ := svc.InputService20TestCaseOperation2Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert URL
- awstesting.AssertURL(t, "https://test/path?abc=mno¶m-name=", r.URL.String())
- // assert headers
- }
- func TestInputService21ProtocolTestRecursiveShapesCase1(t *testing.T) {
- svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService21TestShapeInputShape{
- RecursiveStruct: &InputService21TestShapeRecursiveStructType{
- NoRecurse: aws.String("foo"),
- },
- }
- req, _ := svc.InputService21TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><NoRecurse xmlns="https://foo/">foo</NoRecurse></RecursiveStruct></OperationRequest>`, util.Trim(string(body)), InputService21TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/path", r.URL.String())
- // assert headers
- }
- func TestInputService21ProtocolTestRecursiveShapesCase2(t *testing.T) {
- svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService21TestShapeInputShape{
- RecursiveStruct: &InputService21TestShapeRecursiveStructType{
- RecursiveStruct: &InputService21TestShapeRecursiveStructType{
- NoRecurse: aws.String("foo"),
- },
- },
- }
- req, _ := svc.InputService21TestCaseOperation2Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><NoRecurse xmlns="https://foo/">foo</NoRecurse></RecursiveStruct></RecursiveStruct></OperationRequest>`, util.Trim(string(body)), InputService21TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/path", r.URL.String())
- // assert headers
- }
- func TestInputService21ProtocolTestRecursiveShapesCase3(t *testing.T) {
- svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService21TestShapeInputShape{
- RecursiveStruct: &InputService21TestShapeRecursiveStructType{
- RecursiveStruct: &InputService21TestShapeRecursiveStructType{
- RecursiveStruct: &InputService21TestShapeRecursiveStructType{
- RecursiveStruct: &InputService21TestShapeRecursiveStructType{
- NoRecurse: aws.String("foo"),
- },
- },
- },
- },
- }
- req, _ := svc.InputService21TestCaseOperation3Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><NoRecurse xmlns="https://foo/">foo</NoRecurse></RecursiveStruct></RecursiveStruct></RecursiveStruct></RecursiveStruct></OperationRequest>`, util.Trim(string(body)), InputService21TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/path", r.URL.String())
- // assert headers
- }
- func TestInputService21ProtocolTestRecursiveShapesCase4(t *testing.T) {
- svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService21TestShapeInputShape{
- RecursiveStruct: &InputService21TestShapeRecursiveStructType{
- RecursiveList: []*InputService21TestShapeRecursiveStructType{
- {
- NoRecurse: aws.String("foo"),
- },
- {
- NoRecurse: aws.String("bar"),
- },
- },
- },
- }
- req, _ := svc.InputService21TestCaseOperation4Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveList xmlns="https://foo/"><member xmlns="https://foo/"><NoRecurse xmlns="https://foo/">foo</NoRecurse></member><member xmlns="https://foo/"><NoRecurse xmlns="https://foo/">bar</NoRecurse></member></RecursiveList></RecursiveStruct></OperationRequest>`, util.Trim(string(body)), InputService21TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/path", r.URL.String())
- // assert headers
- }
- func TestInputService21ProtocolTestRecursiveShapesCase5(t *testing.T) {
- svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService21TestShapeInputShape{
- RecursiveStruct: &InputService21TestShapeRecursiveStructType{
- RecursiveList: []*InputService21TestShapeRecursiveStructType{
- {
- NoRecurse: aws.String("foo"),
- },
- {
- RecursiveStruct: &InputService21TestShapeRecursiveStructType{
- NoRecurse: aws.String("bar"),
- },
- },
- },
- },
- }
- req, _ := svc.InputService21TestCaseOperation5Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveList xmlns="https://foo/"><member xmlns="https://foo/"><NoRecurse xmlns="https://foo/">foo</NoRecurse></member><member xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><NoRecurse xmlns="https://foo/">bar</NoRecurse></RecursiveStruct></member></RecursiveList></RecursiveStruct></OperationRequest>`, util.Trim(string(body)), InputService21TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/path", r.URL.String())
- // assert headers
- }
- func TestInputService21ProtocolTestRecursiveShapesCase6(t *testing.T) {
- svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService21TestShapeInputShape{
- RecursiveStruct: &InputService21TestShapeRecursiveStructType{
- RecursiveMap: map[string]*InputService21TestShapeRecursiveStructType{
- "bar": {
- NoRecurse: aws.String("bar"),
- },
- "foo": {
- NoRecurse: aws.String("foo"),
- },
- },
- },
- }
- req, _ := svc.InputService21TestCaseOperation6Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct xmlns="https://foo/"><RecursiveMap xmlns="https://foo/"><entry xmlns="https://foo/"><key xmlns="https://foo/">foo</key><value xmlns="https://foo/"><NoRecurse xmlns="https://foo/">foo</NoRecurse></value></entry><entry xmlns="https://foo/"><key xmlns="https://foo/">bar</key><value xmlns="https://foo/"><NoRecurse xmlns="https://foo/">bar</NoRecurse></value></entry></RecursiveMap></RecursiveStruct></OperationRequest>`, util.Trim(string(body)), InputService21TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/path", r.URL.String())
- // assert headers
- }
- func TestInputService22ProtocolTestTimestampInHeaderCase1(t *testing.T) {
- svc := NewInputService22ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService22TestShapeInputService22TestCaseOperation1Input{
- TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)),
- }
- req, _ := svc.InputService22TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert URL
- awstesting.AssertURL(t, "https://test/path", r.URL.String())
- // assert headers
- assert.Equal(t, "Sun, 25 Jan 2015 08:00:00 GMT", r.Header.Get("x-amz-timearg"))
- }
- func TestInputService23ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) {
- svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService23TestShapeInputShape{
- Token: aws.String("abc123"),
- }
- req, _ := svc.InputService23TestCaseOperation1Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<Token>abc123</Token>`, util.Trim(string(body)), InputService23TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/path", r.URL.String())
- // assert headers
- }
- func TestInputService23ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) {
- svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
- input := &InputService23TestShapeInputShape{}
- req, _ := svc.InputService23TestCaseOperation2Request(input)
- r := req.HTTPRequest
- // build request
- restxml.Build(req)
- assert.NoError(t, req.Error)
- // assert body
- assert.NotNil(t, r.Body)
- body := util.SortXML(r.Body)
- awstesting.AssertXML(t, `<Token>00000000-0000-4000-8000-000000000000</Token>`, util.Trim(string(body)), InputService23TestShapeInputShape{})
- // assert URL
- awstesting.AssertURL(t, "https://test/path", r.URL.String())
- // assert headers
- }
|