Google Cloud Dataform V1 Client - Class GitRemoteSettings (0.9.2)

Reference documentation and code samples for the Google Cloud Dataform V1 Client class GitRemoteSettings.

Controls Git remote configuration for a repository.

Generated from protobuf messagegoogle.cloud.dataform.v1.Repository.GitRemoteSettings

Namespace

Google \ Cloud \ Dataform \ V1 \ Repository

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ urlstring

Required. The Git remote's URL.

↳ default_branchstring

Required. The Git remote's default branch name.

↳ authentication_token_secret_versionstring

Optional. The name of the Secret Manager secret version to use as an authentication token for Git operations. Must be in the formatprojects/*/secrets/*/versions/*.

↳ ssh_authentication_configGitRemoteSettings\SshAuthenticationConfig

Optional. Authentication fields for remote uris using SSH protocol.

↳ token_statusint

Output only. Deprecated: The field does not contain any token status information.

getUrl

Required. The Git remote's URL.

Returns
TypeDescription
string

setUrl

Required. The Git remote's URL.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDefaultBranch

Required. The Git remote's default branch name.

Returns
TypeDescription
string

setDefaultBranch

Required. The Git remote's default branch name.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getAuthenticationTokenSecretVersion

Optional. The name of the Secret Manager secret version to use as anauthentication token for Git operations. Must be in the formatprojects/*/secrets/*/versions/*.

Returns
TypeDescription
string

setAuthenticationTokenSecretVersion

Optional. The name of the Secret Manager secret version to use as anauthentication token for Git operations. Must be in the formatprojects/*/secrets/*/versions/*.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSshAuthenticationConfig

Optional. Authentication fields for remote uris using SSH protocol.

Returns
TypeDescription
GitRemoteSettings\SshAuthenticationConfig|null

hasSshAuthenticationConfig

clearSshAuthenticationConfig

setSshAuthenticationConfig

Optional. Authentication fields for remote uris using SSH protocol.

Parameter
NameDescription
varGitRemoteSettings\SshAuthenticationConfig
Returns
TypeDescription
$this

getTokenStatus

Output only. Deprecated: The field does not contain any token statusinformation.

Returns
TypeDescription
intEnum of typeTokenStatus.

setTokenStatus

Output only. Deprecated: The field does not contain any token statusinformation.

Parameter
NameDescription
varint

Enum of typeTokenStatus.

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.