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.



958
959
960
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 958

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)


946
947
948
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 946

def code
  @code
end

#descriptionString

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

Returns:

  • (String)


951
952
953
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 951

def description
  @description
end

#update_timeString

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

Returns:

  • (String)


956
957
958
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 956

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



963
964
965
966
967
# File 'lib/google/apis/gkehub_v1beta1/classes.rb', line 963

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