Class: Google::Apis::GkehubV1::AnthosVmSubFeatureSpec
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1::AnthosVmSubFeatureSpec
- 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
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::GkehubV1::MigrateSpec
MigrateSpec contains the migrate subfeature configuration.
-
#service_mesh_spec ⇒ Google::Apis::GkehubV1::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.
97 98 99 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 97 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
84 85 86 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 84 def enabled @enabled end |
#migrate_spec ⇒ Google::Apis::GkehubV1::MigrateSpec
MigrateSpec contains the migrate subfeature configuration.
Corresponds to the JSON property migrateSpec
90 91 92 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 90 def migrate_spec @migrate_spec end |
#service_mesh_spec ⇒ Google::Apis::GkehubV1::ServiceMeshSpec
ServiceMeshSpec contains the serviceMesh subfeature configuration.
Corresponds to the JSON property serviceMeshSpec
95 96 97 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 95 def service_mesh_spec @service_mesh_spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
102 103 104 105 106 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 102 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 |