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.



729
730
731
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 729

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

Instance Attribute Details

#authentication_token_secret_versionString

Required. 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)


712
713
714
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 712

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)


717
718
719
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 717

def default_branch
  @default_branch
end

#token_statusString

Output only. Indicates the status of the Git access token. Corresponds to the JSON property tokenStatus

Returns:

  • (String)


722
723
724
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 722

def token_status
  @token_status
end

#urlString

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

Returns:

  • (String)


727
728
729
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 727

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



734
735
736
737
738
739
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 734

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)
  @token_status = args[:token_status] if args.key?(:token_status)
  @url = args[:url] if args.key?(:url)
end