class Google::Apis::GkehubV1beta::ConfigManagementGitConfig

Git repo configuration for a single cluster.

Attributes

gcp_service_account_email[RW]

The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. Corresponds to the JSON property `gcpServiceAccountEmail` @return [String]

https_proxy[RW]

URL for the HTTPS proxy to be used when communicating with the Git repo. Corresponds to the JSON property `httpsProxy` @return [String]

policy_dir[RW]

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` @return [String]

secret_type[RW]

Type of secret configured for access to the Git repo. Corresponds to the JSON property `secretType` @return [String]

sync_branch[RW]

The branch of the repository to sync from. Default: master. Corresponds to the JSON property `syncBranch` @return [String]

sync_repo[RW]

The URL of the Git repository to use as the source of truth. Corresponds to the JSON property `syncRepo` @return [String]

sync_rev[RW]

Git revision (tag or hash) to check out. Default HEAD. Corresponds to the JSON property `syncRev` @return [String]

sync_wait_secs[RW]

Period in seconds between consecutive syncs. Default: 15. Corresponds to the JSON property `syncWaitSecs` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/gkehub_v1beta/classes.rb, line 548
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gkehub_v1beta/classes.rb, line 553
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)
  @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_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