Google Cloud Dataform V1beta1 Client - Class Repository (0.4.7)

Beta

This library is covered by thePre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see thelaunch stage descriptions.

Reference documentation and code samples for the Google Cloud Dataform V1beta1 Client class Repository.

Represents a Dataform Git repository.

Generated from protobuf messagegoogle.cloud.dataform.v1beta1.Repository

Namespace

Google \ Cloud \ Dataform \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

Output only. The repository's name.

↳ display_namestring

Optional. The repository's user-friendly name.

↳ git_remote_settingsRepository\GitRemoteSettings

Optional. If set, configures this repository to be linked to a Git remote.

↳ npmrc_environment_variables_secret_versionstring

Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the formatprojects/*/secrets/*/versions/*. The file itself must be in a JSON format.

↳ workspace_compilation_overridesRepository\WorkspaceCompilationOverrides

Optional. If set, fields ofworkspace_compilation_overrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. See documentation forWorkspaceCompilationOverrides for more information.

↳ labelsarray|Google\Protobuf\Internal\MapField

Optional. Repository user labels.

↳ set_authenticated_user_adminbool

Optional. Input only. If set to true, the authenticated user will be granted the roles/dataform.admin role on the created repository. To modify access to the created repository later apply setIamPolicy fromhttps://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories

↳ service_accountstring

Optional. The service account to run workflow invocations under.

getName

Output only. The repository's name.

Returns
TypeDescription
string

setName

Output only. The repository's name.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDisplayName

Optional. The repository's user-friendly name.

Returns
TypeDescription
string

setDisplayName

Optional. The repository's user-friendly name.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getGitRemoteSettings

Optional. If set, configures this repository to be linked to a Git remote.

Returns
TypeDescription
Repository\GitRemoteSettings|null

hasGitRemoteSettings

clearGitRemoteSettings

setGitRemoteSettings

Optional. If set, configures this repository to be linked to a Git remote.

Parameter
NameDescription
varRepository\GitRemoteSettings
Returns
TypeDescription
$this

getNpmrcEnvironmentVariablesSecretVersion

Optional. The name of the Secret Manager secret version to be used tointerpolate variables into the .npmrc file for package installationoperations. Must be in the formatprojects/*/secrets/*/versions/*. Thefile itself must be in a JSON format.

Returns
TypeDescription
string

setNpmrcEnvironmentVariablesSecretVersion

Optional. The name of the Secret Manager secret version to be used tointerpolate variables into the .npmrc file for package installationoperations. Must be in the formatprojects/*/secrets/*/versions/*. Thefile itself must be in a JSON format.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getWorkspaceCompilationOverrides

Optional. If set, fields ofworkspace_compilation_overrides override thedefault compilation settings that are specified in dataform.json whencreating workspace-scoped compilation results. See documentation forWorkspaceCompilationOverrides for more information.

Returns
TypeDescription
Repository\WorkspaceCompilationOverrides|null

hasWorkspaceCompilationOverrides

clearWorkspaceCompilationOverrides

setWorkspaceCompilationOverrides

Optional. If set, fields ofworkspace_compilation_overrides override thedefault compilation settings that are specified in dataform.json whencreating workspace-scoped compilation results. See documentation forWorkspaceCompilationOverrides for more information.

Parameter
NameDescription
varRepository\WorkspaceCompilationOverrides
Returns
TypeDescription
$this

getLabels

Optional. Repository user labels.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Optional. Repository user labels.

Parameter
NameDescription
vararray|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getSetAuthenticatedUserAdmin

Optional. Input only. If set to true, the authenticated user will begranted the roles/dataform.admin role on the created repository. To modifyaccess to the created repository later apply setIamPolicy fromhttps://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories

Returns
TypeDescription
bool

setSetAuthenticatedUserAdmin

Optional. Input only. If set to true, the authenticated user will begranted the roles/dataform.admin role on the created repository. To modifyaccess to the created repository later apply setIamPolicy fromhttps://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

getServiceAccount

Optional. The service account to run workflow invocations under.

Returns
TypeDescription
string

setServiceAccount

Optional. The service account to run workflow invocations under.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-09 UTC.