Skip to content

Commit 5672882

Browse files
author
Doug Black
committed
[Librarian] Regenerated @ e42fae993485a0f5327f8e60b73fde425c7b814f
1 parent 8be56fe commit 5672882

File tree

5 files changed

+96
-66
lines changed

5 files changed

+96
-66
lines changed

CHANGES.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
twilio-ruby changelog
22
=====================
33

4+
[2017-09-15] Version 5.2.3
5+
---------------------------
6+
**Api**
7+
- Add `sip_registration` property on SIP Domains
8+
- Add new video and market usage category keys
9+
10+
411
[2017-09-08] Version 5.2.2
512
---------------------------
613
- Add configurable timeout to HttpClient

lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb

+8-2
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ def initialize(version, account_sid, sid)
337337

338338
##
339339
# Update the IncomingPhoneNumberInstance
340+
# @param [String] account_sid The unique id of the Account to which you wish to
341+
# transfer this phnoe number
340342
# @param [String] api_version Calls to this phone number will start a new TwiML
341343
# session with this API version.
342344
# @param [String] friendly_name A human readable descriptive text for this
@@ -385,8 +387,9 @@ def initialize(version, account_sid, sid)
385387
# @param [incoming_phone_number.VoiceReceiveMode] voice_receive_mode The
386388
# voice_receive_mode
387389
# @return [IncomingPhoneNumberInstance] Updated IncomingPhoneNumberInstance
388-
def update(api_version: :unset, friendly_name: :unset, sms_application_sid: :unset, sms_fallback_method: :unset, sms_fallback_url: :unset, sms_method: :unset, sms_url: :unset, status_callback: :unset, status_callback_method: :unset, voice_application_sid: :unset, voice_caller_id_lookup: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_url: :unset, emergency_status: :unset, emergency_address_sid: :unset, trunk_sid: :unset, voice_receive_mode: :unset)
390+
def update(account_sid: :unset, api_version: :unset, friendly_name: :unset, sms_application_sid: :unset, sms_fallback_method: :unset, sms_fallback_url: :unset, sms_method: :unset, sms_url: :unset, status_callback: :unset, status_callback_method: :unset, voice_application_sid: :unset, voice_caller_id_lookup: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_url: :unset, emergency_status: :unset, emergency_address_sid: :unset, trunk_sid: :unset, voice_receive_mode: :unset)
389391
data = Twilio::Values.of({
392+
'AccountSid' => account_sid,
390393
'ApiVersion' => api_version,
391394
'FriendlyName' => friendly_name,
392395
'SmsApplicationSid' => sms_application_sid,
@@ -722,6 +725,8 @@ def emergency_address_sid
722725

723726
##
724727
# Update the IncomingPhoneNumberInstance
728+
# @param [String] account_sid The unique id of the Account to which you wish to
729+
# transfer this phnoe number
725730
# @param [String] api_version Calls to this phone number will start a new TwiML
726731
# session with this API version.
727732
# @param [String] friendly_name A human readable descriptive text for this
@@ -770,8 +775,9 @@ def emergency_address_sid
770775
# @param [incoming_phone_number.VoiceReceiveMode] voice_receive_mode The
771776
# voice_receive_mode
772777
# @return [IncomingPhoneNumberInstance] Updated IncomingPhoneNumberInstance
773-
def update(api_version: :unset, friendly_name: :unset, sms_application_sid: :unset, sms_fallback_method: :unset, sms_fallback_url: :unset, sms_method: :unset, sms_url: :unset, status_callback: :unset, status_callback_method: :unset, voice_application_sid: :unset, voice_caller_id_lookup: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_url: :unset, emergency_status: :unset, emergency_address_sid: :unset, trunk_sid: :unset, voice_receive_mode: :unset)
778+
def update(account_sid: :unset, api_version: :unset, friendly_name: :unset, sms_application_sid: :unset, sms_fallback_method: :unset, sms_fallback_url: :unset, sms_method: :unset, sms_url: :unset, status_callback: :unset, status_callback_method: :unset, voice_application_sid: :unset, voice_caller_id_lookup: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_url: :unset, emergency_status: :unset, emergency_address_sid: :unset, trunk_sid: :unset, voice_receive_mode: :unset)
774779
context.update(
780+
account_sid: account_sid,
775781
api_version: api_version,
776782
friendly_name: friendly_name,
777783
sms_application_sid: sms_application_sid,

lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb

+16-3
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ def get_page(target_url)
135135
# @param [String] voice_status_callback_url The URL that Twilio will request to
136136
# pass status parameters
137137
# @param [String] voice_status_callback_method The voice_status_callback_method
138+
# @param [Boolean] sip_registration The sip_registration
138139
# @return [DomainInstance] Newly created DomainInstance
139-
def create(domain_name: nil, friendly_name: :unset, auth_type: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, voice_status_callback_url: :unset, voice_status_callback_method: :unset)
140+
def create(domain_name: nil, friendly_name: :unset, auth_type: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, voice_status_callback_url: :unset, voice_status_callback_method: :unset, sip_registration: :unset)
140141
data = Twilio::Values.of({
141142
'DomainName' => domain_name,
142143
'FriendlyName' => friendly_name,
@@ -147,6 +148,7 @@ def create(domain_name: nil, friendly_name: :unset, auth_type: :unset, voice_url
147148
'VoiceFallbackMethod' => voice_fallback_method,
148149
'VoiceStatusCallbackUrl' => voice_status_callback_url,
149150
'VoiceStatusCallbackMethod' => voice_status_callback_method,
151+
'SipRegistration' => sip_registration,
150152
})
151153

152154
payload = @version.create(
@@ -255,8 +257,9 @@ def fetch
255257
# @param [String] voice_status_callback_method The voice_status_callback_method
256258
# @param [String] voice_status_callback_url The voice_status_callback_url
257259
# @param [String] voice_url The voice_url
260+
# @param [Boolean] sip_registration The sip_registration
258261
# @return [DomainInstance] Updated DomainInstance
259-
def update(auth_type: :unset, friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset)
262+
def update(auth_type: :unset, friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset, sip_registration: :unset)
260263
data = Twilio::Values.of({
261264
'AuthType' => auth_type,
262265
'FriendlyName' => friendly_name,
@@ -266,6 +269,7 @@ def update(auth_type: :unset, friendly_name: :unset, voice_fallback_method: :uns
266269
'VoiceStatusCallbackMethod' => voice_status_callback_method,
267270
'VoiceStatusCallbackUrl' => voice_status_callback_url,
268271
'VoiceUrl' => voice_url,
272+
'SipRegistration' => sip_registration,
269273
})
270274

271275
payload = @version.update(
@@ -381,6 +385,7 @@ def initialize(version, payload, account_sid: nil, sid: nil)
381385
'voice_status_callback_url' => payload['voice_status_callback_url'],
382386
'voice_url' => payload['voice_url'],
383387
'subresource_uris' => payload['subresource_uris'],
388+
'sip_registration' => payload['sip_registration'],
384389
}
385390

386391
# Context
@@ -502,6 +507,12 @@ def subresource_uris
502507
@properties['subresource_uris']
503508
end
504509

510+
##
511+
# @return [Boolean] If SIP registration is allowed
512+
def sip_registration
513+
@properties['sip_registration']
514+
end
515+
505516
##
506517
# Fetch a DomainInstance
507518
# @return [DomainInstance] Fetched DomainInstance
@@ -520,8 +531,9 @@ def fetch
520531
# @param [String] voice_status_callback_method The voice_status_callback_method
521532
# @param [String] voice_status_callback_url The voice_status_callback_url
522533
# @param [String] voice_url The voice_url
534+
# @param [Boolean] sip_registration The sip_registration
523535
# @return [DomainInstance] Updated DomainInstance
524-
def update(auth_type: :unset, friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset)
536+
def update(auth_type: :unset, friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset, sip_registration: :unset)
525537
context.update(
526538
auth_type: auth_type,
527539
friendly_name: friendly_name,
@@ -531,6 +543,7 @@ def update(auth_type: :unset, friendly_name: :unset, voice_fallback_method: :uns
531543
voice_status_callback_method: voice_status_callback_method,
532544
voice_status_callback_url: voice_status_callback_url,
533545
voice_url: voice_url,
546+
sip_registration: sip_registration,
534547
)
535548
end
536549

lib/twilio-ruby/rest/preview.rb

+61-61
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,19 @@ def initialize(twilio)
1717
@port = 443
1818

1919
# Versions
20-
@sync = nil
21-
@wireless = nil
20+
@bulk_exports = nil
2221
@deployed_devices = nil
22+
@hosted_numbers = nil
2323
@marketplace = nil
24-
@bulk_exports = nil
2524
@proxy = nil
26-
@hosted_numbers = nil
27-
end
28-
29-
##
30-
# Version sync of preview
31-
def sync
32-
@sync ||= Sync.new self
25+
@sync = nil
26+
@wireless = nil
3327
end
3428

3529
##
36-
# Version wireless of preview
37-
def wireless
38-
@wireless ||= Wireless.new self
30+
# Version bulk_exports of preview
31+
def bulk_exports
32+
@bulk_exports ||= BulkExports.new self
3933
end
4034

4135
##
@@ -45,15 +39,15 @@ def deployed_devices
4539
end
4640

4741
##
48-
# Version marketplace of preview
49-
def marketplace
50-
@marketplace ||= Marketplace.new self
42+
# Version hosted_numbers of preview
43+
def hosted_numbers
44+
@hosted_numbers ||= HostedNumbers.new self
5145
end
5246

5347
##
54-
# Version bulk_exports of preview
55-
def bulk_exports
56-
@bulk_exports ||= BulkExports.new self
48+
# Version marketplace of preview
49+
def marketplace
50+
@marketplace ||= Marketplace.new self
5751
end
5852

5953
##
@@ -63,41 +57,31 @@ def proxy
6357
end
6458

6559
##
66-
# Version hosted_numbers of preview
67-
def hosted_numbers
68-
@hosted_numbers ||= HostedNumbers.new self
69-
end
70-
71-
##
72-
# @param [String] sid A 34 character string that uniquely identifies this Service.
73-
# @return [Twilio::REST::Preview::Proxy::ServiceInstance] if sid was passed.
74-
# @return [Twilio::REST::Preview::Proxy::ServiceList]
75-
def services(sid=:unset)
76-
self.proxy.services(sid)
60+
# Version sync of preview
61+
def sync
62+
@sync ||= Sync.new self
7763
end
7864

7965
##
80-
# @param [String] sid The sid
81-
# @return [Twilio::REST::Preview::Wireless::CommandInstance] if sid was passed.
82-
# @return [Twilio::REST::Preview::Wireless::CommandList]
83-
def commands(sid=:unset)
84-
self.wireless.commands(sid)
66+
# Version wireless of preview
67+
def wireless
68+
@wireless ||= Wireless.new self
8569
end
8670

8771
##
88-
# @param [String] sid The sid
89-
# @return [Twilio::REST::Preview::Wireless::RatePlanInstance] if sid was passed.
90-
# @return [Twilio::REST::Preview::Wireless::RatePlanList]
91-
def rate_plans(sid=:unset)
92-
self.wireless.rate_plans(sid)
72+
# @param [String] resource_type The resource_type
73+
# @return [Twilio::REST::Preview::BulkExports::ExportInstance] if resource_type was passed.
74+
# @return [Twilio::REST::Preview::BulkExports::ExportList]
75+
def exports(resource_type=:unset)
76+
self.bulk_exports.exports(resource_type)
9377
end
9478

9579
##
96-
# @param [String] sid The sid
97-
# @return [Twilio::REST::Preview::Wireless::SimInstance] if sid was passed.
98-
# @return [Twilio::REST::Preview::Wireless::SimList]
99-
def sims(sid=:unset)
100-
self.wireless.sims(sid)
80+
# @param [String] resource_type The resource_type
81+
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationInstance] if resource_type was passed.
82+
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]
83+
def export_configuration(resource_type=:unset)
84+
self.bulk_exports.export_configuration(resource_type)
10185
end
10286

10387
##
@@ -109,6 +93,15 @@ def fleets(sid=:unset)
10993
self.deployed_devices.fleets(sid)
11094
end
11195

96+
##
97+
# @param [String] sid A 34 character string that uniquely identifies this
98+
# HostedNumberOrder.
99+
# @return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderInstance] if sid was passed.
100+
# @return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderList]
101+
def hosted_number_orders(sid=:unset)
102+
self.hosted_numbers.hosted_number_orders(sid)
103+
end
104+
112105
##
113106
# @param [String] sid A 34 character string that uniquely identifies this Add-on.
114107
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnInstance] if sid was passed.
@@ -127,28 +120,35 @@ def installed_add_ons(sid=:unset)
127120
end
128121

129122
##
130-
# @param [String] resource_type The resource_type
131-
# @return [Twilio::REST::Preview::BulkExports::ExportInstance] if resource_type was passed.
132-
# @return [Twilio::REST::Preview::BulkExports::ExportList]
133-
def exports(resource_type=:unset)
134-
self.bulk_exports.exports(resource_type)
123+
# @param [String] sid The sid
124+
# @return [Twilio::REST::Preview::Sync::ServiceInstance] if sid was passed.
125+
# @return [Twilio::REST::Preview::Sync::ServiceList]
126+
def services(sid=:unset)
127+
self.sync.services(sid)
135128
end
136129

137130
##
138-
# @param [String] resource_type The resource_type
139-
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationInstance] if resource_type was passed.
140-
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]
141-
def export_configuration(resource_type=:unset)
142-
self.bulk_exports.export_configuration(resource_type)
131+
# @param [String] sid The sid
132+
# @return [Twilio::REST::Preview::Wireless::CommandInstance] if sid was passed.
133+
# @return [Twilio::REST::Preview::Wireless::CommandList]
134+
def commands(sid=:unset)
135+
self.wireless.commands(sid)
143136
end
144137

145138
##
146-
# @param [String] sid A 34 character string that uniquely identifies this
147-
# HostedNumberOrder.
148-
# @return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderInstance] if sid was passed.
149-
# @return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderList]
150-
def hosted_number_orders(sid=:unset)
151-
self.hosted_numbers.hosted_number_orders(sid)
139+
# @param [String] sid The sid
140+
# @return [Twilio::REST::Preview::Wireless::RatePlanInstance] if sid was passed.
141+
# @return [Twilio::REST::Preview::Wireless::RatePlanList]
142+
def rate_plans(sid=:unset)
143+
self.wireless.rate_plans(sid)
144+
end
145+
146+
##
147+
# @param [String] sid The sid
148+
# @return [Twilio::REST::Preview::Wireless::SimInstance] if sid was passed.
149+
# @return [Twilio::REST::Preview::Wireless::SimList]
150+
def sims(sid=:unset)
151+
self.wireless.sims(sid)
152152
end
153153

154154
##

spec/integration/api/v2010/account/sip/domain_spec.rb

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"date_updated": "Fri, 06 Sep 2013 18:48:50 -0000",
3939
"domain_name": "dunder-mifflin-scranton.api.twilio.com",
4040
"friendly_name": "Scranton Office",
41+
"sip_registration": true,
4142
"sid": "SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4243
"subresource_uris": {
4344
"credential_list_mappings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialListMappings.json",
@@ -124,6 +125,7 @@
124125
"date_updated": "Fri, 06 Sep 2013 19:18:30 -0000",
125126
"domain_name": "dunder-mifflin-scranton.sip.twilio.com",
126127
"friendly_name": "Scranton Office",
128+
"sip_registration": true,
127129
"sid": "SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
128130
"subresource_uris": {
129131
"credential_list_mappings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialListMappings.json",
@@ -176,6 +178,7 @@
176178
"date_updated": "Fri, 06 Sep 2013 19:18:30 -0000",
177179
"domain_name": "dunder-mifflin-scranton.sip.twilio.com",
178180
"friendly_name": "Scranton Office",
181+
"sip_registration": true,
179182
"sid": "SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
180183
"subresource_uris": {
181184
"credential_list_mappings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialListMappings.json",
@@ -228,6 +231,7 @@
228231
"date_updated": "Fri, 06 Sep 2013 19:18:30 -0000",
229232
"domain_name": "dunder-mifflin-scranton.sip.twilio.com",
230233
"friendly_name": "Scranton Office",
234+
"sip_registration": false,
231235
"sid": "SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
232236
"subresource_uris": {
233237
"credential_list_mappings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialListMappings.json",

0 commit comments

Comments
 (0)