Class: Google::Apis::GkehubV1beta::ConfigManagementGitConfig

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

Overview

Git repo configuration for a single cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigManagementGitConfig

Returns a new instance of ConfigManagementGitConfig.



613
614
615
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 613

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

Instance Attribute Details

#gcp_service_account_emailString

The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. Corresponds to the JSON property gcpServiceAccountEmail

Returns:

  • (String)


564
565
566
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 564

def 
  @gcp_service_account_email
end

#https_proxyString

URL for the HTTPS proxy to be used when communicating with the Git repo. Corresponds to the JSON property httpsProxy

Returns:

  • (String)


569
570
571
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 569

def https_proxy
  @https_proxy
end

#no_ssl_verifyBoolean Also known as: no_ssl_verify?

Enable or disable the SSL certificate verification Default: false. Corresponds to the JSON property noSslVerify

Returns:

  • (Boolean)


574
575
576
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 574

def no_ssl_verify
  @no_ssl_verify
end

#policy_dirString

The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository. Corresponds to the JSON property policyDir

Returns:

  • (String)


581
582
583
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 581

def policy_dir
  @policy_dir
end

#secret_typeString

Type of secret configured for access to the Git repo. Corresponds to the JSON property secretType

Returns:

  • (String)


586
587
588
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 586

def secret_type
  @secret_type
end

#sync_branchString

The branch of the repository to sync from. Default: master. Corresponds to the JSON property syncBranch

Returns:

  • (String)


591
592
593
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 591

def sync_branch
  @sync_branch
end

#sync_depthFixnum

The depth of git commits synced by the git-sync container. Corresponds to the JSON property syncDepth

Returns:

  • (Fixnum)


596
597
598
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 596

def sync_depth
  @sync_depth
end

#sync_repoString

The URL of the Git repository to use as the source of truth. Corresponds to the JSON property syncRepo

Returns:

  • (String)


601
602
603
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 601

def sync_repo
  @sync_repo
end

#sync_revString

Git revision (tag or hash) to check out. Default HEAD. Corresponds to the JSON property syncRev

Returns:

  • (String)


606
607
608
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 606

def sync_rev
  @sync_rev
end

#sync_wait_secsFixnum

Period in seconds between consecutive syncs. Default: 15. Corresponds to the JSON property syncWaitSecs

Returns:

  • (Fixnum)


611
612
613
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 611

def sync_wait_secs
  @sync_wait_secs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



618
619
620
621
622
623
624
625
626
627
628
629
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 618

def update!(**args)
  @gcp_service_account_email = args[:gcp_service_account_email] if args.key?(:gcp_service_account_email)
  @https_proxy = args[:https_proxy] if args.key?(:https_proxy)
  @no_ssl_verify = args[:no_ssl_verify] if args.key?(:no_ssl_verify)
  @policy_dir = args[:policy_dir] if args.key?(:policy_dir)
  @secret_type = args[:secret_type] if args.key?(:secret_type)
  @sync_branch = args[:sync_branch] if args.key?(:sync_branch)
  @sync_depth = args[:sync_depth] if args.key?(:sync_depth)
  @sync_repo = args[:sync_repo] if args.key?(:sync_repo)
  @sync_rev = args[:sync_rev] if args.key?(:sync_rev)
  @sync_wait_secs = args[:sync_wait_secs] if args.key?(:sync_wait_secs)
end