Class: Google::Apis::CloudsearchV1::MembershipChangeEvent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MembershipChangeEvent

Returns a new instance of MembershipChangeEvent.



13630
13631
13632
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13630

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

Instance Attribute Details

#leave_reasonString

This should only be set when MembershipChange type is LEAVE. Corresponds to the JSON property leaveReason

Returns:

  • (String)


13618
13619
13620
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13618

def leave_reason
  @leave_reason
end

#participant_idArray<Google::Apis::CloudsearchV1::StoredParticipantId>

Corresponds to the JSON property participantId



13623
13624
13625
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13623

def participant_id
  @participant_id
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


13628
13629
13630
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13628

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13635
13636
13637
13638
13639
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13635

def update!(**args)
  @leave_reason = args[:leave_reason] if args.key?(:leave_reason)
  @participant_id = args[:participant_id] if args.key?(:participant_id)
  @type = args[:type] if args.key?(:type)
end