lib/twilio-ruby/rest/messaging/v1.rb in twilio-ruby-6.0.0 vs lib/twilio-ruby/rest/messaging/v1.rb in twilio-ruby-6.0.1

- old
+ new

@@ -26,10 +26,11 @@ @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 @usecases = nil end ## @@ -130,9 +131,23 @@ 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 + ## + # @param [String] messaging_service_sid Unique string used to identify the Messaging service that this domain should be associated with. + # @return [Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceDomainAssociationContext] if messagingServiceSid was passed. + # @return [Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceDomainAssociationList] + def linkshortening_messaging_service_domain_association(messaging_service_sid=:unset) + if messaging_service_sid.nil? + raise ArgumentError, 'messaging_service_sid cannot be nil' + end + if messaging_service_sid == :unset + @linkshortening_messaging_service_domain_association ||= LinkshorteningMessagingServiceDomainAssociationList.new self + else + LinkshorteningMessagingServiceDomainAssociationContext.new(self, messaging_service_sid) end end ## # @param [String] sid The SID of the Service resource to fetch. # @return [Twilio::REST::Messaging::V1::ServiceContext] if sid was passed.