Class: Google::Apis::GkehubV1beta1::MembershipState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1beta1/classes.rb,
lib/google/apis/gkehub_v1beta1/representations.rb,
lib/google/apis/gkehub_v1beta1/representations.rb

Overview

State of the Membership resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MembershipState

Returns a new instance of MembershipState.



854
855
856
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 854

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

Instance Attribute Details

#codeString

Output only. The current state of the Membership resource. Corresponds to the JSON property code

Returns:

  • (String)


842
843
844
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 842

def code
  @code
end

#descriptionString

This field is never set by the Hub Service. Corresponds to the JSON property description

Returns:

  • (String)


847
848
849
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 847

def description
  @description
end

#update_timeString

This field is never set by the Hub Service. Corresponds to the JSON property updateTime

Returns:

  • (String)


852
853
854
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 852

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



859
860
861
862
863
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 859

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @description = args[:description] if args.key?(:description)
  @update_time = args[:update_time] if args.key?(:update_time)
end