lib/twilio-ruby/rest/preview.rb in twilio-ruby-5.2.2 vs lib/twilio-ruby/rest/preview.rb in twilio-ruby-5.2.3
- old
+ new
@@ -15,103 +15,96 @@
@base_url = 'https://preview.twilio.com'
@host = 'preview.twilio.com'
@port = 443
# Versions
- @sync = nil
- @wireless = nil
+ @bulk_exports = nil
@deployed_devices = nil
+ @hosted_numbers = nil
@marketplace = nil
- @bulk_exports = nil
@proxy = nil
- @hosted_numbers = nil
+ @sync = nil
+ @wireless = nil
end
##
- # Version sync of preview
- def sync
- @sync ||= Sync.new self
+ # Version bulk_exports of preview
+ def bulk_exports
+ @bulk_exports ||= BulkExports.new self
end
##
- # Version wireless of preview
- def wireless
- @wireless ||= Wireless.new self
- end
-
- ##
# Version deployed_devices of preview
def deployed_devices
@deployed_devices ||= DeployedDevices.new self
end
##
+ # Version hosted_numbers of preview
+ def hosted_numbers
+ @hosted_numbers ||= HostedNumbers.new self
+ end
+
+ ##
# Version marketplace of preview
def marketplace
@marketplace ||= Marketplace.new self
end
##
- # Version bulk_exports of preview
- def bulk_exports
- @bulk_exports ||= BulkExports.new self
- end
-
- ##
# Version proxy of preview
def proxy
@proxy ||= Proxy.new self
end
##
- # Version hosted_numbers of preview
- def hosted_numbers
- @hosted_numbers ||= HostedNumbers.new self
+ # Version sync of preview
+ def sync
+ @sync ||= Sync.new self
end
##
- # @param [String] sid A 34 character string that uniquely identifies this Service.
- # @return [Twilio::REST::Preview::Proxy::ServiceInstance] if sid was passed.
- # @return [Twilio::REST::Preview::Proxy::ServiceList]
- def services(sid=:unset)
- self.proxy.services(sid)
+ # Version wireless of preview
+ def wireless
+ @wireless ||= Wireless.new self
end
##
- # @param [String] sid The sid
- # @return [Twilio::REST::Preview::Wireless::CommandInstance] if sid was passed.
- # @return [Twilio::REST::Preview::Wireless::CommandList]
- def commands(sid=:unset)
- self.wireless.commands(sid)
+ # @param [String] resource_type The resource_type
+ # @return [Twilio::REST::Preview::BulkExports::ExportInstance] if resource_type was passed.
+ # @return [Twilio::REST::Preview::BulkExports::ExportList]
+ def exports(resource_type=:unset)
+ self.bulk_exports.exports(resource_type)
end
##
- # @param [String] sid The sid
- # @return [Twilio::REST::Preview::Wireless::RatePlanInstance] if sid was passed.
- # @return [Twilio::REST::Preview::Wireless::RatePlanList]
- def rate_plans(sid=:unset)
- self.wireless.rate_plans(sid)
+ # @param [String] resource_type The resource_type
+ # @return [Twilio::REST::Preview::BulkExports::ExportConfigurationInstance] if resource_type was passed.
+ # @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]
+ def export_configuration(resource_type=:unset)
+ self.bulk_exports.export_configuration(resource_type)
end
##
- # @param [String] sid The sid
- # @return [Twilio::REST::Preview::Wireless::SimInstance] if sid was passed.
- # @return [Twilio::REST::Preview::Wireless::SimList]
- def sims(sid=:unset)
- self.wireless.sims(sid)
- end
-
- ##
# @param [String] sid Contains a 34 character string that uniquely identifies this
# Fleet resource.
# @return [Twilio::REST::Preview::DeployedDevices::FleetInstance] if sid was passed.
# @return [Twilio::REST::Preview::DeployedDevices::FleetList]
def fleets(sid=:unset)
self.deployed_devices.fleets(sid)
end
##
+ # @param [String] sid A 34 character string that uniquely identifies this
+ # HostedNumberOrder.
+ # @return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderInstance] if sid was passed.
+ # @return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderList]
+ def hosted_number_orders(sid=:unset)
+ self.hosted_numbers.hosted_number_orders(sid)
+ end
+
+ ##
# @param [String] sid A 34 character string that uniquely identifies this Add-on.
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnInstance] if sid was passed.
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
def available_add_ons(sid=:unset)
self.marketplace.available_add_ons(sid)
@@ -125,31 +118,38 @@
def installed_add_ons(sid=:unset)
self.marketplace.installed_add_ons(sid)
end
##
- # @param [String] resource_type The resource_type
- # @return [Twilio::REST::Preview::BulkExports::ExportInstance] if resource_type was passed.
- # @return [Twilio::REST::Preview::BulkExports::ExportList]
- def exports(resource_type=:unset)
- self.bulk_exports.exports(resource_type)
+ # @param [String] sid The sid
+ # @return [Twilio::REST::Preview::Sync::ServiceInstance] if sid was passed.
+ # @return [Twilio::REST::Preview::Sync::ServiceList]
+ def services(sid=:unset)
+ self.sync.services(sid)
end
##
- # @param [String] resource_type The resource_type
- # @return [Twilio::REST::Preview::BulkExports::ExportConfigurationInstance] if resource_type was passed.
- # @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]
- def export_configuration(resource_type=:unset)
- self.bulk_exports.export_configuration(resource_type)
+ # @param [String] sid The sid
+ # @return [Twilio::REST::Preview::Wireless::CommandInstance] if sid was passed.
+ # @return [Twilio::REST::Preview::Wireless::CommandList]
+ def commands(sid=:unset)
+ self.wireless.commands(sid)
end
##
- # @param [String] sid A 34 character string that uniquely identifies this
- # HostedNumberOrder.
- # @return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderInstance] if sid was passed.
- # @return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderList]
- def hosted_number_orders(sid=:unset)
- self.hosted_numbers.hosted_number_orders(sid)
+ # @param [String] sid The sid
+ # @return [Twilio::REST::Preview::Wireless::RatePlanInstance] if sid was passed.
+ # @return [Twilio::REST::Preview::Wireless::RatePlanList]
+ def rate_plans(sid=:unset)
+ self.wireless.rate_plans(sid)
+ end
+
+ ##
+ # @param [String] sid The sid
+ # @return [Twilio::REST::Preview::Wireless::SimInstance] if sid was passed.
+ # @return [Twilio::REST::Preview::Wireless::SimList]
+ def sims(sid=:unset)
+ self.wireless.sims(sid)
end
##
# Provide a user friendly representation
def to_s
\ No newline at end of file