Class: Google::Apis::GkehubV1beta::MembershipFeatureState

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

MembershipFeatureState contains Feature status information for a single Membership.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MembershipFeatureState

Returns a new instance of MembershipFeatureState.



1465
1466
1467
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1465

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#configmanagementGoogle::Apis::GkehubV1beta::ConfigManagementMembershipState

State for Anthos Config Management Corresponds to the JSON property configmanagement



1451
1452
1453
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1451

def configmanagement
  @configmanagement
end

#meteringGoogle::Apis::GkehubV1beta::MeteringMembershipState

Metering per-Membership Feature State. Corresponds to the JSON property metering



1456
1457
1458
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1456

def metering
  @metering
end

#stateGoogle::Apis::GkehubV1beta::FeatureState

FeatureState describes the high-level state of a Feature. It may be used to describe a Feature's state at the environ-level, or per-membershop, depending on the context. Corresponds to the JSON property state



1463
1464
1465
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1463

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1470
1471
1472
1473
1474
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1470

def update!(**args)
  @configmanagement = args[:configmanagement] if args.key?(:configmanagement)
  @metering = args[:metering] if args.key?(:metering)
  @state = args[:state] if args.key?(:state)
end