lib/twilio-ruby/rest/serverless/v1/service.rb in twilio-ruby-5.40.1 vs lib/twilio-ruby/rest/serverless/v1/service.rb in twilio-ruby-5.40.2
- old
+ new
@@ -105,16 +105,16 @@
ServicePage.new(@version, response, @solution)
end
##
# Create the ServiceInstance
- # @param [String] unique_name An application-defined string that uniquely
- # identifies the Service resource. It can be used as an alternative to the `sid`
- # in the URL path to address the Service resource. This value must be 244
- # characters or less in length and be unique.
+ # @param [String] unique_name A user-defined string that uniquely identifies the
+ # Service resource. It can be used as an alternative to the `sid` in the URL path
+ # to address the Service resource. This value must be 50 characters or less in
+ # length and be unique.
# @param [String] friendly_name A descriptive string that you create to describe
- # the Service resource. It can be up to 255 characters long.
+ # the Service resource. It can be a maximum of 255 characters.
# @param [Boolean] include_credentials Whether to inject Account credentials into
# a function invocation context. The default value is `false`.
# @param [Boolean] ui_editable Whether the Service's properties and subresources
# can be edited via the UI. The default value is `false`.
# @return [ServiceInstance] Created ServiceInstance
@@ -210,13 +210,13 @@
##
# Update the ServiceInstance
# @param [Boolean] include_credentials Whether to inject Account credentials into
# a function invocation context.
# @param [String] friendly_name A descriptive string that you create to describe
- # the Service resource. It can be up to 255 characters long.
- # @param [Boolean] ui_editable Whether the Service's properties and subresources
- # can be edited via the UI. The default value is `false`.
+ # the Service resource. It can be a maximum of 255 characters.
+ # @param [Boolean] ui_editable Whether the Service resource's properties and
+ # subresources can be edited via the UI. The default value is `false`.
# @return [ServiceInstance] Updated ServiceInstance
def update(include_credentials: :unset, friendly_name: :unset, ui_editable: :unset)
data = Twilio::Values.of({
'IncludeCredentials' => include_credentials,
'FriendlyName' => friendly_name,
@@ -374,11 +374,11 @@
def friendly_name
@properties['friendly_name']
end
##
- # @return [String] An application-defined string that uniquely identifies the Service resource
+ # @return [String] A user-defined string that uniquely identifies the Service resource
def unique_name
@properties['unique_name']
end
##
@@ -386,11 +386,11 @@
def include_credentials
@properties['include_credentials']
end
##
- # @return [Boolean] Whether the Service's properties and subresources can be edited via the UI
+ # @return [Boolean] Whether the Service resource's properties and subresources can be edited via the UI
def ui_editable
@properties['ui_editable']
end
##
@@ -434,12 +434,12 @@
##
# Update the ServiceInstance
# @param [Boolean] include_credentials Whether to inject Account credentials into
# a function invocation context.
# @param [String] friendly_name A descriptive string that you create to describe
- # the Service resource. It can be up to 255 characters long.
- # @param [Boolean] ui_editable Whether the Service's properties and subresources
- # can be edited via the UI. The default value is `false`.
+ # the Service resource. It can be a maximum of 255 characters.
+ # @param [Boolean] ui_editable Whether the Service resource's properties and
+ # subresources can be edited via the UI. The default value is `false`.
# @return [ServiceInstance] Updated ServiceInstance
def update(include_credentials: :unset, friendly_name: :unset, ui_editable: :unset)
context.update(
include_credentials: include_credentials,
friendly_name: friendly_name,
\ No newline at end of file