lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb in twilio-ruby-5.45.1 vs lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb in twilio-ruby-5.46.0

- old
+ new

@@ -27,11 +27,11 @@ ## # Create the RoleInstance # @param [String] friendly_name The friendly_name # @param [role.RoleType] type The type - # @param [String] permission The permission + # @param [Array[String]] permission The permission # @return [RoleInstance] Created RoleInstance def create(friendly_name: nil, type: nil, permission: nil) data = Twilio::Values.of({ 'FriendlyName' => friendly_name, 'Type' => type, @@ -190,11 +190,11 @@ @version.delete('DELETE', @uri) end ## # Update the RoleInstance - # @param [String] permission The permission + # @param [Array[String]] permission The permission # @return [RoleInstance] Updated RoleInstance def update(permission: nil) data = Twilio::Values.of({'Permission' => Twilio.serialize_list(permission) { |e| e }, }) payload = @version.update('POST', @uri, data: data) @@ -286,11 +286,11 @@ def type @properties['type'] end ## - # @return [String] The permissions + # @return [Array[String]] The permissions def permissions @properties['permissions'] end ## @@ -325,10 +325,10 @@ context.delete end ## # Update the RoleInstance - # @param [String] permission The permission + # @param [Array[String]] permission The permission # @return [RoleInstance] Updated RoleInstance def update(permission: nil) context.update(permission: permission, ) end \ No newline at end of file