Class: Google::Apis::ChatV1::MembershipDeletedEventData

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

Overview

Event payload for a deleted membership. Event type: google.workspace.chat. membership.v1.deleted

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MembershipDeletedEventData

Returns a new instance of MembershipDeletedEventData.



4316
4317
4318
# File 'lib/google/apis/chat_v1/classes.rb', line 4316

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

Instance Attribute Details

#membershipGoogle::Apis::ChatV1::Membership

Represents a membership relation in Google Chat, such as whether a user or Chat app is invited to, part of, or absent from a space. Corresponds to the JSON property membership



4314
4315
4316
# File 'lib/google/apis/chat_v1/classes.rb', line 4314

def membership
  @membership
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4321
4322
4323
# File 'lib/google/apis/chat_v1/classes.rb', line 4321

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