Class: Google::Apis::GkehubV1beta::ConfigManagementGitConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta::ConfigManagementGitConfig
- 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
-
#gcp_service_account_email ⇒ String
Optional.
-
#https_proxy ⇒ String
Optional.
-
#policy_dir ⇒ String
Optional.
-
#secret_type ⇒ String
Required.
-
#sync_branch ⇒ String
Optional.
-
#sync_repo ⇒ String
Optional.
-
#sync_rev ⇒ String
Optional.
-
#sync_wait_secs ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConfigManagementGitConfig
constructor
A new instance of ConfigManagementGitConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConfigManagementGitConfig
Returns a new instance of ConfigManagementGitConfig.
1421 1422 1423 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1421 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcp_service_account_email ⇒ String
Optional. The Google Cloud Service Account Email used for auth when
secret_type is gcpServiceAccount.
Corresponds to the JSON property gcpServiceAccountEmail
1380 1381 1382 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1380 def gcp_service_account_email @gcp_service_account_email end |
#https_proxy ⇒ String
Optional. URL for the HTTPS proxy to be used when communicating with the Git
repo.
Corresponds to the JSON property httpsProxy
1386 1387 1388 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1386 def https_proxy @https_proxy end |
#policy_dir ⇒ String
Optional. 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
1392 1393 1394 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1392 def policy_dir @policy_dir end |
#secret_type ⇒ String
Required. Type of secret configured for access to the Git repo. Must be one of
ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of
this is case-sensitive. Required.
Corresponds to the JSON property secretType
1399 1400 1401 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1399 def secret_type @secret_type end |
#sync_branch ⇒ String
Optional. The branch of the repository to sync from. Default: master.
Corresponds to the JSON property syncBranch
1404 1405 1406 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1404 def sync_branch @sync_branch end |
#sync_repo ⇒ String
Optional. The URL of the Git repository to use as the source of truth.
Corresponds to the JSON property syncRepo
1409 1410 1411 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1409 def sync_repo @sync_repo end |
#sync_rev ⇒ String
Optional. Git revision (tag or hash) to check out. Default HEAD.
Corresponds to the JSON property syncRev
1414 1415 1416 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1414 def sync_rev @sync_rev end |
#sync_wait_secs ⇒ Fixnum
Optional. Period in seconds between consecutive syncs. Default: 15.
Corresponds to the JSON property syncWaitSecs
1419 1420 1421 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1419 def sync_wait_secs @sync_wait_secs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1426 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 |