lib/twilio-ruby/rest/chat/v1/service/role.rb in twilio-ruby-5.45.1 vs lib/twilio-ruby/rest/chat/v1/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/api/channels] roles or `deployment` # for {Service}[https://www.twilio.com/docs/chat/api/services] 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` and are described in the documentation. + # @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` and are described in the documentation. # @return [RoleInstance] Created RoleInstance def create(friendly_name: nil, type: nil, permission: nil) data = Twilio::Values.of({ 'FriendlyName' => friendly_name, 'Type' => type, @@ -201,12 +201,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. The values for this parameter # depend on the role's `type` and are described in the documentation. # @return [RoleInstance] Updated RoleInstance def update(permission: nil) data = Twilio::Values.of({'Permission' => Twilio.serialize_list(permission) { |e| e }, }) @@ -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. The values for this parameter # depend on the role's `type` and are described in the documentation. # @return [RoleInstance] Updated RoleInstance def update(permission: nil) context.update(permission: permission, ) \ No newline at end of file