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 |
Sets or changes the default branch name for the specified repository.
If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.
Synopsis
- data UpdateDefaultBranch = UpdateDefaultBranch' {}
- newUpdateDefaultBranch :: Text -> Text -> UpdateDefaultBranch
- updateDefaultBranch_repositoryName :: Lens' UpdateDefaultBranch Text
- updateDefaultBranch_defaultBranchName :: Lens' UpdateDefaultBranch Text
- data UpdateDefaultBranchResponse = UpdateDefaultBranchResponse' {
- newUpdateDefaultBranchResponse :: UpdateDefaultBranchResponse
Creating a Request
data UpdateDefaultBranch Source #
Represents the input of an update default branch operation.
See: newUpdateDefaultBranch
smart constructor.
UpdateDefaultBranch' | |
|
Instances
newUpdateDefaultBranch Source #
:: Text | |
-> Text | |
-> UpdateDefaultBranch |
Create a value of UpdateDefaultBranch
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:repositoryName:UpdateDefaultBranch'
, updateDefaultBranch_repositoryName
- The name of the repository to set or change the default branch for.
$sel:defaultBranchName:UpdateDefaultBranch'
, updateDefaultBranch_defaultBranchName
- The name of the branch to set as the default.
Request Lenses
updateDefaultBranch_repositoryName :: Lens' UpdateDefaultBranch Text Source #
The name of the repository to set or change the default branch for.
updateDefaultBranch_defaultBranchName :: Lens' UpdateDefaultBranch Text Source #
The name of the branch to set as the default.
Destructuring the Response
data UpdateDefaultBranchResponse Source #
See: newUpdateDefaultBranchResponse
smart constructor.
Instances
newUpdateDefaultBranchResponse :: UpdateDefaultBranchResponse Source #
Create a value of UpdateDefaultBranchResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.