Class: Twilio::REST::Preview

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/preview.rb,
lib/twilio-ruby/rest/preview/sync.rb,
lib/twilio-ruby/rest/preview/wireless.rb,
lib/twilio-ruby/rest/preview/understand.rb,
lib/twilio-ruby/rest/preview/marketplace.rb,
lib/twilio-ruby/rest/preview/bulk_exports.rb,
lib/twilio-ruby/rest/preview/sync/service.rb,
lib/twilio-ruby/rest/preview/wireless/sim.rb,
lib/twilio-ruby/rest/preview/trusted_comms.rb,
lib/twilio-ruby/rest/preview/hosted_numbers.rb,
lib/twilio-ruby/rest/preview/deployed_devices.rb,
lib/twilio-ruby/rest/preview/wireless/command.rb,
lib/twilio-ruby/rest/preview/trusted_comms/cps.rb,
lib/twilio-ruby/rest/preview/wireless/rate_plan.rb,
lib/twilio-ruby/rest/preview/wireless/sim/usage.rb,
lib/twilio-ruby/rest/preview/bulk_exports/export.rb,
lib/twilio-ruby/rest/preview/understand/assistant.rb,
lib/twilio-ruby/rest/preview/sync/service/document.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_map.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_list.rb,
lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb,
lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb,
lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb,
lib/twilio-ruby/rest/preview/understand/assistant/query.rb,
lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb,
lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb,
lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb,
lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb,
lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb,
lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb,
lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb,
lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb,
lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb,
lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb,
lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb,
lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb,
lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb,
lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb,
lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb,
lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb,
lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb,
lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb,
lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb,
lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb,
lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb

Defined Under Namespace

Classes: BulkExports, DeployedDevices, HostedNumbers, Marketplace, Sync, TrustedComms, Understand, Wireless

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Preview

Initialize the Preview Domain


14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/twilio-ruby/rest/preview.rb', line 14

def initialize(twilio)
  super

  @base_url = 'https://preview.twilio.com'
  @host = 'preview.twilio.com'
  @port = 443

  # Versions
  @bulk_exports = nil
  @deployed_devices = nil
  @hosted_numbers = nil
  @marketplace = nil
  @sync = nil
  @understand = nil
  @wireless = nil
  @trusted_comms = nil
end

Instance Method Details

#assistants(sid = :unset) ⇒ Twilio::REST::Preview::Understand::AssistantInstance, Twilio::REST::Preview::Understand::AssistantList

Parameters:

  • sid (String) (defaults to: :unset)

    A 34 character string that uniquely identifies this resource.

Returns:


157
158
159
# File 'lib/twilio-ruby/rest/preview.rb', line 157

def assistants(sid=:unset)
  self.understand.assistants(sid)
end

#authorization_documents(sid = :unset) ⇒ Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentInstance, Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentList

Parameters:

  • sid (String) (defaults to: :unset)

    A 34 character string that uniquely identifies this AuthorizationDocument.

Returns:


112
113
114
# File 'lib/twilio-ruby/rest/preview.rb', line 112

def authorization_documents(sid=:unset)
  self.hosted_numbers.authorization_documents(sid)
end

#available_add_ons(sid = :unset) ⇒ Twilio::REST::Preview::Marketplace::AvailableAddOnInstance, Twilio::REST::Preview::Marketplace::AvailableAddOnList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the AvailableAddOn resource.

Returns:


130
131
132
# File 'lib/twilio-ruby/rest/preview.rb', line 130

def available_add_ons(sid=:unset)
  self.marketplace.available_add_ons(sid)
end

#branded_channels(sid = :unset) ⇒ Twilio::REST::Preview::TrustedComms::BrandedChannelInstance, Twilio::REST::Preview::TrustedComms::BrandedChannelList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique SID identifier of the Branded Channel.

Returns:


189
190
191
# File 'lib/twilio-ruby/rest/preview.rb', line 189

def branded_channels(sid=:unset)
  self.trusted_comms.branded_channels(sid)
end

#brands_informationTwilio::REST::Preview::TrustedComms::BrandsInformationInstance


195
196
197
# File 'lib/twilio-ruby/rest/preview.rb', line 195

def brands_information
  self.trusted_comms.brands_information()
end

#bulk_exportsObject

Version bulk_exports of preview


34
35
36
# File 'lib/twilio-ruby/rest/preview.rb', line 34

def bulk_exports
  @bulk_exports ||= BulkExports.new self
end

#commands(sid = :unset) ⇒ Twilio::REST::Preview::Wireless::CommandInstance, Twilio::REST::Preview::Wireless::CommandList

Parameters:

  • sid (String) (defaults to: :unset)

    The sid

Returns:


165
166
167
# File 'lib/twilio-ruby/rest/preview.rb', line 165

def commands(sid=:unset)
  self.wireless.commands(sid)
end

#cpsTwilio::REST::Preview::TrustedComms::CpsInstance


201
202
203
# File 'lib/twilio-ruby/rest/preview.rb', line 201

def cps
  self.trusted_comms.cps()
end

#current_callsTwilio::REST::Preview::TrustedComms::CurrentCallInstance


207
208
209
# File 'lib/twilio-ruby/rest/preview.rb', line 207

def current_calls
  self.trusted_comms.current_calls()
end

#deployed_devicesObject

Version deployed_devices of preview


40
41
42
# File 'lib/twilio-ruby/rest/preview.rb', line 40

def deployed_devices
  @deployed_devices ||= DeployedDevices.new self
end

#export_configuration(resource_type = :unset) ⇒ Twilio::REST::Preview::BulkExports::ExportConfigurationInstance, Twilio::REST::Preview::BulkExports::ExportConfigurationList

Parameters:

  • resource_type (String) (defaults to: :unset)

    The type of communication – Messages, Calls, Conferences, and Participants

Returns:


94
95
96
# File 'lib/twilio-ruby/rest/preview.rb', line 94

def export_configuration(resource_type=:unset)
  self.bulk_exports.export_configuration(resource_type)
end

#exports(resource_type = :unset) ⇒ Twilio::REST::Preview::BulkExports::ExportInstance, Twilio::REST::Preview::BulkExports::ExportList

Parameters:

  • resource_type (String) (defaults to: :unset)

    The type of communication – Messages, Calls, Conferences, and Participants

Returns:


85
86
87
# File 'lib/twilio-ruby/rest/preview.rb', line 85

def exports(resource_type=:unset)
  self.bulk_exports.exports(resource_type)
end

#fleets(sid = :unset) ⇒ Twilio::REST::Preview::DeployedDevices::FleetInstance, Twilio::REST::Preview::DeployedDevices::FleetList

Parameters:

  • sid (String) (defaults to: :unset)

    Contains a 34 character string that uniquely identifies this Fleet resource.

Returns:


103
104
105
# File 'lib/twilio-ruby/rest/preview.rb', line 103

def fleets(sid=:unset)
  self.deployed_devices.fleets(sid)
end

#hosted_number_orders(sid = :unset) ⇒ Twilio::REST::Preview::HostedNumbers::HostedNumberOrderInstance, Twilio::REST::Preview::HostedNumbers::HostedNumberOrderList

Parameters:

  • sid (String) (defaults to: :unset)

    A 34 character string that uniquely identifies this HostedNumberOrder.

Returns:


121
122
123
# File 'lib/twilio-ruby/rest/preview.rb', line 121

def hosted_number_orders(sid=:unset)
  self.hosted_numbers.hosted_number_orders(sid)
end

#hosted_numbersObject

Version hosted_numbers of preview


46
47
48
# File 'lib/twilio-ruby/rest/preview.rb', line 46

def hosted_numbers
  @hosted_numbers ||= HostedNumbers.new self
end

#installed_add_ons(sid = :unset) ⇒ Twilio::REST::Preview::Marketplace::InstalledAddOnInstance, Twilio::REST::Preview::Marketplace::InstalledAddOnList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the InstalledAddOn resource. This Sid can also be found in the Console on that specific Add-ons page as the 'Available Add-on Sid'.

Returns:


140
141
142
# File 'lib/twilio-ruby/rest/preview.rb', line 140

def installed_add_ons(sid=:unset)
  self.marketplace.installed_add_ons(sid)
end

#marketplaceObject

Version marketplace of preview


52
53
54
# File 'lib/twilio-ruby/rest/preview.rb', line 52

def marketplace
  @marketplace ||= Marketplace.new self
end

#rate_plans(sid = :unset) ⇒ Twilio::REST::Preview::Wireless::RatePlanInstance, Twilio::REST::Preview::Wireless::RatePlanList

Parameters:

  • sid (String) (defaults to: :unset)

    The sid

Returns:


173
174
175
# File 'lib/twilio-ruby/rest/preview.rb', line 173

def rate_plans(sid=:unset)
  self.wireless.rate_plans(sid)
end

#services(sid = :unset) ⇒ Twilio::REST::Preview::Sync::ServiceInstance, Twilio::REST::Preview::Sync::ServiceList

Parameters:

  • sid (String) (defaults to: :unset)

    The sid

Returns:


148
149
150
# File 'lib/twilio-ruby/rest/preview.rb', line 148

def services(sid=:unset)
  self.sync.services(sid)
end

#sims(sid = :unset) ⇒ Twilio::REST::Preview::Wireless::SimInstance, Twilio::REST::Preview::Wireless::SimList

Parameters:

  • sid (String) (defaults to: :unset)

    The sid

Returns:


181
182
183
# File 'lib/twilio-ruby/rest/preview.rb', line 181

def sims(sid=:unset)
  self.wireless.sims(sid)
end

#syncObject

Version sync of preview


58
59
60
# File 'lib/twilio-ruby/rest/preview.rb', line 58

def sync
  @sync ||= Sync.new self
end

#to_sObject

Provide a user friendly representation


213
214
215
# File 'lib/twilio-ruby/rest/preview.rb', line 213

def to_s
  '#<Twilio::REST::Preview>'
end

#trusted_commsObject

Version trusted_comms of preview


76
77
78
# File 'lib/twilio-ruby/rest/preview.rb', line 76

def trusted_comms
  @trusted_comms ||= TrustedComms.new self
end

#understandObject

Version understand of preview


64
65
66
# File 'lib/twilio-ruby/rest/preview.rb', line 64

def understand
  @understand ||= Understand.new self
end

#wirelessObject

Version wireless of preview


70
71
72
# File 'lib/twilio-ruby/rest/preview.rb', line 70

def wireless
  @wireless ||= Wireless.new self
end