lib/twilio-ruby/rest/chat/v2/service/user.rb in twilio-ruby-5.26.0 vs lib/twilio-ruby/rest/chat/v2/service/user.rb in twilio-ruby-5.27.0
- old
+ new
@@ -14,12 +14,12 @@
class UserList < ListResource
##
# Initialize the UserList
# @param [Version] version Version that contains the resource
# @param [String] service_sid The SID of the
- # [Service](https://www.twilio.com/docs/chat/rest/services) the User resource is
- # associated with.
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) the User
+ # resource is associated with.
# @return [UserList] UserList
def initialize(version, service_sid: nil)
super(version)
# Path Solution
@@ -29,15 +29,17 @@
##
# Retrieve a single page of UserInstance records from the API.
# Request is executed immediately.
# @param [String] identity The `identity` value that uniquely identifies the new
- # resource's [User](https://www.twilio.com/docs/chat/rest/users) within the
- # [Service](https://www.twilio.com/docs/chat/rest/services). This value is often a
- # username or email address. See the Identity documentation for more info.
+ # resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within
+ # the [Service](https://www.twilio.com/docs/chat/rest/service-resource). This
+ # value is often a username or email address. See the Identity documentation for
+ # more info.
# @param [String] role_sid The SID of the
- # [Role](https://www.twilio.com/docs/chat/rest/roles) to assign to the new User.
+ # [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the new
+ # User.
# @param [String] attributes A valid JSON string that contains
# application-specific data.
# @param [String] friendly_name A descriptive string that you create to describe
# the new resource. This value is often used for display purposes.
# @return [UserInstance] Newly created UserInstance
@@ -179,12 +181,12 @@
class UserContext < InstanceContext
##
# Initialize the UserContext
# @param [Version] version Version that contains the resource
# @param [String] service_sid The SID of the
- # [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the User
- # resource from.
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the
+ # User resource from.
# @param [String] sid The SID of the User resource to fetch. This value can be
# either the `sid` or the `identity` of the User resource to fetch.
# @return [UserContext] UserContext
def initialize(version, service_sid, sid)
super(version)
@@ -221,11 +223,12 @@
end
##
# Update the UserInstance
# @param [String] role_sid The SID of the
- # [Role](https://www.twilio.com/docs/chat/rest/roles) to assign to the User.
+ # [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the
+ # User.
# @param [String] attributes A valid JSON string that contains
# application-specific data.
# @param [String] friendly_name A descriptive string that you create to describe
# the resource. It is often used for display purposes.
# @return [UserInstance] Updated UserInstance
@@ -308,12 +311,12 @@
##
# Initialize the UserInstance
# @param [Version] version Version that contains the resource
# @param [Hash] payload payload that contains response from Twilio
# @param [String] service_sid The SID of the
- # [Service](https://www.twilio.com/docs/chat/rest/services) the User resource is
- # associated with.
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) the User
+ # resource is associated with.
# @param [String] sid The SID of the User resource to fetch. This value can be
# either the `sid` or the `identity` of the User resource to fetch.
# @return [UserInstance] UserInstance
def initialize(version, payload, service_sid: nil, sid: nil)
super(version)
@@ -451,10 +454,11 @@
end
##
# Update the UserInstance
# @param [String] role_sid The SID of the
- # [Role](https://www.twilio.com/docs/chat/rest/roles) to assign to the User.
+ # [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the
+ # User.
# @param [String] attributes A valid JSON string that contains
# application-specific data.
# @param [String] friendly_name A descriptive string that you create to describe
# the resource. It is often used for display purposes.
# @return [UserInstance] Updated UserInstance
\ No newline at end of file