Class: Google::Apis::ChatV1::MembershipBatchCreatedEventData

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 multiple new memberships. Event type: google.workspace.chat. membership.v1.batchCreated

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MembershipBatchCreatedEventData

Returns a new instance of MembershipBatchCreatedEventData.



5029
5030
5031
# File 'lib/google/apis/chat_v1/classes.rb', line 5029

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

Instance Attribute Details

#membershipsArray<Google::Apis::ChatV1::MembershipCreatedEventData>

A list of new memberships. Corresponds to the JSON property memberships



5027
5028
5029
# File 'lib/google/apis/chat_v1/classes.rb', line 5027

def memberships
  @memberships
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5034
5035
5036
# File 'lib/google/apis/chat_v1/classes.rb', line 5034

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