RepositoryFileArgs

data class RepositoryFileArgs(val authorEmail: Output<String>? = null, val authorName: Output<String>? = null, val branch: Output<String>? = null, val commitMessage: Output<String>? = null, val content: Output<String>? = null, val createCommitMessage: Output<String>? = null, val deleteCommitMessage: Output<String>? = null, val encoding: Output<String>? = null, val executeFilemode: Output<Boolean>? = null, val filePath: Output<String>? = null, val overwriteOnCreate: Output<Boolean>? = null, val project: Output<String>? = null, val startBranch: Output<String>? = null, val updateCommitMessage: Output<String>? = null) : ConvertibleToJava<RepositoryFileArgs>

Example Usage

Import

A Repository File can be imported using an id made up of <project-id>:<branch-name>:<file-path>, e.g.

$ pulumi import gitlab:index/repositoryFile:RepositoryFile this 1:main:foo/bar.txt

Constructors

Link copied to clipboard
constructor(authorEmail: Output<String>? = null, authorName: Output<String>? = null, branch: Output<String>? = null, commitMessage: Output<String>? = null, content: Output<String>? = null, createCommitMessage: Output<String>? = null, deleteCommitMessage: Output<String>? = null, encoding: Output<String>? = null, executeFilemode: Output<Boolean>? = null, filePath: Output<String>? = null, overwriteOnCreate: Output<Boolean>? = null, project: Output<String>? = null, startBranch: Output<String>? = null, updateCommitMessage: Output<String>? = null)

Properties

Link copied to clipboard
val authorEmail: Output<String>? = null

Email of the commit author.

Link copied to clipboard
val authorName: Output<String>? = null

Name of the commit author.

Link copied to clipboard
val branch: Output<String>? = null

Name of the branch to which to commit to.

Link copied to clipboard
val commitMessage: Output<String>? = null

Commit message.

Link copied to clipboard
val content: Output<String>? = null

File content.

Link copied to clipboard
val createCommitMessage: Output<String>? = null

Create commit message.

Link copied to clipboard
val deleteCommitMessage: Output<String>? = null

Delete Commit message.

Link copied to clipboard
val encoding: Output<String>? = null

The file content encoding. Default value is base64. Valid values are: base64, text.

Link copied to clipboard
val executeFilemode: Output<Boolean>? = null

Enables or disables the execute flag on the file. Note: requires GitLab 14.10 or newer.

Link copied to clipboard
val filePath: Output<String>? = null

The full path of the file. It must be relative to the root of the project without a leading slash / or ./.

Link copied to clipboard
val overwriteOnCreate: Output<Boolean>? = null

Enable overwriting existing files, defaults to false. This attribute is only used during create and must be use carefully. We suggest to use imports whenever possible and limit the use of this attribute for when the project was imported on the same apply. This attribute is not supported during a resource import.

Link copied to clipboard
val project: Output<String>? = null

The name or ID of the project.

Link copied to clipboard
val startBranch: Output<String>? = null

Name of the branch to start the new commit from.

Link copied to clipboard
val updateCommitMessage: Output<String>? = null

Update commit message.

Functions

Link copied to clipboard
open override fun toJava(): RepositoryFileArgs