lib/twilio-ruby/rest/chat/v2/service/role.rb in twilio-ruby-5.4.3 vs lib/twilio-ruby/rest/chat/v2/service/role.rb in twilio-ruby-5.4.4
- old
+ new
@@ -32,11 +32,11 @@
# @return [RoleInstance] Newly created RoleInstance
def create(friendly_name: nil, type: nil, permission: nil)
data = Twilio::Values.of({
'FriendlyName' => friendly_name,
'Type' => type,
- 'Permission' => permission,
+ 'Permission' => Twilio.serialize_list(permission) { |e| e },
})
payload = @version.create(
'POST',
@uri,
@@ -204,10 +204,10 @@
##
# Update the RoleInstance
# @param [String] permission The permission
# @return [RoleInstance] Updated RoleInstance
def update(permission: nil)
- data = Twilio::Values.of({'Permission' => permission,})
+ data = Twilio::Values.of({'Permission' => Twilio.serialize_list(permission) { |e| e },})
payload = @version.update(
'POST',
@uri,
data: data,
\ No newline at end of file