Skip to content

Commit

Permalink
[Librarian] Regenerated @ 4e75c7be2507558854a659be2e05b171bcf7512b
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Jun 30, 2021
1 parent ccc5965 commit 732a47d
Show file tree
Hide file tree
Showing 13 changed files with 526 additions and 30 deletions.
22 changes: 22 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
twilio-ruby changelog
=====================

[2021-06-30] Version 5.56.0
---------------------------
**Library - Feature**
- [PR #559](https://github.com/twilio/twilio-ruby/pull/559): Add `Twilio::HTTP::Client#configure_connection`. Thanks to [@darwinShopify](https://github.com/darwinShopify)!
- [PR #558](https://github.com/twilio/twilio-ruby/pull/558): Autoload Twilio::REST and Twilio::HTTP. Thanks to [@gmcgibbon](https://github.com/gmcgibbon)!

**Conversations**
- Read-only Conversation Email Binding property `binding`

**Supersim**
- Add Billing Period resource for the Super Sim Pilot
- Add List endpoint to Billing Period resource for Super Sim Pilot
- Add Fetch endpoint to Billing Period resource for Super Sim Pilot

**Taskrouter**
- Update `transcribe` & `transcription_configuration` form params in Reservation update endpoint to have private visibility **(breaking change)**
- Add `transcribe` & `transcription_configuration` form params to Reservation update endpoint

**Twiml**
- Add `modify` event to `statusCallbackEvent` for `<Conference>`.


[2021-06-16] Version 5.55.0
---------------------------
**Api**
Expand Down
15 changes: 8 additions & 7 deletions lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def initialize(version, account_sid: nil, conference_sid: nil)
# `POST`.
# @param [Array[String]] conference_status_callback_event The conference state
# changes that should generate a call to `conference_status_callback`. Can be:
# `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`, and `announcement`.
# Separate multiple values with a space. Defaults to `start end`.
# `start`, `end`, `join`, `leave`, `mute`, `hold`, `modify`, `speaker`, and
# `announcement`. Separate multiple values with a space. Defaults to `start end`.
# @param [String] recording_channels The recording channels for the final
# recording. Can be: `mono` or `dual` and the default is `mono`.
# @param [String] recording_status_callback The URL that we should call using the
Expand All @@ -130,13 +130,14 @@ def initialize(version, account_sid: nil, conference_sid: nil)
# `POST` and defaults to `POST`.
# @param [Array[String]] recording_status_callback_event The recording state
# changes that should generate a call to `recording_status_callback`. Can be:
# `in-progress`, `completed`, and `failed`. Separate multiple values with a space.
# The default value is `in-progress completed failed`.
# `started`, `in-progress`, `paused`, `resumed`, `stopped`, `completed`, `failed`,
# and `absent`. Separate multiple values with a space, ex: `'in-progress completed
# failed'`.
# @param [Array[String]] conference_recording_status_callback_event The conference
# recording state changes that generate a call to
# `conference_recording_status_callback`. Can be: `in-progress`, `completed`, and
# `failed`. Separate multiple values with a space. The default value is
# `in-progress completed failed`.
# `conference_recording_status_callback`. Can be: `in-progress`, `completed`,
# `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress
# completed failed'`
# @param [Boolean] coaching Whether the participant is coaching another call. Can
# be: `true` or `false`. If not present, defaults to `false` unless
# `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined.
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def fetch
# @param [String] body The text of the message you want to send. Can be up to
# 1,600 characters long.
# @return [MessageInstance] Updated MessageInstance
def update(body: nil)
def update(body: :unset)
data = Twilio::Values.of({'Body' => body, })

payload = @version.update('POST', @uri, data: data)
Expand Down Expand Up @@ -580,7 +580,7 @@ def fetch
# @param [String] body The text of the message you want to send. Can be up to
# 1,600 characters long.
# @return [MessageInstance] Updated MessageInstance
def update(body: nil)
def update(body: :unset)
context.update(body: body, )
end

Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/conversations/v1/conversation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ def initialize(version, payload, sid: nil)
'timers' => payload['timers'],
'url' => payload['url'],
'links' => payload['links'],
'bindings' => payload['bindings'],
}

# Context
Expand Down Expand Up @@ -458,6 +459,12 @@ def links
@properties['links']
end

##
# @return [Hash] The bindings
def bindings
@properties['bindings']
end

##
# Update the ConversationInstance
# @param [String] friendly_name The human-readable name of this conversation,
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/conversations/v1/service/conversation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ def initialize(version, payload, chat_service_sid: nil, sid: nil)
'timers' => payload['timers'],
'url' => payload['url'],
'links' => payload['links'],
'bindings' => payload['bindings'],
}

# Context
Expand Down Expand Up @@ -490,6 +491,12 @@ def links
@properties['links']
end

##
# @return [Hash] The bindings
def bindings
@properties['bindings']
end

##
# Update the ConversationInstance
# @param [String] friendly_name The human-readable name of this conversation,
Expand Down
29 changes: 29 additions & 0 deletions lib/twilio-ruby/rest/supersim/v1/sim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ def initialize(version, sid)
# Path Solution
@solution = {sid: sid, }
@uri = "/Sims/#{@solution[:sid]}"

# Dependents
@billing_periods = nil
end

##
Expand Down Expand Up @@ -246,6 +249,18 @@ def update(unique_name: :unset, status: :unset, fleet: :unset, callback_url: :un
SimInstance.new(@version, payload, sid: @solution[:sid], )
end

##
# Access the billing_periods
# @return [BillingPeriodList]
# @return [BillingPeriodContext]
def billing_periods
unless @billing_periods
@billing_periods = BillingPeriodList.new(@version, sim_sid: @solution[:sid], )
end

@billing_periods
end

##
# Provide a user friendly representation
def to_s
Expand Down Expand Up @@ -284,6 +299,7 @@ def initialize(version, payload, sid: nil)
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
'url' => payload['url'],
'links' => payload['links'],
}

# Context
Expand Down Expand Up @@ -356,6 +372,12 @@ def url
@properties['url']
end

##
# @return [String] The links
def links
@properties['links']
end

##
# Fetch the SimInstance
# @return [SimInstance] Fetched SimInstance
Expand Down Expand Up @@ -394,6 +416,13 @@ def update(unique_name: :unset, status: :unset, fleet: :unset, callback_url: :un
)
end

##
# Access the billing_periods
# @return [billing_periods] billing_periods
def billing_periods
context.billing_periods
end

##
# Provide a user friendly representation
def to_s
Expand Down
Loading

0 comments on commit 732a47d

Please sign in to comment.