lib/twilio-ruby/rest/proxy/v1/service/session.rb in twilio-ruby-5.73.0 vs lib/twilio-ruby/rest/proxy/v1/service/session.rb in twilio-ruby-5.73.1
- old
+ new
@@ -125,32 +125,19 @@
# @param [session.Status] status The initial status of the Session. Can be:
# `open`, `in-progress`, `closed`, `failed`, or `unknown`. The default is `open`
# on create.
# @param [Array[Hash]] participants The Participant objects to include in the new
# session.
- # @param [Boolean] fail_on_participant_conflict [Experimental] For accounts with
- # the ProxyAllowParticipantConflict account flag, setting to true enables
- # per-request opt-in to allowing Proxy to reject a Session create (with
- # Participants) request that could cause the same Identifier/ProxyIdentifier pair
- # to be active in multiple Sessions. Depending on the context, this could be a 409
- # error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not
- # provided, requests will be allowed to succeed and a Debugger notification
- # (80802) will be emitted. Having multiple, active Participants with the same
- # Identifier/ProxyIdentifier pair causes calls and messages from affected
- # Participants to be routed incorrectly. Please note, the default behavior for
- # accounts without the ProxyAllowParticipantConflict flag is to reject the request
- # as described. This will eventually be the default for all accounts.
# @return [SessionInstance] Created SessionInstance
- def create(unique_name: :unset, date_expiry: :unset, ttl: :unset, mode: :unset, status: :unset, participants: :unset, fail_on_participant_conflict: :unset)
+ def create(unique_name: :unset, date_expiry: :unset, ttl: :unset, mode: :unset, status: :unset, participants: :unset)
data = Twilio::Values.of({
'UniqueName' => unique_name,
'DateExpiry' => Twilio.serialize_iso8601_datetime(date_expiry),
'Ttl' => ttl,
'Mode' => mode,
'Status' => status,
'Participants' => Twilio.serialize_list(participants) { |e| Twilio.serialize_object(e) },
- 'FailOnParticipantConflict' => fail_on_participant_conflict,
})
payload = @version.create('POST', @uri, data: data)
SessionInstance.new(@version, payload, service_sid: @solution[:service_sid], )
@@ -241,28 +228,16 @@
# the `ttl` value.
# @param [String] ttl The time, in seconds, when the session will expire. The time
# is measured from the last Session create or the Session's last Interaction.
# @param [session.Status] status The new status of the resource. Can be:
# `in-progress` to re-open a session or `closed` to close a session.
- # @param [Boolean] fail_on_participant_conflict [Experimental] For accounts with
- # the ProxyAllowParticipantConflict account flag, setting to true enables
- # per-request opt-in to allowing Proxy to return a 400 error (Twilio error code
- # 80604) when a request to set a Session to in-progress would cause Participants
- # with the same Identifier/ProxyIdentifier pair to be active in multiple Sessions.
- # If not provided, requests will be allowed to succeed, and a Debugger
- # notification (80801) will be emitted. Having multiple, active Participants with
- # the same Identifier/ProxyIdentifier pair causes calls and messages from affected
- # Participants to be routed incorrectly. Please note, the default behavior for
- # accounts without the ProxyAllowParticipantConflict flag is to reject the request
- # as described. This will eventually be the default for all accounts.
# @return [SessionInstance] Updated SessionInstance
- def update(date_expiry: :unset, ttl: :unset, status: :unset, fail_on_participant_conflict: :unset)
+ def update(date_expiry: :unset, ttl: :unset, status: :unset)
data = Twilio::Values.of({
'DateExpiry' => Twilio.serialize_iso8601_datetime(date_expiry),
'Ttl' => ttl,
'Status' => status,
- 'FailOnParticipantConflict' => fail_on_participant_conflict,
})
payload = @version.update('POST', @uri, data: data)
SessionInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid], )
@@ -496,28 +471,12 @@
# the `ttl` value.
# @param [String] ttl The time, in seconds, when the session will expire. The time
# is measured from the last Session create or the Session's last Interaction.
# @param [session.Status] status The new status of the resource. Can be:
# `in-progress` to re-open a session or `closed` to close a session.
- # @param [Boolean] fail_on_participant_conflict [Experimental] For accounts with
- # the ProxyAllowParticipantConflict account flag, setting to true enables
- # per-request opt-in to allowing Proxy to return a 400 error (Twilio error code
- # 80604) when a request to set a Session to in-progress would cause Participants
- # with the same Identifier/ProxyIdentifier pair to be active in multiple Sessions.
- # If not provided, requests will be allowed to succeed, and a Debugger
- # notification (80801) will be emitted. Having multiple, active Participants with
- # the same Identifier/ProxyIdentifier pair causes calls and messages from affected
- # Participants to be routed incorrectly. Please note, the default behavior for
- # accounts without the ProxyAllowParticipantConflict flag is to reject the request
- # as described. This will eventually be the default for all accounts.
# @return [SessionInstance] Updated SessionInstance
- def update(date_expiry: :unset, ttl: :unset, status: :unset, fail_on_participant_conflict: :unset)
- context.update(
- date_expiry: date_expiry,
- ttl: ttl,
- status: status,
- fail_on_participant_conflict: fail_on_participant_conflict,
- )
+ def update(date_expiry: :unset, ttl: :unset, status: :unset)
+ context.update(date_expiry: date_expiry, ttl: ttl, status: status, )
end
##
# Access the interactions
# @return [interactions] interactions
\ No newline at end of file