Class: Google::Apis::CloudsearchV1::MembershipChangeEvent
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::MembershipChangeEvent
- 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
-
#leave_reason ⇒ String
This should only be set when MembershipChange type is LEAVE.
-
#participant_id ⇒ Array<Google::Apis::CloudsearchV1::StoredParticipantId>
Corresponds to the JSON property
participantId
. -
#type ⇒ String
Corresponds to the JSON property
type
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MembershipChangeEvent
constructor
A new instance of MembershipChangeEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MembershipChangeEvent
Returns a new instance of MembershipChangeEvent.
13707 13708 13709 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13707 def initialize(**args) update!(**args) end |
Instance Attribute Details
#leave_reason ⇒ String
This should only be set when MembershipChange type is LEAVE.
Corresponds to the JSON property leaveReason
13695 13696 13697 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13695 def leave_reason @leave_reason end |
#participant_id ⇒ Array<Google::Apis::CloudsearchV1::StoredParticipantId>
Corresponds to the JSON property participantId
13700 13701 13702 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13700 def participant_id @participant_id end |
#type ⇒ String
Corresponds to the JSON property type
13705 13706 13707 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13705 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13712 13713 13714 13715 13716 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13712 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 |