Class: Google::Apis::ChatV1::MembershipCreatedEventData
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::MembershipCreatedEventData
- 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 new membership. Event type: google.workspace.chat.
membership.v1.created
.
Instance Attribute Summary collapse
-
#membership ⇒ Google::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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MembershipCreatedEventData
constructor
A new instance of MembershipCreatedEventData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MembershipCreatedEventData
Returns a new instance of MembershipCreatedEventData.
3813 3814 3815 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3813 def initialize(**args) update!(**args) end |
Instance Attribute Details
#membership ⇒ Google::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
3811 3812 3813 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3811 def membership @membership end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3818 3819 3820 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3818 def update!(**args) @membership = args[:membership] if args.key?(:membership) end |