Class: Google::Apis::GkehubV1beta::ConfigManagementOciConfig

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

OCI repo configuration for a single cluster

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigManagementOciConfig

Returns a new instance of ConfigManagementOciConfig.



1743
1744
1745
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1743

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

Instance Attribute Details

#gcp_service_account_emailString

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

Returns:

  • (String)


1719
1720
1721
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1719

def 
  @gcp_service_account_email
end

#policy_dirString

The absolute path of the directory that contains the local resources. Default: the root directory of the image. Corresponds to the JSON property policyDir

Returns:

  • (String)


1725
1726
1727
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1725

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)


1730
1731
1732
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1730

def secret_type
  @secret_type
end

#sync_repoString

The OCI image repository URL for the package to sync from. e.g. LOCATION- docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME. Corresponds to the JSON property syncRepo

Returns:

  • (String)


1736
1737
1738
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1736

def sync_repo
  @sync_repo
end

#sync_wait_secsFixnum

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

Returns:

  • (Fixnum)


1741
1742
1743
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1741

def sync_wait_secs
  @sync_wait_secs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1748
1749
1750
1751
1752
1753
1754
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1748

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