GetProjectResult

data class GetProjectResult(val analyticsAccessLevel: String, val archived: Boolean, val autoCancelPendingPipelines: String, val autoDevopsDeployStrategy: String, val autoDevopsEnabled: Boolean, val autocloseReferencedIssues: Boolean, val buildGitStrategy: String, val buildTimeout: Int, val buildsAccessLevel: String, val ciConfigPath: String, val ciDefaultGitDepth: Int, val ciRestrictPipelineCancellationRole: String, val ciSeparatedCaches: Boolean, val containerExpirationPolicies: List<GetProjectContainerExpirationPolicy>, val containerRegistryAccessLevel: String, val defaultBranch: String, val description: String, val emailsDisabled: Boolean, val emailsEnabled: Boolean, val emptyRepo: Boolean, val environmentsAccessLevel: String, val externalAuthorizationClassificationLabel: String, val featureFlagsAccessLevel: String, val forkingAccessLevel: String, val httpUrlToRepo: String, val id: String, val importUrl: String, val infrastructureAccessLevel: String, val issuesAccessLevel: String, val issuesEnabled: Boolean, val keepLatestArtifact: Boolean, val lfsEnabled: Boolean, val mergeCommitTemplate: String, val mergePipelinesEnabled: Boolean, val mergeRequestsAccessLevel: String, val mergeRequestsEnabled: Boolean, val mergeTrainsEnabled: Boolean, val monitorAccessLevel: String, val name: String, val namespaceId: Int, val path: String, val pathWithNamespace: String, val pipelinesEnabled: Boolean, val printingMergeRequestLinkEnabled: Boolean, val publicBuilds: Boolean? = null, val pushRules: List<GetProjectPushRule>, val releasesAccessLevel: String, val removeSourceBranchAfterMerge: Boolean, val repositoryAccessLevel: String, val repositoryStorage: String, val requestAccessEnabled: Boolean, val requirementsAccessLevel: String, val resolveOutdatedDiffDiscussions: Boolean, val restrictUserDefinedVariables: Boolean, val runnersToken: String, val securityAndComplianceAccessLevel: String, val sharedWithGroups: List<GetProjectSharedWithGroup>, val snippetsAccessLevel: String, val snippetsEnabled: Boolean, val squashCommitTemplate: String, val sshUrlToRepo: String, val suggestionCommitMessage: String, val topics: List<String>, val visibilityLevel: String, val webUrl: String, val wikiAccessLevel: String, val wikiEnabled: Boolean)

A collection of values returned by getProject.

Constructors

Link copied to clipboard
constructor(analyticsAccessLevel: String, archived: Boolean, autoCancelPendingPipelines: String, autoDevopsDeployStrategy: String, autoDevopsEnabled: Boolean, autocloseReferencedIssues: Boolean, buildGitStrategy: String, buildTimeout: Int, buildsAccessLevel: String, ciConfigPath: String, ciDefaultGitDepth: Int, ciRestrictPipelineCancellationRole: String, ciSeparatedCaches: Boolean, containerExpirationPolicies: List<GetProjectContainerExpirationPolicy>, containerRegistryAccessLevel: String, defaultBranch: String, description: String, emailsDisabled: Boolean, emailsEnabled: Boolean, emptyRepo: Boolean, environmentsAccessLevel: String, externalAuthorizationClassificationLabel: String, featureFlagsAccessLevel: String, forkingAccessLevel: String, httpUrlToRepo: String, id: String, importUrl: String, infrastructureAccessLevel: String, issuesAccessLevel: String, issuesEnabled: Boolean, keepLatestArtifact: Boolean, lfsEnabled: Boolean, mergeCommitTemplate: String, mergePipelinesEnabled: Boolean, mergeRequestsAccessLevel: String, mergeRequestsEnabled: Boolean, mergeTrainsEnabled: Boolean, monitorAccessLevel: String, name: String, namespaceId: Int, path: String, pathWithNamespace: String, pipelinesEnabled: Boolean, printingMergeRequestLinkEnabled: Boolean, publicBuilds: Boolean? = null, pushRules: List<GetProjectPushRule>, releasesAccessLevel: String, removeSourceBranchAfterMerge: Boolean, repositoryAccessLevel: String, repositoryStorage: String, requestAccessEnabled: Boolean, requirementsAccessLevel: String, resolveOutdatedDiffDiscussions: Boolean, restrictUserDefinedVariables: Boolean, runnersToken: String, securityAndComplianceAccessLevel: String, sharedWithGroups: List<GetProjectSharedWithGroup>, snippetsAccessLevel: String, snippetsEnabled: Boolean, squashCommitTemplate: String, sshUrlToRepo: String, suggestionCommitMessage: String, topics: List<String>, visibilityLevel: String, webUrl: String, wikiAccessLevel: String, wikiEnabled: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Set the analytics access level. Valid values are disabled, private, enabled.

Link copied to clipboard

Whether the project is in read-only mode (archived).

Link copied to clipboard

Auto-cancel pending pipelines. This isn’t a boolean, but enabled/disabled.

Link copied to clipboard

Set whether auto-closing referenced issues on default branch.

Link copied to clipboard

Auto Deploy strategy. Valid values are continuous, manual, timed_incremental.

Link copied to clipboard

Enable Auto DevOps for this project.

Link copied to clipboard

The Git strategy. Defaults to fetch.

Link copied to clipboard

Set the builds access level. Valid values are disabled, private, enabled.

Link copied to clipboard

The maximum amount of time, in seconds, that a job can run.

Link copied to clipboard

CI config file path for the project.

Link copied to clipboard

Default number of revisions for shallow cloning.

Link copied to clipboard

The role required to cancel a pipeline or job. Introduced in GitLab 16.8. Premium and Ultimate only. Valid values are developer, maintainer, no one

Link copied to clipboard

Use separate caches for protected branches.

Link copied to clipboard

Set the image cleanup policy for this project. Note: this field is sometimes named container_expiration_policy_attributes in the GitLab Upstream API.

Link copied to clipboard

Set visibility of container registry, for this project. Valid values are disabled, private, enabled.

Link copied to clipboard

The default branch for the project.

Link copied to clipboard

A description of the project.

Link copied to clipboard

Disable email notifications.

Link copied to clipboard

Enable email notifications.

Link copied to clipboard

Whether the project is empty.

Link copied to clipboard

Set the environments access level. Valid values are disabled, private, enabled.

Link copied to clipboard

The classification label for the project.

Link copied to clipboard

Set the feature flags access level. Valid values are disabled, private, enabled.

Link copied to clipboard

Set the forking access level. Valid values are disabled, private, enabled.

Link copied to clipboard

URL that can be provided to git clone to clone the

Link copied to clipboard
val id: String

The integer that uniquely identifies the project within the gitlab install.

Link copied to clipboard

URL the project was imported from.

Link copied to clipboard

Set the infrastructure access level. Valid values are disabled, private, enabled.

Link copied to clipboard

Set the issues access level. Valid values are disabled, private, enabled.

Link copied to clipboard

Enable issue tracking for the project.

Link copied to clipboard

Disable or enable the ability to keep the latest artifact for this project.

Link copied to clipboard

Enable LFS for the project.

Link copied to clipboard

Template used to create merge commit message in merge requests. (Introduced in GitLab 14.5.)

Link copied to clipboard

Enable or disable merge pipelines.

Link copied to clipboard

Set the merge requests access level. Valid values are disabled, private, enabled.

Link copied to clipboard

Enable merge requests for the project.

Link copied to clipboard

Enable or disable merge trains.

Link copied to clipboard

Set the monitor access level. Valid values are disabled, private, enabled.

Link copied to clipboard

The name of the project.

Link copied to clipboard

The namespace (group or user) of the project. Defaults to your user.

Link copied to clipboard

The path of the repository.

Link copied to clipboard

The path of the repository with namespace.

Link copied to clipboard

Enable pipelines for the project.

Link copied to clipboard

Show link to create/view merge request when pushing from the command line

Link copied to clipboard
val publicBuilds: Boolean? = null

If true, jobs can be viewed by non-project members.

Link copied to clipboard

Push rules for the project. Push rules are only available on Enterprise plans and if the authenticated has permissions to read them.

Link copied to clipboard

Set the releases access level. Valid values are disabled, private, enabled.

Link copied to clipboard

Enable Delete source branch option by default for all new merge requests

Link copied to clipboard

Set the repository access level. Valid values are disabled, private, enabled.

Link copied to clipboard

Which storage shard the repository is on. (administrator only)

Link copied to clipboard

Allow users to request member access.

Link copied to clipboard

Set the requirements access level. Valid values are disabled, private, enabled.

Link copied to clipboard

Automatically resolve merge request diffs discussions on lines changed with a push.

Link copied to clipboard

Allow only users with the Maintainer role to pass user-defined variables when triggering a pipeline.

Link copied to clipboard

Registration token to use during runner setup.

Link copied to clipboard

Set the security and compliance access level. Valid values are disabled, private, enabled.

Link copied to clipboard

Describes groups which have access shared to this project.

Link copied to clipboard

Set the snippets access level. Valid values are disabled, private, enabled.

Link copied to clipboard

Enable snippets for the project.

Link copied to clipboard

Template used to create squash commit message in merge requests. (Introduced in GitLab 14.6.)

Link copied to clipboard

URL that can be provided to git clone to clone the

Link copied to clipboard

The commit message used to apply merge request suggestions.

Link copied to clipboard

The list of topics for the project.

Link copied to clipboard

Repositories are created as private by default.

Link copied to clipboard

URL that can be used to find the project in a browser.

Link copied to clipboard

Set the wiki access level. Valid values are disabled, private, enabled.

Link copied to clipboard

Enable wiki for the project.