lib/twilio-ruby/rest/serverless/v1/service.rb in twilio-ruby-5.31.5 vs lib/twilio-ruby/rest/serverless/v1/service.rb in twilio-ruby-5.31.6
- old
+ new
@@ -116,16 +116,19 @@
# 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.
# @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] Newly created ServiceInstance
- def create(unique_name: nil, friendly_name: nil, include_credentials: :unset)
+ def create(unique_name: nil, friendly_name: nil, include_credentials: :unset, ui_editable: :unset)
data = Twilio::Values.of({
'UniqueName' => unique_name,
'FriendlyName' => friendly_name,
'IncludeCredentials' => include_credentials,
+ 'UiEditable' => ui_editable,
})
payload = @version.create(
'POST',
@uri,
@@ -221,15 +224,18 @@
# 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`.
# @return [ServiceInstance] Updated ServiceInstance
- def update(include_credentials: :unset, friendly_name: :unset)
+ def update(include_credentials: :unset, friendly_name: :unset, ui_editable: :unset)
data = Twilio::Values.of({
'IncludeCredentials' => include_credentials,
'FriendlyName' => friendly_name,
+ 'UiEditable' => ui_editable,
})
payload = @version.update(
'POST',
@uri,
@@ -343,10 +349,11 @@
'sid' => payload['sid'],
'account_sid' => payload['account_sid'],
'friendly_name' => payload['friendly_name'],
'unique_name' => payload['unique_name'],
'include_credentials' => payload['include_credentials'],
+ 'ui_editable' => payload['ui_editable'],
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
'url' => payload['url'],
'links' => payload['links'],
}
@@ -396,10 +403,16 @@
def include_credentials
@properties['include_credentials']
end
##
+ # @return [Boolean] Whether the Service's properties and subresources can be edited via the UI
+ def ui_editable
+ @properties['ui_editable']
+ end
+
+ ##
# @return [Time] The ISO 8601 date and time in GMT when the Service resource was created
def date_created
@properties['date_created']
end
@@ -439,12 +452,18 @@
# 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`.
# @return [ServiceInstance] Updated ServiceInstance
- def update(include_credentials: :unset, friendly_name: :unset)
- context.update(include_credentials: include_credentials, friendly_name: friendly_name, )
+ def update(include_credentials: :unset, friendly_name: :unset, ui_editable: :unset)
+ context.update(
+ include_credentials: include_credentials,
+ friendly_name: friendly_name,
+ ui_editable: ui_editable,
+ )
end
##
# Access the environments
# @return [environments] environments
\ No newline at end of file