Class: Google::Apis::GkehubV1beta::AnthosVmSubFeatureSpec
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta::AnthosVmSubFeatureSpec
- 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
AnthosVMSubFeatureSpec contains the subfeature configuration for a membership/ cluster.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
Indicates whether the subfeature should be enabled on the cluster or not.
-
#migrate_spec ⇒ Google::Apis::GkehubV1beta::MigrateSpec
MigrateSpec contains the migrate subfeature configuration.
-
#service_mesh_spec ⇒ Google::Apis::GkehubV1beta::ServiceMeshSpec
ServiceMeshSpec contains the serviceMesh subfeature configuration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnthosVmSubFeatureSpec
constructor
A new instance of AnthosVmSubFeatureSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AnthosVmSubFeatureSpec
Returns a new instance of AnthosVmSubFeatureSpec.
151 152 153 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 151 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Indicates whether the subfeature should be enabled on the cluster or not. If
set to true, the subfeature's control plane and resources will be installed in
the cluster. If set to false, the oneof spec if present will be ignored and
nothing will be installed in the cluster.
Corresponds to the JSON property enabled
138 139 140 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 138 def enabled @enabled end |
#migrate_spec ⇒ Google::Apis::GkehubV1beta::MigrateSpec
MigrateSpec contains the migrate subfeature configuration.
Corresponds to the JSON property migrateSpec
144 145 146 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 144 def migrate_spec @migrate_spec end |
#service_mesh_spec ⇒ Google::Apis::GkehubV1beta::ServiceMeshSpec
ServiceMeshSpec contains the serviceMesh subfeature configuration.
Corresponds to the JSON property serviceMeshSpec
149 150 151 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 149 def service_mesh_spec @service_mesh_spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
156 157 158 159 160 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 156 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @migrate_spec = args[:migrate_spec] if args.key?(:migrate_spec) @service_mesh_spec = args[:service_mesh_spec] if args.key?(:service_mesh_spec) end |