Skip to content

Commit

Permalink
[Librarian] Regenerated @ 9e369cf9a8faca3a4590250f768d8ce69a65d0e8
Browse files Browse the repository at this point in the history
  • Loading branch information
jmctwilio committed Dec 16, 2017
1 parent 9d0b932 commit 252c550
Show file tree
Hide file tree
Showing 25 changed files with 2,329 additions and 108 deletions.
18 changes: 18 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
twilio-ruby changelog
=====================

[2017-12-15] Version 5.6.0
---------------------------
**Api**
- Add `voip`, `national`, `shared_cost`, and `machine_to_machine` sub-resources to `/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{IsoCountryCode}/`
- Add programmable video keys

**Preview**
- Add `verification_type` and `verification_document_sid` to HostedNumberOrders.

**Proxy**
- Fixed typo in session status enum value

**Twiml**
- Fix Dial record property incorrectly typed as accepting TrimEnum values when it actually has its own enum of values. *(breaking change)*
- Add `priority` and `timeout` properties to Task TwiML.
- Add support for `recording_status_callback_event` for Dial verb and for Conference


[2017-12-01] Version 5.5.1
---------------------------
**Api**
Expand Down
96 changes: 96 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ def initialize(version, account_sid, country_code)
@local = nil
@toll_free = nil
@mobile = nil
@national = nil
@voip = nil
@shared_cost = nil
@machine_to_machine = nil
end

##
Expand Down Expand Up @@ -230,6 +234,70 @@ def mobile
@mobile
end

##
# Access the national
# @return [NationalList]
# @return [NationalContext]
def national
unless @national
@national = NationalList.new(
@version,
account_sid: @solution[:account_sid],
country_code: @solution[:country_code],
)
end

@national
end

##
# Access the voip
# @return [VoipList]
# @return [VoipContext]
def voip
unless @voip
@voip = VoipList.new(
@version,
account_sid: @solution[:account_sid],
country_code: @solution[:country_code],
)
end

@voip
end

##
# Access the shared_cost
# @return [SharedCostList]
# @return [SharedCostContext]
def shared_cost
unless @shared_cost
@shared_cost = SharedCostList.new(
@version,
account_sid: @solution[:account_sid],
country_code: @solution[:country_code],
)
end

@shared_cost
end

##
# Access the machine_to_machine
# @return [MachineToMachineList]
# @return [MachineToMachineContext]
def machine_to_machine
unless @machine_to_machine
@machine_to_machine = MachineToMachineList.new(
@version,
account_sid: @solution[:account_sid],
country_code: @solution[:country_code],
)
end

@machine_to_machine
end

##
# Provide a user friendly representation
def to_s
Expand Down Expand Up @@ -340,6 +408,34 @@ def mobile
context.mobile
end

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

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

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

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

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

0 comments on commit 252c550

Please sign in to comment.