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/proxy.rb,
lib/twilio-ruby/rest/preview/studio.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/studio/flow.rb,
lib/twilio-ruby/rest/preview/acc_security.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/proxy/service.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/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/acc_security/service.rb,
lib/twilio-ruby/rest/preview/understand/assistant.rb,
lib/twilio-ruby/rest/preview/proxy/service/session.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/studio/flow/engagement.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/proxy/service/short_code.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb,
lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb,
lib/twilio-ruby/rest/preview/understand/assistant/query.rb,
lib/twilio-ruby/rest/preview/studio/flow/engagement/step.rb,
lib/twilio-ruby/rest/preview/understand/assistant/intent.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/understand/assistant/field_type.rb,
lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb,
lib/twilio-ruby/rest/preview/acc_security/service/verification.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/proxy/service/session/interaction.rb,
lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb,
lib/twilio-ruby/rest/preview/understand/assistant/intent/field.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/understand/assistant/intent/sample.rb,
lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.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/acc_security/service/verification_check.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/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/proxy/service/session/participant/message_interaction.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: AccSecurity, BulkExports, DeployedDevices, HostedNumbers, Marketplace, Proxy, Studio, Sync, 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
31
32
# 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
  @proxy = nil
  @studio = nil
  @acc_security = nil
  @sync = nil
  @understand = nil
  @wireless = nil
end

Instance Method Details

#acc_securityObject

Version acc_security of preview



72
73
74
# File 'lib/twilio-ruby/rest/preview.rb', line 72

def acc_security
  @acc_security ||= AccSecurity.new self
end

#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:



176
177
178
# File 'lib/twilio-ruby/rest/preview.rb', line 176

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:



124
125
126
# File 'lib/twilio-ruby/rest/preview.rb', line 124

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)

    A 34 character string that uniquely identifies this Add-on.

Returns:



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

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

#bulk_exportsObject

Version bulk_exports of preview



36
37
38
# File 'lib/twilio-ruby/rest/preview.rb', line 36

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:



184
185
186
# File 'lib/twilio-ruby/rest/preview.rb', line 184

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

#deployed_devicesObject

Version deployed_devices of preview



42
43
44
# File 'lib/twilio-ruby/rest/preview.rb', line 42

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 resource_type

Returns:



106
107
108
# File 'lib/twilio-ruby/rest/preview.rb', line 106

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 resource_type

Returns:



98
99
100
# File 'lib/twilio-ruby/rest/preview.rb', line 98

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:



115
116
117
# File 'lib/twilio-ruby/rest/preview.rb', line 115

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

#flows(sid = :unset) ⇒ Twilio::REST::Preview::Studio::FlowInstance, Twilio::REST::Preview::Studio::FlowList

Parameters:

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

    A 34 character string that uniquely identifies this Flow.

Returns:



167
168
169
# File 'lib/twilio-ruby/rest/preview.rb', line 167

def flows(sid=:unset)
  self.studio.flows(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:



133
134
135
# File 'lib/twilio-ruby/rest/preview.rb', line 133

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

#hosted_numbersObject

Version hosted_numbers of preview



48
49
50
# File 'lib/twilio-ruby/rest/preview.rb', line 48

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)

    34 character string that uniquely identifies the Add-on. This Sid can also be found in the Console on that specific Add-ons page as the ‘Available Add-on Sid’.

Returns:



151
152
153
# File 'lib/twilio-ruby/rest/preview.rb', line 151

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

#marketplaceObject

Version marketplace of preview



54
55
56
# File 'lib/twilio-ruby/rest/preview.rb', line 54

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

#proxyObject

Version proxy of preview



60
61
62
# File 'lib/twilio-ruby/rest/preview.rb', line 60

def proxy
  @proxy ||= Proxy.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:



192
193
194
# File 'lib/twilio-ruby/rest/preview.rb', line 192

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:



159
160
161
# File 'lib/twilio-ruby/rest/preview.rb', line 159

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:



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

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

#studioObject

Version studio of preview



66
67
68
# File 'lib/twilio-ruby/rest/preview.rb', line 66

def studio
  @studio ||= Studio.new self
end

#syncObject

Version sync of preview



78
79
80
# File 'lib/twilio-ruby/rest/preview.rb', line 78

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

#to_sObject

Provide a user friendly representation



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

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

#understandObject

Version understand of preview



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

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

#wirelessObject

Version wireless of preview



90
91
92
# File 'lib/twilio-ruby/rest/preview.rb', line 90

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