Google Cloud Dataform V1beta1 Client - Class Repository (0.6.0) Stay organized with collections Save and categorize content based on your preferences.
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 \ V1beta1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data | arrayOptional. Data for populating the Message object. |
↳ name | stringIdentifier. The repository's name. |
↳ create_time | Google\Protobuf\TimestampOutput only. The timestamp of when the repository was created. |
↳ display_name | stringOptional. The repository's user-friendly name. |
↳ git_remote_settings | Repository\GitRemoteSettingsOptional. If set, configures this repository to be linked to a Git remote. |
↳ npmrc_environment_variables_secret_version | stringOptional. 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 format |
↳ workspace_compilation_overrides | Repository\WorkspaceCompilationOverridesOptional. If set, fields of |
↳ labels | array|Google\Protobuf\Internal\MapFieldOptional. Repository user labels. |
↳ set_authenticated_user_admin | boolOptional. 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_account | stringOptional. The service account to run workflow invocations under. |
↳ kms_key_name | stringOptional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example: |
↳ data_encryption_state | DataEncryptionStateOutput only. A data encryption state of a Git repository if this Repository is protected by a KMS key. |
↳ internal_metadata | stringOutput only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string. |
getName
Identifier. The repository's name.
| Returns | |
|---|---|
| Type | Description |
string | |
setName
Identifier. The repository's name.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getCreateTime
Output only. The timestamp of when the repository was created.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null | |
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp of when the repository was created.
| Parameter | |
|---|---|
| Name | Description |
var | Google\Protobuf\Timestamp |
| Returns | |
|---|---|
| Type | Description |
$this | |
getDisplayName
Optional. The repository's user-friendly name.
| Returns | |
|---|---|
| Type | Description |
string | |
setDisplayName
Optional. The repository's user-friendly name.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getGitRemoteSettings
Optional. If set, configures this repository to be linked to a Git remote.
| Returns | |
|---|---|
| Type | Description |
Repository\GitRemoteSettings|null | |
hasGitRemoteSettings
clearGitRemoteSettings
setGitRemoteSettings
Optional. If set, configures this repository to be linked to a Git remote.
| Parameter | |
|---|---|
| Name | Description |
var | Repository\GitRemoteSettings |
| Returns | |
|---|---|
| Type | Description |
$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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var | Repository\WorkspaceCompilationOverrides |
| Returns | |
|---|---|
| Type | Description |
$this | |
getLabels
Optional. Repository user labels.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField | |
setLabels
Optional. Repository user labels.
| Parameter | |
|---|---|
| Name | Description |
var | array|Google\Protobuf\Internal\MapField |
| Returns | |
|---|---|
| Type | Description |
$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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var | bool |
| Returns | |
|---|---|
| Type | Description |
$this | |
getServiceAccount
Optional. The service account to run workflow invocations under.
| Returns | |
|---|---|
| Type | Description |
string | |
setServiceAccount
Optional. The service account to run workflow invocations under.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getKmsKeyName
Optional. The reference to a KMS encryption key. If provided, it will beused to encrypt user data in the repository and all child resources. It isnot possible to add or update the encryption key after the repository iscreated. Example:projects/{kms_project}/locations/{location}/keyRings/{key_location}/cryptoKeys/{key}
| Returns | |
|---|---|
| Type | Description |
string | |
setKmsKeyName
Optional. The reference to a KMS encryption key. If provided, it will beused to encrypt user data in the repository and all child resources. It isnot possible to add or update the encryption key after the repository iscreated. Example:projects/{kms_project}/locations/{location}/keyRings/{key_location}/cryptoKeys/{key}
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getDataEncryptionState
Output only. A data encryption state of a Git repository if this Repositoryis protected by a KMS key.
| Returns | |
|---|---|
| Type | Description |
DataEncryptionState|null | |
hasDataEncryptionState
clearDataEncryptionState
setDataEncryptionState
Output only. A data encryption state of a Git repository if this Repositoryis protected by a KMS key.
| Parameter | |
|---|---|
| Name | Description |
var | DataEncryptionState |
| Returns | |
|---|---|
| Type | Description |
$this | |
getInternalMetadata
Output only. All the metadata information that is used internally to servethe resource. For example: timestamps, flags, status fields, etc. Theformat of this field is a JSON string.
| Returns | |
|---|---|
| Type | Description |
string | |
hasInternalMetadata
clearInternalMetadata
setInternalMetadata
Output only. All the metadata information that is used internally to servethe resource. For example: timestamps, flags, status fields, etc. Theformat of this field is a JSON string.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$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.