0.18.0 (latest) 0.17.1 0.16.0 0.15.3 0.12.0 0.11.0 0.10.1 0.9.2 0.8.1 0.7.0 0.6.0 0.5.1 0.4.7 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataform V1 Client class GitRemoteSettings.

Controls Git remote configuration for a repository.

Generated from protobuf message `google.cloud.dataform.v1.Repository.GitRemoteSettings`

## Namespace

Google \\ Cloud \\ Dataform \\ V1 \\ Repository

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### 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

Optional. The Git remote's default branch name.

If not set, `main` will be used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDefaultBranch

Optional. The Git remote's default branch name.

If not set, `main` will be used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEffectiveDefaultBranch

Output only. The Git remote's effective default branch name.

This is the default branch name of the Git remote if it is set,
otherwise it is `main`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEffectiveDefaultBranch

Output only. The Git remote's effective default branch name.

This is the default branch name of the Git remote if it is set,
otherwise it is `main`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAuthenticationTokenSecretVersion

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAuthenticationTokenSecretVersion

Optional. The name of the Secret Manager secret version to use as an
authentication token for Git operations. Must be in the format
`projects/*/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` |   |

### getGitRepositoryLink

Optional. Resource name for the `GitRepositoryLink` used for machine
credentials. Must be in the format
`projects/*/locations/*/connections/*/gitRepositoryLinks/*`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasGitRepositoryLink

### clearGitRepositoryLink

### setGitRepositoryLink

Optional. Resource name for the `GitRepositoryLink` used for machine
credentials. Must be in the format
`projects/*/locations/*/connections/*/gitRepositoryLinks/*`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTokenStatus

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [TokenStatus](https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1.Repository.GitRemoteSettings.TokenStatus). |

### setTokenStatus

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [TokenStatus](https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1.Repository.GitRemoteSettings.TokenStatus). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |