Class: Google::Apis::GkehubV1::ConfigManagementGitConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1::ConfigManagementGitConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1/classes.rb,
lib/google/apis/gkehub_v1/representations.rb,
lib/google/apis/gkehub_v1/representations.rb
Overview
Git 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.
-
#https_proxy ⇒ String
URL for the HTTPS proxy to be used when communicating with the Git repo.
-
#policy_dir ⇒ String
The path within the Git repository that represents the top level of the repo to sync.
-
#secret_type ⇒ String
Type of secret configured for access to the Git repo.
-
#sync_branch ⇒ String
The branch of the repository to sync from.
-
#sync_repo ⇒ String
The URL of the Git repository to use as the source of truth.
-
#sync_rev ⇒ String
Git revision (tag or hash) to check out.
-
#sync_wait_secs ⇒ Fixnum
Period in seconds between consecutive syncs.
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.
1211 1212 1213 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1211 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
1171 1172 1173 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1171 def gcp_service_account_email @gcp_service_account_email end |
#https_proxy ⇒ String
URL for the HTTPS proxy to be used when communicating with the Git repo.
Corresponds to the JSON property httpsProxy
1176 1177 1178 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1176 def https_proxy @https_proxy end |
#policy_dir ⇒ String
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
1182 1183 1184 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1182 def policy_dir @policy_dir end |
#secret_type ⇒ String
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
1189 1190 1191 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1189 def secret_type @secret_type end |
#sync_branch ⇒ String
The branch of the repository to sync from. Default: master.
Corresponds to the JSON property syncBranch
1194 1195 1196 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1194 def sync_branch @sync_branch end |
#sync_repo ⇒ String
The URL of the Git repository to use as the source of truth.
Corresponds to the JSON property syncRepo
1199 1200 1201 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1199 def sync_repo @sync_repo end |
#sync_rev ⇒ String
Git revision (tag or hash) to check out. Default HEAD.
Corresponds to the JSON property syncRev
1204 1205 1206 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1204 def sync_rev @sync_rev end |
#sync_wait_secs ⇒ Fixnum
Period in seconds between consecutive syncs. Default: 15.
Corresponds to the JSON property syncWaitSecs
1209 1210 1211 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1209 def sync_wait_secs @sync_wait_secs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1216 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 |