Google Cloud Dataform V1 Client - Class GitRemoteSettings (0.9.2) Stay organized with collections Save and categorize content based on your preferences.
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 \ RepositoryMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data | arrayOptional. Data for populating the Message object. |
↳ url | stringRequired. The Git remote's URL. |
↳ default_branch | stringRequired. The Git remote's default branch name. |
↳ authentication_token_secret_version | stringOptional. The name of the Secret Manager secret version to use as an authentication token for Git operations. Must be in the format |
↳ ssh_authentication_config | GitRemoteSettings\SshAuthenticationConfigOptional. Authentication fields for remote uris using SSH protocol. |
↳ token_status | intOutput only. Deprecated: The field does not contain any token status information. |
getUrl
Required. The Git remote's URL.
| Returns | |
|---|---|
| Type | Description |
string | |
setUrl
Required. The Git remote's URL.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getDefaultBranch
Required. The Git remote's default branch name.
| Returns | |
|---|---|
| Type | Description |
string | |
setDefaultBranch
Required. The Git remote's default branch name.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getSshAuthenticationConfig
Optional. Authentication fields for remote uris using SSH protocol.
| Returns | |
|---|---|
| Type | Description |
GitRemoteSettings\SshAuthenticationConfig|null | |
hasSshAuthenticationConfig
clearSshAuthenticationConfig
setSshAuthenticationConfig
Optional. Authentication fields for remote uris using SSH protocol.
| Parameter | |
|---|---|
| Name | Description |
var | GitRemoteSettings\SshAuthenticationConfig |
| Returns | |
|---|---|
| Type | Description |
$this | |
getTokenStatus
Output only. Deprecated: The field does not contain any token statusinformation.
| Returns | |
|---|---|
| Type | Description |
int | Enum of typeTokenStatus. |
setTokenStatus
Output only. Deprecated: The field does not contain any token statusinformation.
| Parameter | |
|---|---|
| Name | Description |
var | intEnum of typeTokenStatus. |
| 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.