FilesApi Type
Client for GitLab repository file operations. See the .
Constructors
| Constructor |
Description
|
Full Usage:
FilesApi(baseUrl, auth, http)
Parameters:
string
auth : Authentication
http : IHttpClient
Returns: FilesApi
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.CreateAsync
Parameters:
int
-
The project identifier.
filePath : string
-
The repository-relative file path.
branch : string
-
The target branch.
content : string
-
The file content.
commitMessage : string
-
The commit message GitLab should create.
?encoding : string
-
Optional content encoding, such as base64.
Returns: Async<RepoFile>
|
Creates a repository file, then fetches its contents and metadata from the target branch. The write may have succeeded even if the subsequent read fails. Concurrent branch changes can affect the returned file.
|
Full Usage:
this.DeleteAsync
Parameters:
int
-
The project identifier.
filePath : string
-
The repository-relative file path.
branch : string
-
The target branch.
commitMessage : string
-
The commit message GitLab should create.
Returns: Async<unit>
|
Deletes a repository file.
|
|
|
Full Usage:
this.UpdateAsync
Parameters:
int
-
The project identifier.
filePath : string
-
The repository-relative file path.
branch : string
-
The target branch.
content : string
-
The replacement file content.
commitMessage : string
-
The commit message GitLab should create.
?encoding : string
-
Optional content encoding, such as base64.
Returns: Async<RepoFile>
|
Updates a repository file, then fetches its contents and metadata from the target branch. The write may have succeeded even if the subsequent read fails. Concurrent branch changes can affect the returned file.
|
DataHubClient