Class: Google::Apis::GkehubV2::ConfigManagementOciConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2::ConfigManagementOciConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v2/classes.rb,
lib/google/apis/gkehub_v2/representations.rb,
lib/google/apis/gkehub_v2/representations.rb
Overview
OCI repo configuration for a single cluster.
Instance Attribute Summary collapse
-
#gcp_service_account_email ⇒ String
The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
-
#policy_dir ⇒ String
The absolute path of the directory that contains the local resources.
-
#secret_type ⇒ String
Type of secret configured for access to the Git repo.
-
#sync_repo ⇒ String
The OCI image repository URL for the package to sync from.
-
#sync_wait_secs ⇒ Fixnum
Period in seconds between consecutive syncs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConfigManagementOciConfig
constructor
A new instance of ConfigManagementOciConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConfigManagementOciConfig
Returns a new instance of ConfigManagementOciConfig.
931 932 933 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 931 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcp_service_account_email ⇒ String
The Google Cloud Service Account Email used for auth when secret_type is
gcpServiceAccount.
Corresponds to the JSON property gcpServiceAccountEmail
907 908 909 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 907 def gcp_service_account_email @gcp_service_account_email end |
#policy_dir ⇒ String
The absolute path of the directory that contains the local resources. Default:
the root directory of the image.
Corresponds to the JSON property policyDir
913 914 915 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 913 def policy_dir @policy_dir end |
#secret_type ⇒ String
Type of secret configured for access to the Git repo.
Corresponds to the JSON property secretType
918 919 920 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 918 def secret_type @secret_type end |
#sync_repo ⇒ String
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
924 925 926 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 924 def sync_repo @sync_repo end |
#sync_wait_secs ⇒ Fixnum
Period in seconds between consecutive syncs. Default: 15.
Corresponds to the JSON property syncWaitSecs
929 930 931 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 929 def sync_wait_secs @sync_wait_secs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
936 937 938 939 940 941 942 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 936 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 |