api.go 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package codecommit provides a client for AWS CodeCommit.
  3. package codecommit
  4. import (
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. "github.com/aws/aws-sdk-go/private/protocol"
  9. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  10. )
  11. const opBatchGetRepositories = "BatchGetRepositories"
  12. // BatchGetRepositoriesRequest generates a "aws/request.Request" representing the
  13. // client's request for the BatchGetRepositories operation. The "output" return
  14. // value can be used to capture response data after the request's "Send" method
  15. // is called.
  16. //
  17. // Creating a request object using this method should be used when you want to inject
  18. // custom logic into the request's lifecycle using a custom handler, or if you want to
  19. // access properties on the request object before or after sending the request. If
  20. // you just want the service response, call the BatchGetRepositories method directly
  21. // instead.
  22. //
  23. // Note: You must call the "Send" method on the returned request object in order
  24. // to execute the request.
  25. //
  26. // // Example sending a request using the BatchGetRepositoriesRequest method.
  27. // req, resp := client.BatchGetRepositoriesRequest(params)
  28. //
  29. // err := req.Send()
  30. // if err == nil { // resp is now filled
  31. // fmt.Println(resp)
  32. // }
  33. //
  34. func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInput) (req *request.Request, output *BatchGetRepositoriesOutput) {
  35. op := &request.Operation{
  36. Name: opBatchGetRepositories,
  37. HTTPMethod: "POST",
  38. HTTPPath: "/",
  39. }
  40. if input == nil {
  41. input = &BatchGetRepositoriesInput{}
  42. }
  43. req = c.newRequest(op, input, output)
  44. output = &BatchGetRepositoriesOutput{}
  45. req.Data = output
  46. return
  47. }
  48. // Returns information about one or more repositories.
  49. //
  50. // The description field for a repository accepts all HTML characters and all
  51. // valid Unicode characters. Applications that do not HTML-encode the description
  52. // and display it in a web page could expose users to potentially malicious
  53. // code. Make sure that you HTML-encode the description field in any application
  54. // that uses this API to display the repository description on a web page.
  55. func (c *CodeCommit) BatchGetRepositories(input *BatchGetRepositoriesInput) (*BatchGetRepositoriesOutput, error) {
  56. req, out := c.BatchGetRepositoriesRequest(input)
  57. err := req.Send()
  58. return out, err
  59. }
  60. const opCreateBranch = "CreateBranch"
  61. // CreateBranchRequest generates a "aws/request.Request" representing the
  62. // client's request for the CreateBranch operation. The "output" return
  63. // value can be used to capture response data after the request's "Send" method
  64. // is called.
  65. //
  66. // Creating a request object using this method should be used when you want to inject
  67. // custom logic into the request's lifecycle using a custom handler, or if you want to
  68. // access properties on the request object before or after sending the request. If
  69. // you just want the service response, call the CreateBranch method directly
  70. // instead.
  71. //
  72. // Note: You must call the "Send" method on the returned request object in order
  73. // to execute the request.
  74. //
  75. // // Example sending a request using the CreateBranchRequest method.
  76. // req, resp := client.CreateBranchRequest(params)
  77. //
  78. // err := req.Send()
  79. // if err == nil { // resp is now filled
  80. // fmt.Println(resp)
  81. // }
  82. //
  83. func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request.Request, output *CreateBranchOutput) {
  84. op := &request.Operation{
  85. Name: opCreateBranch,
  86. HTTPMethod: "POST",
  87. HTTPPath: "/",
  88. }
  89. if input == nil {
  90. input = &CreateBranchInput{}
  91. }
  92. req = c.newRequest(op, input, output)
  93. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  94. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  95. output = &CreateBranchOutput{}
  96. req.Data = output
  97. return
  98. }
  99. // Creates a new branch in a repository and points the branch to a commit.
  100. //
  101. // Calling the create branch operation does not set a repository's default
  102. // branch. To do this, call the update default branch operation.
  103. func (c *CodeCommit) CreateBranch(input *CreateBranchInput) (*CreateBranchOutput, error) {
  104. req, out := c.CreateBranchRequest(input)
  105. err := req.Send()
  106. return out, err
  107. }
  108. const opCreateRepository = "CreateRepository"
  109. // CreateRepositoryRequest generates a "aws/request.Request" representing the
  110. // client's request for the CreateRepository operation. The "output" return
  111. // value can be used to capture response data after the request's "Send" method
  112. // is called.
  113. //
  114. // Creating a request object using this method should be used when you want to inject
  115. // custom logic into the request's lifecycle using a custom handler, or if you want to
  116. // access properties on the request object before or after sending the request. If
  117. // you just want the service response, call the CreateRepository method directly
  118. // instead.
  119. //
  120. // Note: You must call the "Send" method on the returned request object in order
  121. // to execute the request.
  122. //
  123. // // Example sending a request using the CreateRepositoryRequest method.
  124. // req, resp := client.CreateRepositoryRequest(params)
  125. //
  126. // err := req.Send()
  127. // if err == nil { // resp is now filled
  128. // fmt.Println(resp)
  129. // }
  130. //
  131. func (c *CodeCommit) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput) {
  132. op := &request.Operation{
  133. Name: opCreateRepository,
  134. HTTPMethod: "POST",
  135. HTTPPath: "/",
  136. }
  137. if input == nil {
  138. input = &CreateRepositoryInput{}
  139. }
  140. req = c.newRequest(op, input, output)
  141. output = &CreateRepositoryOutput{}
  142. req.Data = output
  143. return
  144. }
  145. // Creates a new, empty repository.
  146. func (c *CodeCommit) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error) {
  147. req, out := c.CreateRepositoryRequest(input)
  148. err := req.Send()
  149. return out, err
  150. }
  151. const opDeleteRepository = "DeleteRepository"
  152. // DeleteRepositoryRequest generates a "aws/request.Request" representing the
  153. // client's request for the DeleteRepository operation. The "output" return
  154. // value can be used to capture response data after the request's "Send" method
  155. // is called.
  156. //
  157. // Creating a request object using this method should be used when you want to inject
  158. // custom logic into the request's lifecycle using a custom handler, or if you want to
  159. // access properties on the request object before or after sending the request. If
  160. // you just want the service response, call the DeleteRepository method directly
  161. // instead.
  162. //
  163. // Note: You must call the "Send" method on the returned request object in order
  164. // to execute the request.
  165. //
  166. // // Example sending a request using the DeleteRepositoryRequest method.
  167. // req, resp := client.DeleteRepositoryRequest(params)
  168. //
  169. // err := req.Send()
  170. // if err == nil { // resp is now filled
  171. // fmt.Println(resp)
  172. // }
  173. //
  174. func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput) {
  175. op := &request.Operation{
  176. Name: opDeleteRepository,
  177. HTTPMethod: "POST",
  178. HTTPPath: "/",
  179. }
  180. if input == nil {
  181. input = &DeleteRepositoryInput{}
  182. }
  183. req = c.newRequest(op, input, output)
  184. output = &DeleteRepositoryOutput{}
  185. req.Data = output
  186. return
  187. }
  188. // Deletes a repository. If a specified repository was already deleted, a null
  189. // repository ID will be returned.
  190. //
  191. // Deleting a repository also deletes all associated objects and metadata.
  192. // After a repository is deleted, all future push calls to the deleted repository
  193. // will fail.
  194. func (c *CodeCommit) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error) {
  195. req, out := c.DeleteRepositoryRequest(input)
  196. err := req.Send()
  197. return out, err
  198. }
  199. const opGetBranch = "GetBranch"
  200. // GetBranchRequest generates a "aws/request.Request" representing the
  201. // client's request for the GetBranch operation. The "output" return
  202. // value can be used to capture response data after the request's "Send" method
  203. // is called.
  204. //
  205. // Creating a request object using this method should be used when you want to inject
  206. // custom logic into the request's lifecycle using a custom handler, or if you want to
  207. // access properties on the request object before or after sending the request. If
  208. // you just want the service response, call the GetBranch method directly
  209. // instead.
  210. //
  211. // Note: You must call the "Send" method on the returned request object in order
  212. // to execute the request.
  213. //
  214. // // Example sending a request using the GetBranchRequest method.
  215. // req, resp := client.GetBranchRequest(params)
  216. //
  217. // err := req.Send()
  218. // if err == nil { // resp is now filled
  219. // fmt.Println(resp)
  220. // }
  221. //
  222. func (c *CodeCommit) GetBranchRequest(input *GetBranchInput) (req *request.Request, output *GetBranchOutput) {
  223. op := &request.Operation{
  224. Name: opGetBranch,
  225. HTTPMethod: "POST",
  226. HTTPPath: "/",
  227. }
  228. if input == nil {
  229. input = &GetBranchInput{}
  230. }
  231. req = c.newRequest(op, input, output)
  232. output = &GetBranchOutput{}
  233. req.Data = output
  234. return
  235. }
  236. // Returns information about a repository branch, including its name and the
  237. // last commit ID.
  238. func (c *CodeCommit) GetBranch(input *GetBranchInput) (*GetBranchOutput, error) {
  239. req, out := c.GetBranchRequest(input)
  240. err := req.Send()
  241. return out, err
  242. }
  243. const opGetCommit = "GetCommit"
  244. // GetCommitRequest generates a "aws/request.Request" representing the
  245. // client's request for the GetCommit operation. The "output" return
  246. // value can be used to capture response data after the request's "Send" method
  247. // is called.
  248. //
  249. // Creating a request object using this method should be used when you want to inject
  250. // custom logic into the request's lifecycle using a custom handler, or if you want to
  251. // access properties on the request object before or after sending the request. If
  252. // you just want the service response, call the GetCommit method directly
  253. // instead.
  254. //
  255. // Note: You must call the "Send" method on the returned request object in order
  256. // to execute the request.
  257. //
  258. // // Example sending a request using the GetCommitRequest method.
  259. // req, resp := client.GetCommitRequest(params)
  260. //
  261. // err := req.Send()
  262. // if err == nil { // resp is now filled
  263. // fmt.Println(resp)
  264. // }
  265. //
  266. func (c *CodeCommit) GetCommitRequest(input *GetCommitInput) (req *request.Request, output *GetCommitOutput) {
  267. op := &request.Operation{
  268. Name: opGetCommit,
  269. HTTPMethod: "POST",
  270. HTTPPath: "/",
  271. }
  272. if input == nil {
  273. input = &GetCommitInput{}
  274. }
  275. req = c.newRequest(op, input, output)
  276. output = &GetCommitOutput{}
  277. req.Data = output
  278. return
  279. }
  280. // Returns information about a commit, including commit message and committer
  281. // information.
  282. func (c *CodeCommit) GetCommit(input *GetCommitInput) (*GetCommitOutput, error) {
  283. req, out := c.GetCommitRequest(input)
  284. err := req.Send()
  285. return out, err
  286. }
  287. const opGetRepository = "GetRepository"
  288. // GetRepositoryRequest generates a "aws/request.Request" representing the
  289. // client's request for the GetRepository operation. The "output" return
  290. // value can be used to capture response data after the request's "Send" method
  291. // is called.
  292. //
  293. // Creating a request object using this method should be used when you want to inject
  294. // custom logic into the request's lifecycle using a custom handler, or if you want to
  295. // access properties on the request object before or after sending the request. If
  296. // you just want the service response, call the GetRepository method directly
  297. // instead.
  298. //
  299. // Note: You must call the "Send" method on the returned request object in order
  300. // to execute the request.
  301. //
  302. // // Example sending a request using the GetRepositoryRequest method.
  303. // req, resp := client.GetRepositoryRequest(params)
  304. //
  305. // err := req.Send()
  306. // if err == nil { // resp is now filled
  307. // fmt.Println(resp)
  308. // }
  309. //
  310. func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *request.Request, output *GetRepositoryOutput) {
  311. op := &request.Operation{
  312. Name: opGetRepository,
  313. HTTPMethod: "POST",
  314. HTTPPath: "/",
  315. }
  316. if input == nil {
  317. input = &GetRepositoryInput{}
  318. }
  319. req = c.newRequest(op, input, output)
  320. output = &GetRepositoryOutput{}
  321. req.Data = output
  322. return
  323. }
  324. // Returns information about a repository.
  325. //
  326. // The description field for a repository accepts all HTML characters and all
  327. // valid Unicode characters. Applications that do not HTML-encode the description
  328. // and display it in a web page could expose users to potentially malicious
  329. // code. Make sure that you HTML-encode the description field in any application
  330. // that uses this API to display the repository description on a web page.
  331. func (c *CodeCommit) GetRepository(input *GetRepositoryInput) (*GetRepositoryOutput, error) {
  332. req, out := c.GetRepositoryRequest(input)
  333. err := req.Send()
  334. return out, err
  335. }
  336. const opGetRepositoryTriggers = "GetRepositoryTriggers"
  337. // GetRepositoryTriggersRequest generates a "aws/request.Request" representing the
  338. // client's request for the GetRepositoryTriggers operation. The "output" return
  339. // value can be used to capture response data after the request's "Send" method
  340. // is called.
  341. //
  342. // Creating a request object using this method should be used when you want to inject
  343. // custom logic into the request's lifecycle using a custom handler, or if you want to
  344. // access properties on the request object before or after sending the request. If
  345. // you just want the service response, call the GetRepositoryTriggers method directly
  346. // instead.
  347. //
  348. // Note: You must call the "Send" method on the returned request object in order
  349. // to execute the request.
  350. //
  351. // // Example sending a request using the GetRepositoryTriggersRequest method.
  352. // req, resp := client.GetRepositoryTriggersRequest(params)
  353. //
  354. // err := req.Send()
  355. // if err == nil { // resp is now filled
  356. // fmt.Println(resp)
  357. // }
  358. //
  359. func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersInput) (req *request.Request, output *GetRepositoryTriggersOutput) {
  360. op := &request.Operation{
  361. Name: opGetRepositoryTriggers,
  362. HTTPMethod: "POST",
  363. HTTPPath: "/",
  364. }
  365. if input == nil {
  366. input = &GetRepositoryTriggersInput{}
  367. }
  368. req = c.newRequest(op, input, output)
  369. output = &GetRepositoryTriggersOutput{}
  370. req.Data = output
  371. return
  372. }
  373. // Gets information about triggers configured for a repository.
  374. func (c *CodeCommit) GetRepositoryTriggers(input *GetRepositoryTriggersInput) (*GetRepositoryTriggersOutput, error) {
  375. req, out := c.GetRepositoryTriggersRequest(input)
  376. err := req.Send()
  377. return out, err
  378. }
  379. const opListBranches = "ListBranches"
  380. // ListBranchesRequest generates a "aws/request.Request" representing the
  381. // client's request for the ListBranches operation. The "output" return
  382. // value can be used to capture response data after the request's "Send" method
  383. // is called.
  384. //
  385. // Creating a request object using this method should be used when you want to inject
  386. // custom logic into the request's lifecycle using a custom handler, or if you want to
  387. // access properties on the request object before or after sending the request. If
  388. // you just want the service response, call the ListBranches method directly
  389. // instead.
  390. //
  391. // Note: You must call the "Send" method on the returned request object in order
  392. // to execute the request.
  393. //
  394. // // Example sending a request using the ListBranchesRequest method.
  395. // req, resp := client.ListBranchesRequest(params)
  396. //
  397. // err := req.Send()
  398. // if err == nil { // resp is now filled
  399. // fmt.Println(resp)
  400. // }
  401. //
  402. func (c *CodeCommit) ListBranchesRequest(input *ListBranchesInput) (req *request.Request, output *ListBranchesOutput) {
  403. op := &request.Operation{
  404. Name: opListBranches,
  405. HTTPMethod: "POST",
  406. HTTPPath: "/",
  407. Paginator: &request.Paginator{
  408. InputTokens: []string{"nextToken"},
  409. OutputTokens: []string{"nextToken"},
  410. LimitToken: "",
  411. TruncationToken: "",
  412. },
  413. }
  414. if input == nil {
  415. input = &ListBranchesInput{}
  416. }
  417. req = c.newRequest(op, input, output)
  418. output = &ListBranchesOutput{}
  419. req.Data = output
  420. return
  421. }
  422. // Gets information about one or more branches in a repository.
  423. func (c *CodeCommit) ListBranches(input *ListBranchesInput) (*ListBranchesOutput, error) {
  424. req, out := c.ListBranchesRequest(input)
  425. err := req.Send()
  426. return out, err
  427. }
  428. // ListBranchesPages iterates over the pages of a ListBranches operation,
  429. // calling the "fn" function with the response data for each page. To stop
  430. // iterating, return false from the fn function.
  431. //
  432. // See ListBranches method for more information on how to use this operation.
  433. //
  434. // Note: This operation can generate multiple requests to a service.
  435. //
  436. // // Example iterating over at most 3 pages of a ListBranches operation.
  437. // pageNum := 0
  438. // err := client.ListBranchesPages(params,
  439. // func(page *ListBranchesOutput, lastPage bool) bool {
  440. // pageNum++
  441. // fmt.Println(page)
  442. // return pageNum <= 3
  443. // })
  444. //
  445. func (c *CodeCommit) ListBranchesPages(input *ListBranchesInput, fn func(p *ListBranchesOutput, lastPage bool) (shouldContinue bool)) error {
  446. page, _ := c.ListBranchesRequest(input)
  447. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  448. return page.EachPage(func(p interface{}, lastPage bool) bool {
  449. return fn(p.(*ListBranchesOutput), lastPage)
  450. })
  451. }
  452. const opListRepositories = "ListRepositories"
  453. // ListRepositoriesRequest generates a "aws/request.Request" representing the
  454. // client's request for the ListRepositories operation. The "output" return
  455. // value can be used to capture response data after the request's "Send" method
  456. // is called.
  457. //
  458. // Creating a request object using this method should be used when you want to inject
  459. // custom logic into the request's lifecycle using a custom handler, or if you want to
  460. // access properties on the request object before or after sending the request. If
  461. // you just want the service response, call the ListRepositories method directly
  462. // instead.
  463. //
  464. // Note: You must call the "Send" method on the returned request object in order
  465. // to execute the request.
  466. //
  467. // // Example sending a request using the ListRepositoriesRequest method.
  468. // req, resp := client.ListRepositoriesRequest(params)
  469. //
  470. // err := req.Send()
  471. // if err == nil { // resp is now filled
  472. // fmt.Println(resp)
  473. // }
  474. //
  475. func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req *request.Request, output *ListRepositoriesOutput) {
  476. op := &request.Operation{
  477. Name: opListRepositories,
  478. HTTPMethod: "POST",
  479. HTTPPath: "/",
  480. Paginator: &request.Paginator{
  481. InputTokens: []string{"nextToken"},
  482. OutputTokens: []string{"nextToken"},
  483. LimitToken: "",
  484. TruncationToken: "",
  485. },
  486. }
  487. if input == nil {
  488. input = &ListRepositoriesInput{}
  489. }
  490. req = c.newRequest(op, input, output)
  491. output = &ListRepositoriesOutput{}
  492. req.Data = output
  493. return
  494. }
  495. // Gets information about one or more repositories.
  496. func (c *CodeCommit) ListRepositories(input *ListRepositoriesInput) (*ListRepositoriesOutput, error) {
  497. req, out := c.ListRepositoriesRequest(input)
  498. err := req.Send()
  499. return out, err
  500. }
  501. // ListRepositoriesPages iterates over the pages of a ListRepositories operation,
  502. // calling the "fn" function with the response data for each page. To stop
  503. // iterating, return false from the fn function.
  504. //
  505. // See ListRepositories method for more information on how to use this operation.
  506. //
  507. // Note: This operation can generate multiple requests to a service.
  508. //
  509. // // Example iterating over at most 3 pages of a ListRepositories operation.
  510. // pageNum := 0
  511. // err := client.ListRepositoriesPages(params,
  512. // func(page *ListRepositoriesOutput, lastPage bool) bool {
  513. // pageNum++
  514. // fmt.Println(page)
  515. // return pageNum <= 3
  516. // })
  517. //
  518. func (c *CodeCommit) ListRepositoriesPages(input *ListRepositoriesInput, fn func(p *ListRepositoriesOutput, lastPage bool) (shouldContinue bool)) error {
  519. page, _ := c.ListRepositoriesRequest(input)
  520. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  521. return page.EachPage(func(p interface{}, lastPage bool) bool {
  522. return fn(p.(*ListRepositoriesOutput), lastPage)
  523. })
  524. }
  525. const opPutRepositoryTriggers = "PutRepositoryTriggers"
  526. // PutRepositoryTriggersRequest generates a "aws/request.Request" representing the
  527. // client's request for the PutRepositoryTriggers operation. The "output" return
  528. // value can be used to capture response data after the request's "Send" method
  529. // is called.
  530. //
  531. // Creating a request object using this method should be used when you want to inject
  532. // custom logic into the request's lifecycle using a custom handler, or if you want to
  533. // access properties on the request object before or after sending the request. If
  534. // you just want the service response, call the PutRepositoryTriggers method directly
  535. // instead.
  536. //
  537. // Note: You must call the "Send" method on the returned request object in order
  538. // to execute the request.
  539. //
  540. // // Example sending a request using the PutRepositoryTriggersRequest method.
  541. // req, resp := client.PutRepositoryTriggersRequest(params)
  542. //
  543. // err := req.Send()
  544. // if err == nil { // resp is now filled
  545. // fmt.Println(resp)
  546. // }
  547. //
  548. func (c *CodeCommit) PutRepositoryTriggersRequest(input *PutRepositoryTriggersInput) (req *request.Request, output *PutRepositoryTriggersOutput) {
  549. op := &request.Operation{
  550. Name: opPutRepositoryTriggers,
  551. HTTPMethod: "POST",
  552. HTTPPath: "/",
  553. }
  554. if input == nil {
  555. input = &PutRepositoryTriggersInput{}
  556. }
  557. req = c.newRequest(op, input, output)
  558. output = &PutRepositoryTriggersOutput{}
  559. req.Data = output
  560. return
  561. }
  562. // Replaces all triggers for a repository. This can be used to create or delete
  563. // triggers.
  564. func (c *CodeCommit) PutRepositoryTriggers(input *PutRepositoryTriggersInput) (*PutRepositoryTriggersOutput, error) {
  565. req, out := c.PutRepositoryTriggersRequest(input)
  566. err := req.Send()
  567. return out, err
  568. }
  569. const opTestRepositoryTriggers = "TestRepositoryTriggers"
  570. // TestRepositoryTriggersRequest generates a "aws/request.Request" representing the
  571. // client's request for the TestRepositoryTriggers operation. The "output" return
  572. // value can be used to capture response data after the request's "Send" method
  573. // is called.
  574. //
  575. // Creating a request object using this method should be used when you want to inject
  576. // custom logic into the request's lifecycle using a custom handler, or if you want to
  577. // access properties on the request object before or after sending the request. If
  578. // you just want the service response, call the TestRepositoryTriggers method directly
  579. // instead.
  580. //
  581. // Note: You must call the "Send" method on the returned request object in order
  582. // to execute the request.
  583. //
  584. // // Example sending a request using the TestRepositoryTriggersRequest method.
  585. // req, resp := client.TestRepositoryTriggersRequest(params)
  586. //
  587. // err := req.Send()
  588. // if err == nil { // resp is now filled
  589. // fmt.Println(resp)
  590. // }
  591. //
  592. func (c *CodeCommit) TestRepositoryTriggersRequest(input *TestRepositoryTriggersInput) (req *request.Request, output *TestRepositoryTriggersOutput) {
  593. op := &request.Operation{
  594. Name: opTestRepositoryTriggers,
  595. HTTPMethod: "POST",
  596. HTTPPath: "/",
  597. }
  598. if input == nil {
  599. input = &TestRepositoryTriggersInput{}
  600. }
  601. req = c.newRequest(op, input, output)
  602. output = &TestRepositoryTriggersOutput{}
  603. req.Data = output
  604. return
  605. }
  606. // Tests the functionality of repository triggers by sending information to
  607. // the trigger target. If real data is available in the repository, the test
  608. // will send data from the last commit. If no data is available, sample data
  609. // will be generated.
  610. func (c *CodeCommit) TestRepositoryTriggers(input *TestRepositoryTriggersInput) (*TestRepositoryTriggersOutput, error) {
  611. req, out := c.TestRepositoryTriggersRequest(input)
  612. err := req.Send()
  613. return out, err
  614. }
  615. const opUpdateDefaultBranch = "UpdateDefaultBranch"
  616. // UpdateDefaultBranchRequest generates a "aws/request.Request" representing the
  617. // client's request for the UpdateDefaultBranch operation. The "output" return
  618. // value can be used to capture response data after the request's "Send" method
  619. // is called.
  620. //
  621. // Creating a request object using this method should be used when you want to inject
  622. // custom logic into the request's lifecycle using a custom handler, or if you want to
  623. // access properties on the request object before or after sending the request. If
  624. // you just want the service response, call the UpdateDefaultBranch method directly
  625. // instead.
  626. //
  627. // Note: You must call the "Send" method on the returned request object in order
  628. // to execute the request.
  629. //
  630. // // Example sending a request using the UpdateDefaultBranchRequest method.
  631. // req, resp := client.UpdateDefaultBranchRequest(params)
  632. //
  633. // err := req.Send()
  634. // if err == nil { // resp is now filled
  635. // fmt.Println(resp)
  636. // }
  637. //
  638. func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput) (req *request.Request, output *UpdateDefaultBranchOutput) {
  639. op := &request.Operation{
  640. Name: opUpdateDefaultBranch,
  641. HTTPMethod: "POST",
  642. HTTPPath: "/",
  643. }
  644. if input == nil {
  645. input = &UpdateDefaultBranchInput{}
  646. }
  647. req = c.newRequest(op, input, output)
  648. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  649. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  650. output = &UpdateDefaultBranchOutput{}
  651. req.Data = output
  652. return
  653. }
  654. // Sets or changes the default branch name for the specified repository.
  655. //
  656. // If you use this operation to change the default branch name to the current
  657. // default branch name, a success message is returned even though the default
  658. // branch did not change.
  659. func (c *CodeCommit) UpdateDefaultBranch(input *UpdateDefaultBranchInput) (*UpdateDefaultBranchOutput, error) {
  660. req, out := c.UpdateDefaultBranchRequest(input)
  661. err := req.Send()
  662. return out, err
  663. }
  664. const opUpdateRepositoryDescription = "UpdateRepositoryDescription"
  665. // UpdateRepositoryDescriptionRequest generates a "aws/request.Request" representing the
  666. // client's request for the UpdateRepositoryDescription operation. The "output" return
  667. // value can be used to capture response data after the request's "Send" method
  668. // is called.
  669. //
  670. // Creating a request object using this method should be used when you want to inject
  671. // custom logic into the request's lifecycle using a custom handler, or if you want to
  672. // access properties on the request object before or after sending the request. If
  673. // you just want the service response, call the UpdateRepositoryDescription method directly
  674. // instead.
  675. //
  676. // Note: You must call the "Send" method on the returned request object in order
  677. // to execute the request.
  678. //
  679. // // Example sending a request using the UpdateRepositoryDescriptionRequest method.
  680. // req, resp := client.UpdateRepositoryDescriptionRequest(params)
  681. //
  682. // err := req.Send()
  683. // if err == nil { // resp is now filled
  684. // fmt.Println(resp)
  685. // }
  686. //
  687. func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryDescriptionInput) (req *request.Request, output *UpdateRepositoryDescriptionOutput) {
  688. op := &request.Operation{
  689. Name: opUpdateRepositoryDescription,
  690. HTTPMethod: "POST",
  691. HTTPPath: "/",
  692. }
  693. if input == nil {
  694. input = &UpdateRepositoryDescriptionInput{}
  695. }
  696. req = c.newRequest(op, input, output)
  697. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  698. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  699. output = &UpdateRepositoryDescriptionOutput{}
  700. req.Data = output
  701. return
  702. }
  703. // Sets or changes the comment or description for a repository.
  704. //
  705. // The description field for a repository accepts all HTML characters and all
  706. // valid Unicode characters. Applications that do not HTML-encode the description
  707. // and display it in a web page could expose users to potentially malicious
  708. // code. Make sure that you HTML-encode the description field in any application
  709. // that uses this API to display the repository description on a web page.
  710. func (c *CodeCommit) UpdateRepositoryDescription(input *UpdateRepositoryDescriptionInput) (*UpdateRepositoryDescriptionOutput, error) {
  711. req, out := c.UpdateRepositoryDescriptionRequest(input)
  712. err := req.Send()
  713. return out, err
  714. }
  715. const opUpdateRepositoryName = "UpdateRepositoryName"
  716. // UpdateRepositoryNameRequest generates a "aws/request.Request" representing the
  717. // client's request for the UpdateRepositoryName operation. The "output" return
  718. // value can be used to capture response data after the request's "Send" method
  719. // is called.
  720. //
  721. // Creating a request object using this method should be used when you want to inject
  722. // custom logic into the request's lifecycle using a custom handler, or if you want to
  723. // access properties on the request object before or after sending the request. If
  724. // you just want the service response, call the UpdateRepositoryName method directly
  725. // instead.
  726. //
  727. // Note: You must call the "Send" method on the returned request object in order
  728. // to execute the request.
  729. //
  730. // // Example sending a request using the UpdateRepositoryNameRequest method.
  731. // req, resp := client.UpdateRepositoryNameRequest(params)
  732. //
  733. // err := req.Send()
  734. // if err == nil { // resp is now filled
  735. // fmt.Println(resp)
  736. // }
  737. //
  738. func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInput) (req *request.Request, output *UpdateRepositoryNameOutput) {
  739. op := &request.Operation{
  740. Name: opUpdateRepositoryName,
  741. HTTPMethod: "POST",
  742. HTTPPath: "/",
  743. }
  744. if input == nil {
  745. input = &UpdateRepositoryNameInput{}
  746. }
  747. req = c.newRequest(op, input, output)
  748. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  749. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  750. output = &UpdateRepositoryNameOutput{}
  751. req.Data = output
  752. return
  753. }
  754. // Renames a repository. The repository name must be unique across the calling
  755. // AWS account. In addition, repository names are limited to 100 alphanumeric,
  756. // dash, and underscore characters, and cannot include certain characters. The
  757. // suffix ".git" is prohibited. For a full description of the limits on repository
  758. // names, see Limits (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html)
  759. // in the AWS CodeCommit User Guide.
  760. func (c *CodeCommit) UpdateRepositoryName(input *UpdateRepositoryNameInput) (*UpdateRepositoryNameOutput, error) {
  761. req, out := c.UpdateRepositoryNameRequest(input)
  762. err := req.Send()
  763. return out, err
  764. }
  765. // Represents the input of a batch get repositories operation.
  766. type BatchGetRepositoriesInput struct {
  767. _ struct{} `type:"structure"`
  768. // The names of the repositories to get information about.
  769. RepositoryNames []*string `locationName:"repositoryNames" type:"list" required:"true"`
  770. }
  771. // String returns the string representation
  772. func (s BatchGetRepositoriesInput) String() string {
  773. return awsutil.Prettify(s)
  774. }
  775. // GoString returns the string representation
  776. func (s BatchGetRepositoriesInput) GoString() string {
  777. return s.String()
  778. }
  779. // Validate inspects the fields of the type to determine if they are valid.
  780. func (s *BatchGetRepositoriesInput) Validate() error {
  781. invalidParams := request.ErrInvalidParams{Context: "BatchGetRepositoriesInput"}
  782. if s.RepositoryNames == nil {
  783. invalidParams.Add(request.NewErrParamRequired("RepositoryNames"))
  784. }
  785. if invalidParams.Len() > 0 {
  786. return invalidParams
  787. }
  788. return nil
  789. }
  790. // Represents the output of a batch get repositories operation.
  791. type BatchGetRepositoriesOutput struct {
  792. _ struct{} `type:"structure"`
  793. // A list of repositories returned by the batch get repositories operation.
  794. Repositories []*RepositoryMetadata `locationName:"repositories" type:"list"`
  795. // Returns a list of repository names for which information could not be found.
  796. RepositoriesNotFound []*string `locationName:"repositoriesNotFound" type:"list"`
  797. }
  798. // String returns the string representation
  799. func (s BatchGetRepositoriesOutput) String() string {
  800. return awsutil.Prettify(s)
  801. }
  802. // GoString returns the string representation
  803. func (s BatchGetRepositoriesOutput) GoString() string {
  804. return s.String()
  805. }
  806. // Returns information about a branch.
  807. type BranchInfo struct {
  808. _ struct{} `type:"structure"`
  809. // The name of the branch.
  810. BranchName *string `locationName:"branchName" min:"1" type:"string"`
  811. // The ID of the last commit made to the branch.
  812. CommitId *string `locationName:"commitId" type:"string"`
  813. }
  814. // String returns the string representation
  815. func (s BranchInfo) String() string {
  816. return awsutil.Prettify(s)
  817. }
  818. // GoString returns the string representation
  819. func (s BranchInfo) GoString() string {
  820. return s.String()
  821. }
  822. // Returns information about a specific commit.
  823. type Commit struct {
  824. _ struct{} `type:"structure"`
  825. // Any additional data associated with the specified commit.
  826. AdditionalData *string `locationName:"additionalData" type:"string"`
  827. // Information about the author of the specified commit.
  828. Author *UserInfo `locationName:"author" type:"structure"`
  829. // Information about the person who committed the specified commit, also known
  830. // as the committer. For more information about the difference between an author
  831. // and a committer in Git, see Viewing the Commit History (http://git-scm.com/book/ch2-3.html)
  832. // in Pro Git by Scott Chacon and Ben Straub.
  833. Committer *UserInfo `locationName:"committer" type:"structure"`
  834. // The message associated with the specified commit.
  835. Message *string `locationName:"message" type:"string"`
  836. // The parent list for the specified commit.
  837. Parents []*string `locationName:"parents" type:"list"`
  838. // Tree information for the specified commit.
  839. TreeId *string `locationName:"treeId" type:"string"`
  840. }
  841. // String returns the string representation
  842. func (s Commit) String() string {
  843. return awsutil.Prettify(s)
  844. }
  845. // GoString returns the string representation
  846. func (s Commit) GoString() string {
  847. return s.String()
  848. }
  849. // Represents the input of a create branch operation.
  850. type CreateBranchInput struct {
  851. _ struct{} `type:"structure"`
  852. // The name of the new branch to create.
  853. BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
  854. // The ID of the commit to point the new branch to.
  855. CommitId *string `locationName:"commitId" type:"string" required:"true"`
  856. // The name of the repository in which you want to create the new branch.
  857. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
  858. }
  859. // String returns the string representation
  860. func (s CreateBranchInput) String() string {
  861. return awsutil.Prettify(s)
  862. }
  863. // GoString returns the string representation
  864. func (s CreateBranchInput) GoString() string {
  865. return s.String()
  866. }
  867. // Validate inspects the fields of the type to determine if they are valid.
  868. func (s *CreateBranchInput) Validate() error {
  869. invalidParams := request.ErrInvalidParams{Context: "CreateBranchInput"}
  870. if s.BranchName == nil {
  871. invalidParams.Add(request.NewErrParamRequired("BranchName"))
  872. }
  873. if s.BranchName != nil && len(*s.BranchName) < 1 {
  874. invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
  875. }
  876. if s.CommitId == nil {
  877. invalidParams.Add(request.NewErrParamRequired("CommitId"))
  878. }
  879. if s.RepositoryName == nil {
  880. invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
  881. }
  882. if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
  883. invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
  884. }
  885. if invalidParams.Len() > 0 {
  886. return invalidParams
  887. }
  888. return nil
  889. }
  890. type CreateBranchOutput struct {
  891. _ struct{} `type:"structure"`
  892. }
  893. // String returns the string representation
  894. func (s CreateBranchOutput) String() string {
  895. return awsutil.Prettify(s)
  896. }
  897. // GoString returns the string representation
  898. func (s CreateBranchOutput) GoString() string {
  899. return s.String()
  900. }
  901. // Represents the input of a create repository operation.
  902. type CreateRepositoryInput struct {
  903. _ struct{} `type:"structure"`
  904. // A comment or description about the new repository.
  905. //
  906. // The description field for a repository accepts all HTML characters and all
  907. // valid Unicode characters. Applications that do not HTML-encode the description
  908. // and display it in a web page could expose users to potentially malicious
  909. // code. Make sure that you HTML-encode the description field in any application
  910. // that uses this API to display the repository description on a web page.
  911. RepositoryDescription *string `locationName:"repositoryDescription" type:"string"`
  912. // The name of the new repository to be created.
  913. //
  914. // The repository name must be unique across the calling AWS account. In addition,
  915. // repository names are limited to 100 alphanumeric, dash, and underscore characters,
  916. // and cannot include certain characters. For a full description of the limits
  917. // on repository names, see Limits (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html)
  918. // in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
  919. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
  920. }
  921. // String returns the string representation
  922. func (s CreateRepositoryInput) String() string {
  923. return awsutil.Prettify(s)
  924. }
  925. // GoString returns the string representation
  926. func (s CreateRepositoryInput) GoString() string {
  927. return s.String()
  928. }
  929. // Validate inspects the fields of the type to determine if they are valid.
  930. func (s *CreateRepositoryInput) Validate() error {
  931. invalidParams := request.ErrInvalidParams{Context: "CreateRepositoryInput"}
  932. if s.RepositoryName == nil {
  933. invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
  934. }
  935. if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
  936. invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
  937. }
  938. if invalidParams.Len() > 0 {
  939. return invalidParams
  940. }
  941. return nil
  942. }
  943. // Represents the output of a create repository operation.
  944. type CreateRepositoryOutput struct {
  945. _ struct{} `type:"structure"`
  946. // Information about the newly created repository.
  947. RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"`
  948. }
  949. // String returns the string representation
  950. func (s CreateRepositoryOutput) String() string {
  951. return awsutil.Prettify(s)
  952. }
  953. // GoString returns the string representation
  954. func (s CreateRepositoryOutput) GoString() string {
  955. return s.String()
  956. }
  957. // Represents the input of a delete repository operation.
  958. type DeleteRepositoryInput struct {
  959. _ struct{} `type:"structure"`
  960. // The name of the repository to delete.
  961. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
  962. }
  963. // String returns the string representation
  964. func (s DeleteRepositoryInput) String() string {
  965. return awsutil.Prettify(s)
  966. }
  967. // GoString returns the string representation
  968. func (s DeleteRepositoryInput) GoString() string {
  969. return s.String()
  970. }
  971. // Validate inspects the fields of the type to determine if they are valid.
  972. func (s *DeleteRepositoryInput) Validate() error {
  973. invalidParams := request.ErrInvalidParams{Context: "DeleteRepositoryInput"}
  974. if s.RepositoryName == nil {
  975. invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
  976. }
  977. if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
  978. invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
  979. }
  980. if invalidParams.Len() > 0 {
  981. return invalidParams
  982. }
  983. return nil
  984. }
  985. // Represents the output of a delete repository operation.
  986. type DeleteRepositoryOutput struct {
  987. _ struct{} `type:"structure"`
  988. // The ID of the repository that was deleted.
  989. RepositoryId *string `locationName:"repositoryId" type:"string"`
  990. }
  991. // String returns the string representation
  992. func (s DeleteRepositoryOutput) String() string {
  993. return awsutil.Prettify(s)
  994. }
  995. // GoString returns the string representation
  996. func (s DeleteRepositoryOutput) GoString() string {
  997. return s.String()
  998. }
  999. // Represents the input of a get branch operation.
  1000. type GetBranchInput struct {
  1001. _ struct{} `type:"structure"`
  1002. // The name of the branch for which you want to retrieve information.
  1003. BranchName *string `locationName:"branchName" min:"1" type:"string"`
  1004. // The name of the repository that contains the branch for which you want to
  1005. // retrieve information.
  1006. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
  1007. }
  1008. // String returns the string representation
  1009. func (s GetBranchInput) String() string {
  1010. return awsutil.Prettify(s)
  1011. }
  1012. // GoString returns the string representation
  1013. func (s GetBranchInput) GoString() string {
  1014. return s.String()
  1015. }
  1016. // Validate inspects the fields of the type to determine if they are valid.
  1017. func (s *GetBranchInput) Validate() error {
  1018. invalidParams := request.ErrInvalidParams{Context: "GetBranchInput"}
  1019. if s.BranchName != nil && len(*s.BranchName) < 1 {
  1020. invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
  1021. }
  1022. if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
  1023. invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
  1024. }
  1025. if invalidParams.Len() > 0 {
  1026. return invalidParams
  1027. }
  1028. return nil
  1029. }
  1030. // Represents the output of a get branch operation.
  1031. type GetBranchOutput struct {
  1032. _ struct{} `type:"structure"`
  1033. // The name of the branch.
  1034. Branch *BranchInfo `locationName:"branch" type:"structure"`
  1035. }
  1036. // String returns the string representation
  1037. func (s GetBranchOutput) String() string {
  1038. return awsutil.Prettify(s)
  1039. }
  1040. // GoString returns the string representation
  1041. func (s GetBranchOutput) GoString() string {
  1042. return s.String()
  1043. }
  1044. // Represents the input of a get commit operation.
  1045. type GetCommitInput struct {
  1046. _ struct{} `type:"structure"`
  1047. // The commit ID.
  1048. CommitId *string `locationName:"commitId" type:"string" required:"true"`
  1049. // The name of the repository to which the commit was made.
  1050. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
  1051. }
  1052. // String returns the string representation
  1053. func (s GetCommitInput) String() string {
  1054. return awsutil.Prettify(s)
  1055. }
  1056. // GoString returns the string representation
  1057. func (s GetCommitInput) GoString() string {
  1058. return s.String()
  1059. }
  1060. // Validate inspects the fields of the type to determine if they are valid.
  1061. func (s *GetCommitInput) Validate() error {
  1062. invalidParams := request.ErrInvalidParams{Context: "GetCommitInput"}
  1063. if s.CommitId == nil {
  1064. invalidParams.Add(request.NewErrParamRequired("CommitId"))
  1065. }
  1066. if s.RepositoryName == nil {
  1067. invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
  1068. }
  1069. if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
  1070. invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
  1071. }
  1072. if invalidParams.Len() > 0 {
  1073. return invalidParams
  1074. }
  1075. return nil
  1076. }
  1077. // Represents the output of a get commit operation.
  1078. type GetCommitOutput struct {
  1079. _ struct{} `type:"structure"`
  1080. // Information about the specified commit.
  1081. Commit *Commit `locationName:"commit" type:"structure" required:"true"`
  1082. }
  1083. // String returns the string representation
  1084. func (s GetCommitOutput) String() string {
  1085. return awsutil.Prettify(s)
  1086. }
  1087. // GoString returns the string representation
  1088. func (s GetCommitOutput) GoString() string {
  1089. return s.String()
  1090. }
  1091. // Represents the input of a get repository operation.
  1092. type GetRepositoryInput struct {
  1093. _ struct{} `type:"structure"`
  1094. // The name of the repository to get information about.
  1095. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
  1096. }
  1097. // String returns the string representation
  1098. func (s GetRepositoryInput) String() string {
  1099. return awsutil.Prettify(s)
  1100. }
  1101. // GoString returns the string representation
  1102. func (s GetRepositoryInput) GoString() string {
  1103. return s.String()
  1104. }
  1105. // Validate inspects the fields of the type to determine if they are valid.
  1106. func (s *GetRepositoryInput) Validate() error {
  1107. invalidParams := request.ErrInvalidParams{Context: "GetRepositoryInput"}
  1108. if s.RepositoryName == nil {
  1109. invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
  1110. }
  1111. if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
  1112. invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
  1113. }
  1114. if invalidParams.Len() > 0 {
  1115. return invalidParams
  1116. }
  1117. return nil
  1118. }
  1119. // Represents the output of a get repository operation.
  1120. type GetRepositoryOutput struct {
  1121. _ struct{} `type:"structure"`
  1122. // Information about the repository.
  1123. RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"`
  1124. }
  1125. // String returns the string representation
  1126. func (s GetRepositoryOutput) String() string {
  1127. return awsutil.Prettify(s)
  1128. }
  1129. // GoString returns the string representation
  1130. func (s GetRepositoryOutput) GoString() string {
  1131. return s.String()
  1132. }
  1133. // Represents the input of a get repository triggers operation.
  1134. type GetRepositoryTriggersInput struct {
  1135. _ struct{} `type:"structure"`
  1136. // The name of the repository for which the trigger is configured.
  1137. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
  1138. }
  1139. // String returns the string representation
  1140. func (s GetRepositoryTriggersInput) String() string {
  1141. return awsutil.Prettify(s)
  1142. }
  1143. // GoString returns the string representation
  1144. func (s GetRepositoryTriggersInput) GoString() string {
  1145. return s.String()
  1146. }
  1147. // Validate inspects the fields of the type to determine if they are valid.
  1148. func (s *GetRepositoryTriggersInput) Validate() error {
  1149. invalidParams := request.ErrInvalidParams{Context: "GetRepositoryTriggersInput"}
  1150. if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
  1151. invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
  1152. }
  1153. if invalidParams.Len() > 0 {
  1154. return invalidParams
  1155. }
  1156. return nil
  1157. }
  1158. // Represents the output of a get repository triggers operation.
  1159. type GetRepositoryTriggersOutput struct {
  1160. _ struct{} `type:"structure"`
  1161. // The system-generated unique ID for the trigger.
  1162. ConfigurationId *string `locationName:"configurationId" type:"string"`
  1163. // The JSON block of configuration information for each trigger.
  1164. Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"`
  1165. }
  1166. // String returns the string representation
  1167. func (s GetRepositoryTriggersOutput) String() string {
  1168. return awsutil.Prettify(s)
  1169. }
  1170. // GoString returns the string representation
  1171. func (s GetRepositoryTriggersOutput) GoString() string {
  1172. return s.String()
  1173. }
  1174. // Represents the input of a list branches operation.
  1175. type ListBranchesInput struct {
  1176. _ struct{} `type:"structure"`
  1177. // An enumeration token that allows the operation to batch the results.
  1178. NextToken *string `locationName:"nextToken" type:"string"`
  1179. // The name of the repository that contains the branches.
  1180. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
  1181. }
  1182. // String returns the string representation
  1183. func (s ListBranchesInput) String() string {
  1184. return awsutil.Prettify(s)
  1185. }
  1186. // GoString returns the string representation
  1187. func (s ListBranchesInput) GoString() string {
  1188. return s.String()
  1189. }
  1190. // Validate inspects the fields of the type to determine if they are valid.
  1191. func (s *ListBranchesInput) Validate() error {
  1192. invalidParams := request.ErrInvalidParams{Context: "ListBranchesInput"}
  1193. if s.RepositoryName == nil {
  1194. invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
  1195. }
  1196. if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
  1197. invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
  1198. }
  1199. if invalidParams.Len() > 0 {
  1200. return invalidParams
  1201. }
  1202. return nil
  1203. }
  1204. // Represents the output of a list branches operation.
  1205. type ListBranchesOutput struct {
  1206. _ struct{} `type:"structure"`
  1207. // The list of branch names.
  1208. Branches []*string `locationName:"branches" type:"list"`
  1209. // An enumeration token that returns the batch of the results.
  1210. NextToken *string `locationName:"nextToken" type:"string"`
  1211. }
  1212. // String returns the string representation
  1213. func (s ListBranchesOutput) String() string {
  1214. return awsutil.Prettify(s)
  1215. }
  1216. // GoString returns the string representation
  1217. func (s ListBranchesOutput) GoString() string {
  1218. return s.String()
  1219. }
  1220. // Represents the input of a list repositories operation.
  1221. type ListRepositoriesInput struct {
  1222. _ struct{} `type:"structure"`
  1223. // An enumeration token that allows the operation to batch the results of the
  1224. // operation. Batch sizes are 1,000 for list repository operations. When the
  1225. // client sends the token back to AWS CodeCommit, another page of 1,000 records
  1226. // is retrieved.
  1227. NextToken *string `locationName:"nextToken" type:"string"`
  1228. // The order in which to sort the results of a list repositories operation.
  1229. Order *string `locationName:"order" type:"string" enum:"OrderEnum"`
  1230. // The criteria used to sort the results of a list repositories operation.
  1231. SortBy *string `locationName:"sortBy" type:"string" enum:"SortByEnum"`
  1232. }
  1233. // String returns the string representation
  1234. func (s ListRepositoriesInput) String() string {
  1235. return awsutil.Prettify(s)
  1236. }
  1237. // GoString returns the string representation
  1238. func (s ListRepositoriesInput) GoString() string {
  1239. return s.String()
  1240. }
  1241. // Represents the output of a list repositories operation.
  1242. type ListRepositoriesOutput struct {
  1243. _ struct{} `type:"structure"`
  1244. // An enumeration token that allows the operation to batch the results of the
  1245. // operation. Batch sizes are 1,000 for list repository operations. When the
  1246. // client sends the token back to AWS CodeCommit, another page of 1,000 records
  1247. // is retrieved.
  1248. NextToken *string `locationName:"nextToken" type:"string"`
  1249. // Lists the repositories called by the list repositories operation.
  1250. Repositories []*RepositoryNameIdPair `locationName:"repositories" type:"list"`
  1251. }
  1252. // String returns the string representation
  1253. func (s ListRepositoriesOutput) String() string {
  1254. return awsutil.Prettify(s)
  1255. }
  1256. // GoString returns the string representation
  1257. func (s ListRepositoriesOutput) GoString() string {
  1258. return s.String()
  1259. }
  1260. // Represents the input ofa put repository triggers operation.
  1261. type PutRepositoryTriggersInput struct {
  1262. _ struct{} `type:"structure"`
  1263. // The name of the repository where you want to create or update the trigger.
  1264. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
  1265. // The JSON block of configuration information for each trigger.
  1266. Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"`
  1267. }
  1268. // String returns the string representation
  1269. func (s PutRepositoryTriggersInput) String() string {
  1270. return awsutil.Prettify(s)
  1271. }
  1272. // GoString returns the string representation
  1273. func (s PutRepositoryTriggersInput) GoString() string {
  1274. return s.String()
  1275. }
  1276. // Validate inspects the fields of the type to determine if they are valid.
  1277. func (s *PutRepositoryTriggersInput) Validate() error {
  1278. invalidParams := request.ErrInvalidParams{Context: "PutRepositoryTriggersInput"}
  1279. if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
  1280. invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
  1281. }
  1282. if invalidParams.Len() > 0 {
  1283. return invalidParams
  1284. }
  1285. return nil
  1286. }
  1287. // Represents the output of a put repository triggers operation.
  1288. type PutRepositoryTriggersOutput struct {
  1289. _ struct{} `type:"structure"`
  1290. // The system-generated unique ID for the create or update operation.
  1291. ConfigurationId *string `locationName:"configurationId" type:"string"`
  1292. }
  1293. // String returns the string representation
  1294. func (s PutRepositoryTriggersOutput) String() string {
  1295. return awsutil.Prettify(s)
  1296. }
  1297. // GoString returns the string representation
  1298. func (s PutRepositoryTriggersOutput) GoString() string {
  1299. return s.String()
  1300. }
  1301. // Information about a repository.
  1302. type RepositoryMetadata struct {
  1303. _ struct{} `type:"structure"`
  1304. // The ID of the AWS account associated with the repository.
  1305. AccountId *string `locationName:"accountId" type:"string"`
  1306. // The Amazon Resource Name (ARN) of the repository.
  1307. Arn *string `type:"string"`
  1308. // The URL to use for cloning the repository over HTTPS.
  1309. CloneUrlHttp *string `locationName:"cloneUrlHttp" type:"string"`
  1310. // The URL to use for cloning the repository over SSH.
  1311. CloneUrlSsh *string `locationName:"cloneUrlSsh" type:"string"`
  1312. // The date and time the repository was created, in timestamp format.
  1313. CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"`
  1314. // The repository's default branch name.
  1315. DefaultBranch *string `locationName:"defaultBranch" min:"1" type:"string"`
  1316. // The date and time the repository was last modified, in timestamp format.
  1317. LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"`
  1318. // A comment or description about the repository.
  1319. RepositoryDescription *string `locationName:"repositoryDescription" type:"string"`
  1320. // The ID of the repository.
  1321. RepositoryId *string `locationName:"repositoryId" type:"string"`
  1322. // The repository's name.
  1323. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
  1324. }
  1325. // String returns the string representation
  1326. func (s RepositoryMetadata) String() string {
  1327. return awsutil.Prettify(s)
  1328. }
  1329. // GoString returns the string representation
  1330. func (s RepositoryMetadata) GoString() string {
  1331. return s.String()
  1332. }
  1333. // Information about a repository name and ID.
  1334. type RepositoryNameIdPair struct {
  1335. _ struct{} `type:"structure"`
  1336. // The ID associated with the repository.
  1337. RepositoryId *string `locationName:"repositoryId" type:"string"`
  1338. // The name associated with the repository.
  1339. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
  1340. }
  1341. // String returns the string representation
  1342. func (s RepositoryNameIdPair) String() string {
  1343. return awsutil.Prettify(s)
  1344. }
  1345. // GoString returns the string representation
  1346. func (s RepositoryNameIdPair) GoString() string {
  1347. return s.String()
  1348. }
  1349. // Information about a trigger for a repository.
  1350. type RepositoryTrigger struct {
  1351. _ struct{} `type:"structure"`
  1352. // The branches that will be included in the trigger configuration. If no branches
  1353. // are specified, the trigger will apply to all branches.
  1354. Branches []*string `locationName:"branches" type:"list"`
  1355. // Any custom data associated with the trigger that will be included in the
  1356. // information sent to the target of the trigger.
  1357. CustomData *string `locationName:"customData" type:"string"`
  1358. // The ARN of the resource that is the target for a trigger. For example, the
  1359. // ARN of a topic in Amazon Simple Notification Service (SNS).
  1360. DestinationArn *string `locationName:"destinationArn" type:"string"`
  1361. // The repository events that will cause the trigger to run actions in another
  1362. // service, such as sending a notification through Amazon Simple Notification
  1363. // Service (SNS). If no events are specified, the trigger will run for all repository
  1364. // events.
  1365. Events []*string `locationName:"events" type:"list"`
  1366. // The name of the trigger.
  1367. Name *string `locationName:"name" type:"string"`
  1368. }
  1369. // String returns the string representation
  1370. func (s RepositoryTrigger) String() string {
  1371. return awsutil.Prettify(s)
  1372. }
  1373. // GoString returns the string representation
  1374. func (s RepositoryTrigger) GoString() string {
  1375. return s.String()
  1376. }
  1377. // A trigger failed to run.
  1378. type RepositoryTriggerExecutionFailure struct {
  1379. _ struct{} `type:"structure"`
  1380. // Additional message information about the trigger that did not run.
  1381. FailureMessage *string `locationName:"failureMessage" type:"string"`
  1382. // The name of the trigger that did not run.
  1383. Trigger *string `locationName:"trigger" type:"string"`
  1384. }
  1385. // String returns the string representation
  1386. func (s RepositoryTriggerExecutionFailure) String() string {
  1387. return awsutil.Prettify(s)
  1388. }
  1389. // GoString returns the string representation
  1390. func (s RepositoryTriggerExecutionFailure) GoString() string {
  1391. return s.String()
  1392. }
  1393. // Represents the input of a test repository triggers operation.
  1394. type TestRepositoryTriggersInput struct {
  1395. _ struct{} `type:"structure"`
  1396. // The name of the repository in which to test the triggers.
  1397. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"`
  1398. // The list of triggers to test.
  1399. Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"`
  1400. }
  1401. // String returns the string representation
  1402. func (s TestRepositoryTriggersInput) String() string {
  1403. return awsutil.Prettify(s)
  1404. }
  1405. // GoString returns the string representation
  1406. func (s TestRepositoryTriggersInput) GoString() string {
  1407. return s.String()
  1408. }
  1409. // Validate inspects the fields of the type to determine if they are valid.
  1410. func (s *TestRepositoryTriggersInput) Validate() error {
  1411. invalidParams := request.ErrInvalidParams{Context: "TestRepositoryTriggersInput"}
  1412. if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
  1413. invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
  1414. }
  1415. if invalidParams.Len() > 0 {
  1416. return invalidParams
  1417. }
  1418. return nil
  1419. }
  1420. // Represents the output of a test repository triggers operation.
  1421. type TestRepositoryTriggersOutput struct {
  1422. _ struct{} `type:"structure"`
  1423. // The list of triggers that were not able to be tested. This list provides
  1424. // the names of the triggers that could not be tested, separated by commas.
  1425. FailedExecutions []*RepositoryTriggerExecutionFailure `locationName:"failedExecutions" type:"list"`
  1426. // The list of triggers that were successfully tested. This list provides the
  1427. // names of the triggers that were successfully tested, separated by commas.
  1428. SuccessfulExecutions []*string `locationName:"successfulExecutions" type:"list"`
  1429. }
  1430. // String returns the string representation
  1431. func (s TestRepositoryTriggersOutput) String() string {
  1432. return awsutil.Prettify(s)
  1433. }
  1434. // GoString returns the string representation
  1435. func (s TestRepositoryTriggersOutput) GoString() string {
  1436. return s.String()
  1437. }
  1438. // Represents the input of an update default branch operation.
  1439. type UpdateDefaultBranchInput struct {
  1440. _ struct{} `type:"structure"`
  1441. // The name of the branch to set as the default.
  1442. DefaultBranchName *string `locationName:"defaultBranchName" min:"1" type:"string" required:"true"`
  1443. // The name of the repository to set or change the default branch for.
  1444. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
  1445. }
  1446. // String returns the string representation
  1447. func (s UpdateDefaultBranchInput) String() string {
  1448. return awsutil.Prettify(s)
  1449. }
  1450. // GoString returns the string representation
  1451. func (s UpdateDefaultBranchInput) GoString() string {
  1452. return s.String()
  1453. }
  1454. // Validate inspects the fields of the type to determine if they are valid.
  1455. func (s *UpdateDefaultBranchInput) Validate() error {
  1456. invalidParams := request.ErrInvalidParams{Context: "UpdateDefaultBranchInput"}
  1457. if s.DefaultBranchName == nil {
  1458. invalidParams.Add(request.NewErrParamRequired("DefaultBranchName"))
  1459. }
  1460. if s.DefaultBranchName != nil && len(*s.DefaultBranchName) < 1 {
  1461. invalidParams.Add(request.NewErrParamMinLen("DefaultBranchName", 1))
  1462. }
  1463. if s.RepositoryName == nil {
  1464. invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
  1465. }
  1466. if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
  1467. invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
  1468. }
  1469. if invalidParams.Len() > 0 {
  1470. return invalidParams
  1471. }
  1472. return nil
  1473. }
  1474. type UpdateDefaultBranchOutput struct {
  1475. _ struct{} `type:"structure"`
  1476. }
  1477. // String returns the string representation
  1478. func (s UpdateDefaultBranchOutput) String() string {
  1479. return awsutil.Prettify(s)
  1480. }
  1481. // GoString returns the string representation
  1482. func (s UpdateDefaultBranchOutput) GoString() string {
  1483. return s.String()
  1484. }
  1485. // Represents the input of an update repository description operation.
  1486. type UpdateRepositoryDescriptionInput struct {
  1487. _ struct{} `type:"structure"`
  1488. // The new comment or description for the specified repository. Repository descriptions
  1489. // are limited to 1,000 characters.
  1490. RepositoryDescription *string `locationName:"repositoryDescription" type:"string"`
  1491. // The name of the repository to set or change the comment or description for.
  1492. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
  1493. }
  1494. // String returns the string representation
  1495. func (s UpdateRepositoryDescriptionInput) String() string {
  1496. return awsutil.Prettify(s)
  1497. }
  1498. // GoString returns the string representation
  1499. func (s UpdateRepositoryDescriptionInput) GoString() string {
  1500. return s.String()
  1501. }
  1502. // Validate inspects the fields of the type to determine if they are valid.
  1503. func (s *UpdateRepositoryDescriptionInput) Validate() error {
  1504. invalidParams := request.ErrInvalidParams{Context: "UpdateRepositoryDescriptionInput"}
  1505. if s.RepositoryName == nil {
  1506. invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
  1507. }
  1508. if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
  1509. invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
  1510. }
  1511. if invalidParams.Len() > 0 {
  1512. return invalidParams
  1513. }
  1514. return nil
  1515. }
  1516. type UpdateRepositoryDescriptionOutput struct {
  1517. _ struct{} `type:"structure"`
  1518. }
  1519. // String returns the string representation
  1520. func (s UpdateRepositoryDescriptionOutput) String() string {
  1521. return awsutil.Prettify(s)
  1522. }
  1523. // GoString returns the string representation
  1524. func (s UpdateRepositoryDescriptionOutput) GoString() string {
  1525. return s.String()
  1526. }
  1527. // Represents the input of an update repository description operation.
  1528. type UpdateRepositoryNameInput struct {
  1529. _ struct{} `type:"structure"`
  1530. // The new name for the repository.
  1531. NewName *string `locationName:"newName" min:"1" type:"string" required:"true"`
  1532. // The existing name of the repository.
  1533. OldName *string `locationName:"oldName" min:"1" type:"string" required:"true"`
  1534. }
  1535. // String returns the string representation
  1536. func (s UpdateRepositoryNameInput) String() string {
  1537. return awsutil.Prettify(s)
  1538. }
  1539. // GoString returns the string representation
  1540. func (s UpdateRepositoryNameInput) GoString() string {
  1541. return s.String()
  1542. }
  1543. // Validate inspects the fields of the type to determine if they are valid.
  1544. func (s *UpdateRepositoryNameInput) Validate() error {
  1545. invalidParams := request.ErrInvalidParams{Context: "UpdateRepositoryNameInput"}
  1546. if s.NewName == nil {
  1547. invalidParams.Add(request.NewErrParamRequired("NewName"))
  1548. }
  1549. if s.NewName != nil && len(*s.NewName) < 1 {
  1550. invalidParams.Add(request.NewErrParamMinLen("NewName", 1))
  1551. }
  1552. if s.OldName == nil {
  1553. invalidParams.Add(request.NewErrParamRequired("OldName"))
  1554. }
  1555. if s.OldName != nil && len(*s.OldName) < 1 {
  1556. invalidParams.Add(request.NewErrParamMinLen("OldName", 1))
  1557. }
  1558. if invalidParams.Len() > 0 {
  1559. return invalidParams
  1560. }
  1561. return nil
  1562. }
  1563. type UpdateRepositoryNameOutput struct {
  1564. _ struct{} `type:"structure"`
  1565. }
  1566. // String returns the string representation
  1567. func (s UpdateRepositoryNameOutput) String() string {
  1568. return awsutil.Prettify(s)
  1569. }
  1570. // GoString returns the string representation
  1571. func (s UpdateRepositoryNameOutput) GoString() string {
  1572. return s.String()
  1573. }
  1574. // Information about the user who made a specified commit.
  1575. type UserInfo struct {
  1576. _ struct{} `type:"structure"`
  1577. // The date when the specified commit was pushed to the repository.
  1578. Date *string `locationName:"date" type:"string"`
  1579. // The email address associated with the user who made the commit, if any.
  1580. Email *string `locationName:"email" type:"string"`
  1581. // The name of the user who made the specified commit.
  1582. Name *string `locationName:"name" type:"string"`
  1583. }
  1584. // String returns the string representation
  1585. func (s UserInfo) String() string {
  1586. return awsutil.Prettify(s)
  1587. }
  1588. // GoString returns the string representation
  1589. func (s UserInfo) GoString() string {
  1590. return s.String()
  1591. }
  1592. const (
  1593. // @enum OrderEnum
  1594. OrderEnumAscending = "ascending"
  1595. // @enum OrderEnum
  1596. OrderEnumDescending = "descending"
  1597. )
  1598. const (
  1599. // @enum RepositoryTriggerEventEnum
  1600. RepositoryTriggerEventEnumAll = "all"
  1601. // @enum RepositoryTriggerEventEnum
  1602. RepositoryTriggerEventEnumUpdateReference = "updateReference"
  1603. // @enum RepositoryTriggerEventEnum
  1604. RepositoryTriggerEventEnumCreateReference = "createReference"
  1605. // @enum RepositoryTriggerEventEnum
  1606. RepositoryTriggerEventEnumDeleteReference = "deleteReference"
  1607. )
  1608. const (
  1609. // @enum SortByEnum
  1610. SortByEnumRepositoryName = "repositoryName"
  1611. // @enum SortByEnum
  1612. SortByEnumLastModifiedDate = "lastModifiedDate"
  1613. )