Class: Google::Apis::GkehubV1alpha::AnthosVmSubFeatureSpec

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#enabledBoolean 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

Returns:

  • (Boolean)


139
140
141
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 139

def enabled
  @enabled
end

#migrate_specGoogle::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_specGoogle::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