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 |
Replaces all triggers for a repository. This can be used to create or delete triggers.
- putRepositoryTriggers :: PutRepositoryTriggers
- data PutRepositoryTriggers
- prtTriggers :: Lens' PutRepositoryTriggers [RepositoryTrigger]
- prtRepositoryName :: Lens' PutRepositoryTriggers (Maybe Text)
- putRepositoryTriggersResponse :: Int -> PutRepositoryTriggersResponse
- data PutRepositoryTriggersResponse
- prtrsConfigurationId :: Lens' PutRepositoryTriggersResponse (Maybe Text)
- prtrsResponseStatus :: Lens' PutRepositoryTriggersResponse Int
Creating a Request
putRepositoryTriggers :: PutRepositoryTriggers Source #
Creates a value of PutRepositoryTriggers
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
prtTriggers
- The JSON block of configuration information for each trigger.prtRepositoryName
- The name of the repository where you want to create or update the trigger.
data PutRepositoryTriggers Source #
Represents the input ofa put repository triggers operation.
See: putRepositoryTriggers
smart constructor.
Request Lenses
prtTriggers :: Lens' PutRepositoryTriggers [RepositoryTrigger] Source #
The JSON block of configuration information for each trigger.
prtRepositoryName :: Lens' PutRepositoryTriggers (Maybe Text) Source #
The name of the repository where you want to create or update the trigger.
Destructuring the Response
putRepositoryTriggersResponse Source #
Creates a value of PutRepositoryTriggersResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
prtrsConfigurationId
- The system-generated unique ID for the create or update operation.prtrsResponseStatus
- -- | The response status code.
data PutRepositoryTriggersResponse Source #
Represents the output of a put repository triggers operation.
See: putRepositoryTriggersResponse
smart constructor.
Response Lenses
prtrsConfigurationId :: Lens' PutRepositoryTriggersResponse (Maybe Text) Source #
The system-generated unique ID for the create or update operation.
prtrsResponseStatus :: Lens' PutRepositoryTriggersResponse Int Source #
- - | The response status code.