Class: Google::Apis::GkehubV2::CloudBuildSpec
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2::CloudBuildSpec
- 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
Cloud Build: Configurations for each Cloud Build enabled cluster.
Instance Attribute Summary collapse
-
#security_policy ⇒ String
Whether it is allowed to run the privileged builds on the cluster or not.
-
#version ⇒ String
Version of the cloud build software on the cluster.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudBuildSpec
constructor
A new instance of CloudBuildSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudBuildSpec
Returns a new instance of CloudBuildSpec.
96 97 98 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 96 def initialize(**args) update!(**args) end |
Instance Attribute Details
#security_policy ⇒ String
Whether it is allowed to run the privileged builds on the cluster or not.
Corresponds to the JSON property securityPolicy
89 90 91 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 89 def security_policy @security_policy end |
#version ⇒ String
Version of the cloud build software on the cluster.
Corresponds to the JSON property version
94 95 96 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 94 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
101 102 103 104 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 101 def update!(**args) @security_policy = args[:security_policy] if args.key?(:security_policy) @version = args[:version] if args.key?(:version) end |