lib/twilio-ruby/rest/conversations/v1/service/configuration.rb in twilio-ruby-5.45.0 vs lib/twilio-ruby/rest/conversations/v1/service/configuration.rb in twilio-ruby-5.45.1
- old
+ new
@@ -101,16 +101,20 @@
# about roles.
# @param [String] default_chat_service_role_sid The service-level role assigned to
# users when they are added to the service. See the {Conversation
# Role}[https://www.twilio.com/docs/conversations/api/role-resource] for more info
# about roles.
+ # @param [Boolean] reachability_enabled Whether the {Reachability
+ # Indicator}[https://www.twilio.com/docs/chat/reachability-indicator] is enabled
+ # for this Conversations Service. The default is `false`.
# @return [ConfigurationInstance] Updated ConfigurationInstance
- def update(default_conversation_creator_role_sid: :unset, default_conversation_role_sid: :unset, default_chat_service_role_sid: :unset)
+ def update(default_conversation_creator_role_sid: :unset, default_conversation_role_sid: :unset, default_chat_service_role_sid: :unset, reachability_enabled: :unset)
data = Twilio::Values.of({
'DefaultConversationCreatorRoleSid' => default_conversation_creator_role_sid,
'DefaultConversationRoleSid' => default_conversation_role_sid,
'DefaultChatServiceRoleSid' => default_chat_service_role_sid,
+ 'ReachabilityEnabled' => reachability_enabled,
})
payload = @version.update('POST', @uri, data: data)
ConfigurationInstance.new(@version, payload, chat_service_sid: @solution[:chat_service_sid], )
@@ -155,10 +159,11 @@
'default_conversation_creator_role_sid' => payload['default_conversation_creator_role_sid'],
'default_conversation_role_sid' => payload['default_conversation_role_sid'],
'default_chat_service_role_sid' => payload['default_chat_service_role_sid'],
'url' => payload['url'],
'links' => payload['links'],
+ 'reachability_enabled' => payload['reachability_enabled'],
}
# Context
@instance_context = nil
@params = {'chat_service_sid' => chat_service_sid, }
@@ -210,10 +215,16 @@
def links
@properties['links']
end
##
+ # @return [Boolean] Whether the Reachability Indicator feature is enabled for this Conversations Service
+ def reachability_enabled
+ @properties['reachability_enabled']
+ end
+
+ ##
# Fetch the ConfigurationInstance
# @return [ConfigurationInstance] Fetched ConfigurationInstance
def fetch
context.fetch
end
@@ -231,15 +242,19 @@
# about roles.
# @param [String] default_chat_service_role_sid The service-level role assigned to
# users when they are added to the service. See the {Conversation
# Role}[https://www.twilio.com/docs/conversations/api/role-resource] for more info
# about roles.
+ # @param [Boolean] reachability_enabled Whether the {Reachability
+ # Indicator}[https://www.twilio.com/docs/chat/reachability-indicator] is enabled
+ # for this Conversations Service. The default is `false`.
# @return [ConfigurationInstance] Updated ConfigurationInstance
- def update(default_conversation_creator_role_sid: :unset, default_conversation_role_sid: :unset, default_chat_service_role_sid: :unset)
+ def update(default_conversation_creator_role_sid: :unset, default_conversation_role_sid: :unset, default_chat_service_role_sid: :unset, reachability_enabled: :unset)
context.update(
default_conversation_creator_role_sid: default_conversation_creator_role_sid,
default_conversation_role_sid: default_conversation_role_sid,
default_chat_service_role_sid: default_chat_service_role_sid,
+ reachability_enabled: reachability_enabled,
)
end
##
# Provide a user friendly representation
\ No newline at end of file