Class: Google::Apis::DataformV1beta1::GitRemoteSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataform_v1beta1/classes.rb,
lib/google/apis/dataform_v1beta1/representations.rb,
lib/google/apis/dataform_v1beta1/representations.rb

Overview

Controls Git remote configuration for a repository.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GitRemoteSettings

Returns a new instance of GitRemoteSettings.



1117
1118
1119
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1117

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#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 format projects/*/ secrets/*/versions/*. Corresponds to the JSON property authenticationTokenSecretVersion

Returns:

  • (String)


1093
1094
1095
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1093

def authentication_token_secret_version
  @authentication_token_secret_version
end

#default_branchString

Required. The Git remote's default branch name. Corresponds to the JSON property defaultBranch

Returns:

  • (String)


1098
1099
1100
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1098

def default_branch
  @default_branch
end

#ssh_authentication_configGoogle::Apis::DataformV1beta1::SshAuthenticationConfig

Configures fields for performing SSH authentication. Corresponds to the JSON property sshAuthenticationConfig



1103
1104
1105
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1103

def ssh_authentication_config
  @ssh_authentication_config
end

#token_statusString

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 Corresponds to the JSON property tokenStatus

Returns:

  • (String)


1110
1111
1112
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1110

def token_status
  @token_status
end

#urlString

Required. The Git remote's URL. Corresponds to the JSON property url

Returns:

  • (String)


1115
1116
1117
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1115

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1122
1123
1124
1125
1126
1127
1128
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1122

def update!(**args)
  @authentication_token_secret_version = args[:authentication_token_secret_version] if args.key?(:authentication_token_secret_version)
  @default_branch = args[:default_branch] if args.key?(:default_branch)
  @ssh_authentication_config = args[:ssh_authentication_config] if args.key?(:ssh_authentication_config)
  @token_status = args[:token_status] if args.key?(:token_status)
  @url = args[:url] if args.key?(:url)
end