public class EditFileRequest extends Object
The following properties are required:
getBranch() ()}: The name of the branch on which the edit should happengetPath() ()}: The path of the filegetRepository(): The repository in which the edit operation should be donegetContent(): A supplier providing access to the file contentgetSourceCommitId() is not provided, it's assumed the file doesn't exist on the branch and a
new file will be created.ContentService.editFile(EditFileRequest)| Modifier and Type | Class and Description |
|---|---|
static class |
EditFileRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
getBranch() |
InputSupplier<InputStream> |
getContent() |
Optional<String> |
getMessage() |
String |
getPath() |
Repository |
getRepository() |
String |
getSourceBranch() |
Optional<String> |
getSourceCommitId() |
@Nonnull public String getBranch()
@Nonnull public InputSupplier<InputStream> getContent()
@Nonnull public Repository getRepository()
@Nonnull public String getSourceBranch()
Copyright © 2019 Atlassian. All rights reserved.