Class: SignalWire::REST::Namespaces::FabricNamespace
- Inherits:
-
Object
- Object
- SignalWire::REST::Namespaces::FabricNamespace
- Defined in:
- lib/signalwire/rest/namespaces/fabric.rb
Overview
Fabric API namespace grouping all resource types.
Instance Attribute Summary collapse
-
#addresses ⇒ Object
readonly
Returns the value of attribute addresses.
-
#ai_agents ⇒ Object
readonly
Returns the value of attribute ai_agents.
-
#call_flows ⇒ Object
readonly
Returns the value of attribute call_flows.
-
#conference_rooms ⇒ Object
readonly
Returns the value of attribute conference_rooms.
-
#cxml_applications ⇒ Object
readonly
Returns the value of attribute cxml_applications.
-
#cxml_scripts ⇒ Object
readonly
Returns the value of attribute cxml_scripts.
-
#cxml_webhooks ⇒ Object
readonly
Returns the value of attribute cxml_webhooks.
-
#freeswitch_connectors ⇒ Object
readonly
Returns the value of attribute freeswitch_connectors.
-
#relay_applications ⇒ Object
readonly
Returns the value of attribute relay_applications.
-
#resources ⇒ Object
readonly
Returns the value of attribute resources.
-
#sip_endpoints ⇒ Object
readonly
Returns the value of attribute sip_endpoints.
-
#sip_gateways ⇒ Object
readonly
Returns the value of attribute sip_gateways.
-
#subscribers ⇒ Object
readonly
Returns the value of attribute subscribers.
-
#swml_scripts ⇒ Object
readonly
Returns the value of attribute swml_scripts.
-
#swml_webhooks ⇒ Object
readonly
Returns the value of attribute swml_webhooks.
-
#tokens ⇒ Object
readonly
Returns the value of attribute tokens.
Instance Method Summary collapse
-
#initialize(http) ⇒ FabricNamespace
constructor
A new instance of FabricNamespace.
Constructor Details
#initialize(http) ⇒ FabricNamespace
Returns a new instance of FabricNamespace.
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 204 def initialize(http) base = '/api/fabric/resources' # PUT-update resources @swml_scripts = FabricResourcePUT.new(http, "#{base}/swml_scripts") @relay_applications = FabricResourcePUT.new(http, "#{base}/relay_applications") @call_flows = CallFlowsResource.new(http, "#{base}/call_flows") @conference_rooms = ConferenceRoomsResource.new(http, "#{base}/conference_rooms") @freeswitch_connectors = FabricResourcePUT.new(http, "#{base}/freeswitch_connectors") @subscribers = SubscribersResource.new(http, "#{base}/subscribers") @sip_endpoints = FabricResourcePUT.new(http, "#{base}/sip_endpoints") @cxml_scripts = FabricResourcePUT.new(http, "#{base}/cxml_scripts") @cxml_applications = CxmlApplicationsResource.new(http, "#{base}/cxml_applications") # PATCH-update resources # swml_webhooks and cxml_webhooks are normally auto-materialized by # phone_numbers.set_swml_webhook / set_cxml_webhook. Direct create # still works for backcompat but emits a deprecation warning. @swml_webhooks = SwmlWebhooksResource.new(http, "#{base}/swml_webhooks") @ai_agents = FabricResource.new(http, "#{base}/ai_agents") @sip_gateways = FabricResource.new(http, "#{base}/sip_gateways") @cxml_webhooks = CxmlWebhooksResource.new(http, "#{base}/cxml_webhooks") # Special resources @resources = GenericResources.new(http, base) @addresses = FabricAddresses.new(http, '/api/fabric/addresses') @tokens = FabricTokens.new(http) end |
Instance Attribute Details
#addresses ⇒ Object (readonly)
Returns the value of attribute addresses.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def addresses @addresses end |
#ai_agents ⇒ Object (readonly)
Returns the value of attribute ai_agents.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def ai_agents @ai_agents end |
#call_flows ⇒ Object (readonly)
Returns the value of attribute call_flows.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def call_flows @call_flows end |
#conference_rooms ⇒ Object (readonly)
Returns the value of attribute conference_rooms.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def conference_rooms @conference_rooms end |
#cxml_applications ⇒ Object (readonly)
Returns the value of attribute cxml_applications.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def cxml_applications @cxml_applications end |
#cxml_scripts ⇒ Object (readonly)
Returns the value of attribute cxml_scripts.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def cxml_scripts @cxml_scripts end |
#cxml_webhooks ⇒ Object (readonly)
Returns the value of attribute cxml_webhooks.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def cxml_webhooks @cxml_webhooks end |
#freeswitch_connectors ⇒ Object (readonly)
Returns the value of attribute freeswitch_connectors.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def freeswitch_connectors @freeswitch_connectors end |
#relay_applications ⇒ Object (readonly)
Returns the value of attribute relay_applications.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def relay_applications @relay_applications end |
#resources ⇒ Object (readonly)
Returns the value of attribute resources.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def resources @resources end |
#sip_endpoints ⇒ Object (readonly)
Returns the value of attribute sip_endpoints.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def sip_endpoints @sip_endpoints end |
#sip_gateways ⇒ Object (readonly)
Returns the value of attribute sip_gateways.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def sip_gateways @sip_gateways end |
#subscribers ⇒ Object (readonly)
Returns the value of attribute subscribers.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def subscribers @subscribers end |
#swml_scripts ⇒ Object (readonly)
Returns the value of attribute swml_scripts.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def swml_scripts @swml_scripts end |
#swml_webhooks ⇒ Object (readonly)
Returns the value of attribute swml_webhooks.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def swml_webhooks @swml_webhooks end |
#tokens ⇒ Object (readonly)
Returns the value of attribute tokens.
198 199 200 |
# File 'lib/signalwire/rest/namespaces/fabric.rb', line 198 def tokens @tokens end |