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/request_managed_cert.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, RequestManagedCertContext, RequestManagedCertInstance, RequestManagedCertList, RequestManagedCertPage, ServiceContext, ServiceInstance, ServiceList, ServicePage, TollfreeVerificationContext, TollfreeVerificationInstance, TollfreeVerificationList, TollfreeVerificationPage, UsecaseInstance, UsecaseList, UsecasePage
Instance Attribute Summary
Attributes inherited from Version
#domain
Instance Method Summary
collapse
-
#brand_registrations(sid = :unset) ⇒ Twilio::REST::Messaging::V1::BrandRegistrationContext, Twilio::REST::Messaging::V1::BrandRegistrationList
-
#deactivations ⇒ Twilio::REST::Messaging::V1::deactivationsContext
-
#domain_certs(domain_sid = :unset) ⇒ Twilio::REST::Messaging::V1::DomainCertsContext, Twilio::REST::Messaging::V1::DomainCertsList
-
#domain_config(domain_sid = :unset) ⇒ Twilio::REST::Messaging::V1::DomainConfigContext, Twilio::REST::Messaging::V1::DomainConfigList
-
#domain_config_messaging_service(messaging_service_sid = :unset) ⇒ Twilio::REST::Messaging::V1::DomainConfigMessagingServiceContext, Twilio::REST::Messaging::V1::DomainConfigMessagingServiceList
-
#external_campaign ⇒ Twilio::REST::Messaging::V1::ExternalCampaignList
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of Messaging.
-
#linkshortening_messaging_service(domain_sid = :unset, messaging_service_sid = :unset) ⇒ Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceContext, Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceList
-
#linkshortening_messaging_service_domain_association(messaging_service_sid = :unset) ⇒ Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceDomainAssociationContext, Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceDomainAssociationList
-
#request_managed_cert(domain_sid = :unset) ⇒ Twilio::REST::Messaging::V1::RequestManagedCertContext, Twilio::REST::Messaging::V1::RequestManagedCertList
-
#services(sid = :unset) ⇒ Twilio::REST::Messaging::V1::ServiceContext, Twilio::REST::Messaging::V1::ServiceList
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#tollfree_verifications(sid = :unset) ⇒ Twilio::REST::Messaging::V1::TollfreeVerificationContext, Twilio::REST::Messaging::V1::TollfreeVerificationList
-
#usecases ⇒ Twilio::REST::Messaging::V1::UsecaseList
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
36
|
# 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
@request_managed_cert = nil
@services = nil
@tollfree_verifications = nil
@usecases = nil
end
|
Instance Method Details
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 42
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
54
55
56
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 54
def deactivations
@deactivations ||= DeactivationsContext.new self
end
|
61
62
63
64
65
66
67
68
69
70
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 61
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
|
75
76
77
78
79
80
81
82
83
84
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 75
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
|
89
90
91
92
93
94
95
96
97
98
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 89
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
|
101
102
103
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 101
def external_campaign
@external_campaign ||= ExternalCampaignList.new self
end
|
109
110
111
112
113
114
115
116
117
118
119
120
121
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 109
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
|
158
159
160
161
162
163
164
165
166
167
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 158
def request_managed_cert(domain_sid=:unset)
if domain_sid.nil?
raise ArgumentError, 'domain_sid cannot be nil'
end
if domain_sid == :unset
@request_managed_cert ||= RequestManagedCertList.new self
else
RequestManagedCertContext.new(self, domain_sid)
end
end
|
172
173
174
175
176
177
178
179
180
181
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 172
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
203
204
205
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 203
def to_s
'<Twilio::REST::Messaging::V1>';
end
|
186
187
188
189
190
191
192
193
194
195
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 186
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
|
198
199
200
|
# File 'lib/twilio-ruby/rest/messaging/v1.rb', line 198
def usecases
@usecases ||= UsecaseList.new self
end
|