Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns information about a repository branch, including its name and the last commit ID.
Synopsis
- data GetBranch = GetBranch' {}
- newGetBranch :: GetBranch
- getBranch_branchName :: Lens' GetBranch (Maybe Text)
- getBranch_repositoryName :: Lens' GetBranch (Maybe Text)
- data GetBranchResponse = GetBranchResponse' {
- branch :: Maybe BranchInfo
- httpStatus :: Int
- newGetBranchResponse :: Int -> GetBranchResponse
- getBranchResponse_branch :: Lens' GetBranchResponse (Maybe BranchInfo)
- getBranchResponse_httpStatus :: Lens' GetBranchResponse Int
Creating a Request
Represents the input of a get branch operation.
See: newGetBranch
smart constructor.
GetBranch' | |
|
Instances
newGetBranch :: GetBranch Source #
Create a value of GetBranch
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:branchName:GetBranch'
, getBranch_branchName
- The name of the branch for which you want to retrieve information.
$sel:repositoryName:GetBranch'
, getBranch_repositoryName
- The name of the repository that contains the branch for which you want
to retrieve information.
Request Lenses
getBranch_branchName :: Lens' GetBranch (Maybe Text) Source #
The name of the branch for which you want to retrieve information.
getBranch_repositoryName :: Lens' GetBranch (Maybe Text) Source #
The name of the repository that contains the branch for which you want to retrieve information.
Destructuring the Response
data GetBranchResponse Source #
Represents the output of a get branch operation.
See: newGetBranchResponse
smart constructor.
GetBranchResponse' | |
|
Instances
Create a value of GetBranchResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:branch:GetBranchResponse'
, getBranchResponse_branch
- The name of the branch.
$sel:httpStatus:GetBranchResponse'
, getBranchResponse_httpStatus
- The response's http status code.
Response Lenses
getBranchResponse_branch :: Lens' GetBranchResponse (Maybe BranchInfo) Source #
The name of the branch.
getBranchResponse_httpStatus :: Lens' GetBranchResponse Int Source #
The response's http status code.