Class: Google::Apis::GkehubV1alpha::AnthosVmSubFeatureSpec
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::AnthosVmSubFeatureSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/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::GkehubV1alpha::MigrateSpec
MigrateSpec contains the migrate subfeature configuration.
-
#service_mesh_spec ⇒ Google::Apis::GkehubV1alpha::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.
152 153 154 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 152 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
139 140 141 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 139 def enabled @enabled end |
#migrate_spec ⇒ Google::Apis::GkehubV1alpha::MigrateSpec
MigrateSpec contains the migrate subfeature configuration.
Corresponds to the JSON property migrateSpec
145 146 147 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 145 def migrate_spec @migrate_spec end |
#service_mesh_spec ⇒ Google::Apis::GkehubV1alpha::ServiceMeshSpec
ServiceMeshSpec contains the serviceMesh subfeature configuration.
Corresponds to the JSON property serviceMeshSpec
150 151 152 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 150 def service_mesh_spec @service_mesh_spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
157 158 159 160 161 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 157 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 |