Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a new, empty repository.
- createRepository :: Text -> CreateRepository
- data CreateRepository
- crRepositoryDescription :: Lens' CreateRepository (Maybe Text)
- crRepositoryName :: Lens' CreateRepository Text
- createRepositoryResponse :: Int -> CreateRepositoryResponse
- data CreateRepositoryResponse
- crrsRepositoryMetadata :: Lens' CreateRepositoryResponse (Maybe RepositoryMetadata)
- crrsResponseStatus :: Lens' CreateRepositoryResponse Int
Creating a Request
Creates a value of CreateRepository
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crRepositoryDescription
- A comment or description about the new repository.crRepositoryName
- The name of the new repository to be created.
data CreateRepository Source #
Represents the input of a create repository operation.
See: createRepository
smart constructor.
Request Lenses
crRepositoryDescription :: Lens' CreateRepository (Maybe Text) Source #
A comment or description about the new repository.
crRepositoryName :: Lens' CreateRepository Text Source #
The name of the new repository to be created.
Destructuring the Response
createRepositoryResponse Source #
Creates a value of CreateRepositoryResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crrsRepositoryMetadata
- Information about the newly created repository.crrsResponseStatus
- -- | The response status code.
data CreateRepositoryResponse Source #
Represents the output of a create repository operation.
See: createRepositoryResponse
smart constructor.
Response Lenses
crrsRepositoryMetadata :: Lens' CreateRepositoryResponse (Maybe RepositoryMetadata) Source #
Information about the newly created repository.
crrsResponseStatus :: Lens' CreateRepositoryResponse Int Source #
- - | The response status code.