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.
4082 4083 4084 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4082 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
4080 4081 4082 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4080 def membership @membership end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4087 4088 4089 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4087 def update!(**args) @membership = args[:membership] if args.key?(:membership) end |