Skip to content

Commit 8465ed2

Browse files
author
Doug Black
committed
Regenerate
1 parent 85b37f0 commit 8465ed2

File tree

18 files changed

+5297
-0
lines changed

18 files changed

+5297
-0
lines changed

lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb

Lines changed: 417 additions & 0 deletions
Large diffs are not rendered by default.

lib/twilio-ruby/rest/proxy.rb

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
##
2+
# This code was generated by
3+
# \ / _ _ _| _ _
4+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
5+
# / /
6+
7+
module Twilio
8+
module REST
9+
class Proxy < Domain
10+
##
11+
# Initialize the Proxy Domain
12+
def initialize(twilio)
13+
super
14+
15+
@base_url = 'https://proxy.twilio.com'
16+
@host = 'proxy.twilio.com'
17+
@port = 443
18+
19+
# Versions
20+
@v1 = nil
21+
end
22+
23+
##
24+
# Version v1 of proxy
25+
def v1
26+
@v1 ||= V1.new self
27+
end
28+
29+
##
30+
# @param [String] sid A 34 character string that uniquely identifies this Service.
31+
# @return [Twilio::REST::Proxy::V1::ServiceInstance] if sid was passed.
32+
# @return [Twilio::REST::Proxy::V1::ServiceList]
33+
def services(sid=:unset)
34+
self.v1.services(sid)
35+
end
36+
37+
##
38+
# Provide a user friendly representation
39+
def to_s
40+
'#<Twilio::REST::Proxy>'
41+
end
42+
end
43+
end
44+
end

lib/twilio-ruby/rest/proxy/v1.rb

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
##
2+
# This code was generated by
3+
# \ / _ _ _| _ _
4+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
5+
# / /
6+
7+
module Twilio
8+
module REST
9+
class Proxy
10+
class V1 < Version
11+
##
12+
# Initialize the V1 version of Proxy
13+
def initialize(domain)
14+
super
15+
@version = 'v1'
16+
@services = nil
17+
end
18+
19+
##
20+
# @param [String] sid A 34 character string that uniquely identifies this Service.
21+
# @return [Twilio::REST::Proxy::V1::ServiceInstance] if sid was passed.
22+
# @return [Twilio::REST::Proxy::V1::ServiceList]
23+
def services(sid=:unset)
24+
if sid.nil?
25+
raise ArgumentError, 'sid cannot be nil'
26+
elsif sid == :unset
27+
@services ||= ServiceList.new self
28+
else
29+
ServiceContext.new(self, sid)
30+
end
31+
end
32+
33+
##
34+
# Provide a user friendly representation
35+
def to_s
36+
'<Twilio::REST::Proxy::V1>'
37+
end
38+
end
39+
end
40+
end
41+
end

0 commit comments

Comments
 (0)