Class: Twilio::REST::Messaging::V1
- Inherits:
-
Version
- Object
- Version
- Twilio::REST::Messaging::V1
show all
- Defined in:
- lib/twilio-ruby/rest/messaging/v1.rb,
lib/twilio-ruby/rest/messaging/v1/service.rb,
lib/twilio-ruby/rest/messaging/v1/usecase.rb,
lib/twilio-ruby/rest/messaging/v1/domain_certs.rb,
lib/twilio-ruby/rest/messaging/v1/deactivations.rb,
lib/twilio-ruby/rest/messaging/v1/domain_config.rb,
lib/twilio-ruby/rest/messaging/v1/external_campaign.rb,
lib/twilio-ruby/rest/messaging/v1/brand_registration.rb,
lib/twilio-ruby/rest/messaging/v1/service/short_code.rb,
lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb,
lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb,
lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb,
lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb,
lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb,
lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb,
lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb,
lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb,
lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb,
lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb,
lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb
Defined Under Namespace
Classes: BrandRegistrationContext, BrandRegistrationInstance, BrandRegistrationList, BrandRegistrationPage, DeactivationsContext, DeactivationsInstance, DeactivationsList, DeactivationsPage, DomainCertsContext, DomainCertsInstance, DomainCertsList, DomainCertsPage, DomainConfigContext, DomainConfigInstance, DomainConfigList, DomainConfigMessagingServiceContext, DomainConfigMessagingServiceInstance, DomainConfigMessagingServiceList, DomainConfigMessagingServicePage, DomainConfigPage, ExternalCampaignInstance, ExternalCampaignList, ExternalCampaignPage, LinkshorteningMessagingServiceContext, LinkshorteningMessagingServiceDomainAssociationContext, LinkshorteningMessagingServiceDomainAssociationInstance, LinkshorteningMessagingServiceDomainAssociationList, LinkshorteningMessagingServiceDomainAssociationPage, LinkshorteningMessagingServiceInstance, LinkshorteningMessagingServiceList, LinkshorteningMessagingServicePage, ServiceContext, ServiceInstance, ServiceList, ServicePage, TollfreeVerificationContext, TollfreeVerificationInstance, TollfreeVerificationList, TollfreeVerificationPage, UsecaseInstance, UsecaseList, UsecasePage
Instance Attribute Summary
Attributes inherited from Version
#domain
Instance Method Summary
collapse
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ V1
Initialize the V1 version of Messaging
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 21
def initialize(domain)
super
@version = 'v1'
@brand_registrations = nil
@deactivations = nil
@domain_certs = nil
@domain_config = nil
@domain_config_messaging_service = nil
@external_campaign = nil
@linkshortening_messaging_service = nil
@linkshortening_messaging_service_domain_association = nil
@services = nil
@tollfree_verifications = nil
@usecases = nil
end
|
Instance Method Details
41
42
43
44
45
46
47
48
49
50
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 41
def brand_registrations(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@brand_registrations ||= BrandRegistrationList.new self
else
BrandRegistrationContext.new(self, sid)
end
end
|
#deactivations ⇒ Twilio::REST::Messaging::V1::deactivationsContext
53
54
55
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 53
def deactivations
@deactivations ||= DeactivationsContext.new self
end
|
60
61
62
63
64
65
66
67
68
69
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 60
def domain_certs(domain_sid=:unset)
if domain_sid.nil?
raise ArgumentError, 'domain_sid cannot be nil'
end
if domain_sid == :unset
@domain_certs ||= DomainCertsList.new self
else
DomainCertsContext.new(self, domain_sid)
end
end
|
74
75
76
77
78
79
80
81
82
83
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 74
def domain_config(domain_sid=:unset)
if domain_sid.nil?
raise ArgumentError, 'domain_sid cannot be nil'
end
if domain_sid == :unset
@domain_config ||= DomainConfigList.new self
else
DomainConfigContext.new(self, domain_sid)
end
end
|
88
89
90
91
92
93
94
95
96
97
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 88
def domain_config_messaging_service(messaging_service_sid=:unset)
if messaging_service_sid.nil?
raise ArgumentError, 'messaging_service_sid cannot be nil'
end
if messaging_service_sid == :unset
@domain_config_messaging_service ||= DomainConfigMessagingServiceList.new self
else
DomainConfigMessagingServiceContext.new(self, messaging_service_sid)
end
end
|
100
101
102
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 100
def external_campaign
@external_campaign ||= ExternalCampaignList.new self
end
|
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 108
def linkshortening_messaging_service(domain_sid=:unset, messaging_service_sid=:unset)
if domain_sid.nil?
raise ArgumentError, 'domain_sid cannot be nil'
end
if messaging_service_sid.nil?
raise ArgumentError, 'messaging_service_sid cannot be nil'
end
if domain_sid == :unset && messaging_service_sid == :unset
@linkshortening_messaging_service ||= LinkshorteningMessagingServiceList.new self
else
LinkshorteningMessagingServiceContext.new(self, domain_sid, messaging_service_sid)
end
end
|
157
158
159
160
161
162
163
164
165
166
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 157
def services(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@services ||= ServiceList.new self
else
ServiceContext.new(self, sid)
end
end
|
#to_s ⇒ Object
Provide a user friendly representation
188
189
190
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 188
def to_s
'<Twilio::REST::Messaging::V1>';
end
|
171
172
173
174
175
176
177
178
179
180
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 171
def tollfree_verifications(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@tollfree_verifications ||= TollfreeVerificationList.new self
else
TollfreeVerificationContext.new(self, sid)
end
end
|
183
184
185
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 183
def usecases
@usecases ||= UsecaseList.new self
end
|