getRepositoryTree

The gitlab.getRepositoryTree data source allows details of directories and files in a repository to be retrieved. Upstream API: GitLab REST API docs

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.GitlabFunctions;
import com.pulumi.gitlab.inputs.GetRepositoryTreeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var this = GitlabFunctions.getRepositoryTree(GetRepositoryTreeArgs.builder()
.path("ExampleSubFolder")
.project("example")
.recursive(true)
.ref("main")
.build());
}
}

Return

A collection of values returned by getRepositoryTree.

Parameters

argument

A collection of arguments for invoking getRepositoryTree.


suspend fun getRepositoryTree(path: String? = null, project: String, recursive: Boolean? = null, ref: String): GetRepositoryTreeResult

Return

A collection of values returned by getRepositoryTree.

Parameters

path

The path inside repository. Used to get content of subdirectories.

project

The ID or full path of the project owned by the authenticated user.

recursive

Boolean value used to get a recursive tree (false by default).

ref

The name of a repository branch or tag.

See also


Return

A collection of values returned by getRepositoryTree.

Parameters

argument

Builder for com.pulumi.gitlab.kotlin.inputs.GetRepositoryTreePlainArgs.

See also