Google Cloud Dataform V1beta1 Client - Class GitRemoteSettings (0.3.0)

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

Controls Git remote configuration for a repository.

Generated from protobuf message google.cloud.dataform.v1beta1.Repository.GitRemoteSettings

Namespace

Google \ Cloud \ Dataform \ V1beta1 \ Repository

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ url string

Required. The Git remote's URL.

↳ default_branch string

Required. The Git remote's default branch name.

↳ authentication_token_secret_version string

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/*.

↳ ssh_authentication_config Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings\SshAuthenticationConfig

Optional. Authentication fields for remote uris using SSH protocol.

↳ token_status int

Output only. Deprecated: The field does not contain any token status information. Instead use https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus

getUrl

Required. The Git remote's URL.

Returns
TypeDescription
string

setUrl

Required. The Git remote's URL.

Parameter
NameDescription
var string
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
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getSshAuthenticationConfig

Optional. Authentication fields for remote uris using SSH protocol.

Returns
TypeDescription
Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings\SshAuthenticationConfig|null

hasSshAuthenticationConfig

clearSshAuthenticationConfig

setSshAuthenticationConfig

Optional. Authentication fields for remote uris using SSH protocol.

Parameter
NameDescription
var Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings\SshAuthenticationConfig
Returns
TypeDescription
$this

getTokenStatus

Output only. Deprecated: The field does not contain any token status information. Instead use https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus

Returns
TypeDescription
int

setTokenStatus

Output only. Deprecated: The field does not contain any token status information. Instead use https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus

Parameter
NameDescription
var int
Returns
TypeDescription
$this