lib/twilio-ruby/rest/chat/v2/service/role.rb in twilio-ruby-5.45.1 vs lib/twilio-ruby/rest/chat/v2/service/role.rb in twilio-ruby-5.46.0

- old
+ new

@@ -32,14 +32,14 @@ # @param [String] friendly_name A descriptive string that you create to describe # the new resource. It can be up to 64 characters long. # @param [role.RoleType] type The type of role. Can be: `channel` for # {Channel}[https://www.twilio.com/docs/chat/channels] roles or `deployment` for # {Service}[https://www.twilio.com/docs/chat/rest/service-resource] roles. - # @param [String] permission A permission that you grant to the new role. Only one - # permission can be granted per parameter. To assign more than one permission, - # repeat this parameter for each permission value. The values for this parameter - # depend on the role's `type`. + # @param [Array[String]] permission A permission that you grant to the new role. + # Only one permission can be granted per parameter. To assign more than one + # permission, repeat this parameter for each permission value. The values for this + # parameter depend on the role's `type`. # @return [RoleInstance] Created RoleInstance def create(friendly_name: nil, type: nil, permission: nil) data = Twilio::Values.of({ 'FriendlyName' => friendly_name, 'Type' => type, @@ -200,12 +200,12 @@ @version.delete('DELETE', @uri) end ## # Update the RoleInstance - # @param [String] permission A permission that you grant to the role. Only one - # permission can be granted per parameter. To assign more than one permission, + # @param [Array[String]] permission A permission that you grant to the role. Only + # one permission can be granted per parameter. To assign more than one permission, # repeat this parameter for each permission value. Note that the update action # replaces all previously assigned permissions with those defined in the update # action. To remove a permission, do not include it in the subsequent update # action. The values for this parameter depend on the role's `type`. # @return [RoleInstance] Updated RoleInstance @@ -303,11 +303,11 @@ def type @properties['type'] end ## - # @return [String] An array of the permissions the role has been granted + # @return [Array[String]] An array of the permissions the role has been granted def permissions @properties['permissions'] end ## @@ -342,11 +342,11 @@ context.delete end ## # Update the RoleInstance - # @param [String] permission A permission that you grant to the role. Only one - # permission can be granted per parameter. To assign more than one permission, + # @param [Array[String]] permission A permission that you grant to the role. Only + # one permission can be granted per parameter. To assign more than one permission, # repeat this parameter for each permission value. Note that the update action # replaces all previously assigned permissions with those defined in the update # action. To remove a permission, do not include it in the subsequent update # action. The values for this parameter depend on the role's `type`. # @return [RoleInstance] Updated RoleInstance \ No newline at end of file