Class: Twilio::REST::FlexApi::V1::ConfigurationInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/flex_api/v1/configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ ConfigurationInstance

Initialize the ConfigurationInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String)

    The SID of the Account that created this Configuration resource.

  • sid (String)

    The SID of the Call resource to fetch.



155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 155

def initialize(version, payload )
    super(version)
    
    # Marshaled Properties
    @properties = { 
        'account_sid' => payload['account_sid'],
        'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
        'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
        'attributes' => payload['attributes'],
        'status' => payload['status'],
        'taskrouter_workspace_sid' => payload['taskrouter_workspace_sid'],
        'taskrouter_target_workflow_sid' => payload['taskrouter_target_workflow_sid'],
        'taskrouter_target_taskqueue_sid' => payload['taskrouter_target_taskqueue_sid'],
        'taskrouter_taskqueues' => payload['taskrouter_taskqueues'],
        'taskrouter_skills' => payload['taskrouter_skills'],
        'taskrouter_worker_channels' => payload['taskrouter_worker_channels'],
        'taskrouter_worker_attributes' => payload['taskrouter_worker_attributes'],
        'taskrouter_offline_activity_sid' => payload['taskrouter_offline_activity_sid'],
        'runtime_domain' => payload['runtime_domain'],
        'messaging_service_instance_sid' => payload['messaging_service_instance_sid'],
        'chat_service_instance_sid' => payload['chat_service_instance_sid'],
        'flex_service_instance_sid' => payload['flex_service_instance_sid'],
        'flex_instance_sid' => payload['flex_instance_sid'],
        'ui_language' => payload['ui_language'],
        'ui_attributes' => payload['ui_attributes'],
        'ui_dependencies' => payload['ui_dependencies'],
        'ui_version' => payload['ui_version'],
        'service_version' => payload['service_version'],
        'call_recording_enabled' => payload['call_recording_enabled'],
        'call_recording_webhook_url' => payload['call_recording_webhook_url'],
        'crm_enabled' => payload['crm_enabled'],
        'crm_type' => payload['crm_type'],
        'crm_callback_url' => payload['crm_callback_url'],
        'crm_fallback_url' => payload['crm_fallback_url'],
        'crm_attributes' => payload['crm_attributes'],
        'public_attributes' => payload['public_attributes'],
        'plugin_service_enabled' => payload['plugin_service_enabled'],
        'plugin_service_attributes' => payload['plugin_service_attributes'],
        'integrations' => payload['integrations'],
        'outbound_call_flows' => payload['outbound_call_flows'],
        'serverless_service_sids' => payload['serverless_service_sids'],
        'queue_stats_configuration' => payload['queue_stats_configuration'],
        'notifications' => payload['notifications'],
        'markdown' => payload['markdown'],
        'url' => payload['url'],
        'flex_insights_hr' => payload['flex_insights_hr'],
        'flex_insights_drilldown' => payload['flex_insights_drilldown'],
        'flex_url' => payload['flex_url'],
        'channel_configs' => payload['channel_configs'],
        'debugger_integration' => payload['debugger_integration'],
        'flex_ui_status_report' => payload['flex_ui_status_report'],
        'agent_conv_end_methods' => payload['agent_conv_end_methods'],
        'citrix_voice_vdi' => payload['citrix_voice_vdi'],
        'offline_config' => payload['offline_config'],
    }

    # Context
    @instance_context = nil
    @params = {  }
end

Instance Method Details

#account_sidString

Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Configuration resource.

Returns:



229
230
231
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 229

def 
    @properties['account_sid']
end

#agent_conv_end_methodsHash

Returns Agent conversation end methods.

Returns:

  • (Hash)

    Agent conversation end methods.



505
506
507
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 505

def agent_conv_end_methods
    @properties['agent_conv_end_methods']
end

#attributesHash

Returns An object that contains application-specific data.

Returns:

  • (Hash)

    An object that contains application-specific data.



247
248
249
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 247

def attributes
    @properties['attributes']
end

#call_recording_enabledBoolean

Returns Whether call recording is enabled.

Returns:

  • (Boolean)

    Whether call recording is enabled.



367
368
369
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 367

def call_recording_enabled
    @properties['call_recording_enabled']
end

#call_recording_webhook_urlString

Returns The call recording webhook URL.

Returns:

  • (String)

    The call recording webhook URL.



373
374
375
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 373

def call_recording_webhook_url
    @properties['call_recording_webhook_url']
end

#channel_configsArray<Hash>

Returns Settings for different limits for Flex Conversations channels attachments.

Returns:

  • (Array<Hash>)

    Settings for different limits for Flex Conversations channels attachments.



487
488
489
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 487

def channel_configs
    @properties['channel_configs']
end

#chat_service_instance_sidString

Returns The SID of the chat service this user belongs to.

Returns:

  • (String)

    The SID of the chat service this user belongs to.



319
320
321
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 319

def chat_service_instance_sid
    @properties['chat_service_instance_sid']
end

#citrix_voice_vdiHash

Returns Citrix voice vdi configuration and settings.

Returns:

  • (Hash)

    Citrix voice vdi configuration and settings.



511
512
513
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 511

def citrix_voice_vdi
    @properties['citrix_voice_vdi']
end

#contextConfigurationContext

Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context

Returns:



220
221
222
223
224
225
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 220

def context
    unless @instance_context
        @instance_context = ConfigurationContext.new(@version )
    end
    @instance_context
end

#crm_attributesHash

Returns An object that contains the CRM attributes.

Returns:

  • (Hash)

    An object that contains the CRM attributes.



403
404
405
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 403

def crm_attributes
    @properties['crm_attributes']
end

#crm_callback_urlString

Returns The CRM Callback URL.

Returns:

  • (String)

    The CRM Callback URL.



391
392
393
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 391

def crm_callback_url
    @properties['crm_callback_url']
end

#crm_enabledBoolean

Returns Whether CRM is present for Flex.

Returns:

  • (Boolean)

    Whether CRM is present for Flex.



379
380
381
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 379

def crm_enabled
    @properties['crm_enabled']
end

#crm_fallback_urlString

Returns The CRM Fallback URL.

Returns:

  • (String)

    The CRM Fallback URL.



397
398
399
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 397

def crm_fallback_url
    @properties['crm_fallback_url']
end

#crm_typeString

Returns The CRM type.

Returns:

  • (String)

    The CRM type.



385
386
387
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 385

def crm_type
    @properties['crm_type']
end

#date_createdTime

Returns The date and time in GMT when the Configuration resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.

Returns:



235
236
237
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 235

def date_created
    @properties['date_created']
end

#date_updatedTime

Returns The date and time in GMT when the Configuration resource was last updated specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.

Returns:

  • (Time)

    The date and time in GMT when the Configuration resource was last updated specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.



241
242
243
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 241

def date_updated
    @properties['date_updated']
end

#debugger_integrationHash

Returns Configurable parameters for Debugger Integration.

Returns:

  • (Hash)

    Configurable parameters for Debugger Integration.



493
494
495
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 493

def debugger_integration
    @properties['debugger_integration']
end

#fetch(ui_version: :unset) ⇒ ConfigurationInstance

Fetch the ConfigurationInstance

Parameters:

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

    The Pinned UI version of the Configuration resource to fetch.

Returns:



525
526
527
528
529
530
531
532
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 525

def fetch(
    ui_version: :unset
)

    context.fetch(
        ui_version: ui_version, 
    )
end

#flex_insights_drilldownBoolean

Returns Setting this to true will redirect Flex UI to the URL set in flex_url.

Returns:

  • (Boolean)

    Setting this to true will redirect Flex UI to the URL set in flex_url



475
476
477
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 475

def flex_insights_drilldown
    @properties['flex_insights_drilldown']
end

#flex_insights_hrHash

Returns Object with enabled/disabled flag with list of workspaces.

Returns:

  • (Hash)

    Object with enabled/disabled flag with list of workspaces.



469
470
471
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 469

def flex_insights_hr
    @properties['flex_insights_hr']
end

#flex_instance_sidString

Returns The SID of the Flex instance.

Returns:

  • (String)

    The SID of the Flex instance.



331
332
333
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 331

def flex_instance_sid
    @properties['flex_instance_sid']
end

#flex_service_instance_sidString

Returns The SID of the Flex service instance.

Returns:

  • (String)

    The SID of the Flex service instance.



325
326
327
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 325

def flex_service_instance_sid
    @properties['flex_service_instance_sid']
end

#flex_ui_status_reportHash

Returns Configurable parameters for Flex UI Status report.

Returns:

  • (Hash)

    Configurable parameters for Flex UI Status report.



499
500
501
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 499

def flex_ui_status_report
    @properties['flex_ui_status_report']
end

#flex_urlString

Returns URL to redirect to in case drilldown is enabled.

Returns:

  • (String)

    URL to redirect to in case drilldown is enabled.



481
482
483
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 481

def flex_url
    @properties['flex_url']
end

#inspectObject

Provide a detailed, user friendly representation



554
555
556
557
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 554

def inspect
    values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
    "<Twilio.FlexApi.V1.ConfigurationInstance #{values}>"
end

#integrationsArray<Hash>

Returns A list of objects that contain the configurations for the Integrations supported in this configuration.

Returns:

  • (Array<Hash>)

    A list of objects that contain the configurations for the Integrations supported in this configuration.



427
428
429
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 427

def integrations
    @properties['integrations']
end

#markdownHash

Returns Configurable parameters for Markdown.

Returns:

  • (Hash)

    Configurable parameters for Markdown.



457
458
459
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 457

def markdown
    @properties['markdown']
end

#messaging_service_instance_sidString

Returns The SID of the Messaging service instance.

Returns:

  • (String)

    The SID of the Messaging service instance.



313
314
315
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 313

def messaging_service_instance_sid
    @properties['messaging_service_instance_sid']
end

#notificationsHash

Returns Configurable parameters for Notifications.

Returns:

  • (Hash)

    Configurable parameters for Notifications.



451
452
453
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 451

def notifications
    @properties['notifications']
end

#offline_configHash

Returns Presence and presence ttl configuration.

Returns:

  • (Hash)

    Presence and presence ttl configuration



517
518
519
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 517

def offline_config
    @properties['offline_config']
end

#outbound_call_flowsHash

Returns The list of outbound call flows.

Returns:

  • (Hash)

    The list of outbound call flows.



433
434
435
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 433

def outbound_call_flows
    @properties['outbound_call_flows']
end

#plugin_service_attributesHash

Returns The plugin service attributes.

Returns:

  • (Hash)

    The plugin service attributes.



421
422
423
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 421

def plugin_service_attributes
    @properties['plugin_service_attributes']
end

#plugin_service_enabledBoolean

Returns Whether the plugin service enabled.

Returns:

  • (Boolean)

    Whether the plugin service enabled.



415
416
417
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 415

def plugin_service_enabled
    @properties['plugin_service_enabled']
end

#public_attributesHash

Returns The list of public attributes, which are visible to unauthenticated clients.

Returns:

  • (Hash)

    The list of public attributes, which are visible to unauthenticated clients.



409
410
411
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 409

def public_attributes
    @properties['public_attributes']
end

#queue_stats_configurationHash

Returns Configurable parameters for Queues Statistics.

Returns:

  • (Hash)

    Configurable parameters for Queues Statistics.



445
446
447
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 445

def queue_stats_configuration
    @properties['queue_stats_configuration']
end

#runtime_domainString

Returns The URL where the Flex instance is hosted.

Returns:

  • (String)

    The URL where the Flex instance is hosted.



307
308
309
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 307

def runtime_domain
    @properties['runtime_domain']
end

#serverless_service_sidsArray<String>

Returns The list of serverless service SIDs.

Returns:

  • (Array<String>)

    The list of serverless service SIDs.



439
440
441
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 439

def serverless_service_sids
    @properties['serverless_service_sids']
end

#service_versionString

Returns The Flex Service version.

Returns:

  • (String)

    The Flex Service version.



361
362
363
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 361

def service_version
    @properties['service_version']
end

#statusStatus

Returns:

  • (Status)


253
254
255
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 253

def status
    @properties['status']
end

#taskrouter_offline_activity_sidString

Returns The TaskRouter SID of the offline activity.

Returns:

  • (String)

    The TaskRouter SID of the offline activity.



301
302
303
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 301

def taskrouter_offline_activity_sid
    @properties['taskrouter_offline_activity_sid']
end

#taskrouter_skillsArray<Hash>

Returns The Skill description for TaskRouter workers.

Returns:

  • (Array<Hash>)

    The Skill description for TaskRouter workers.



283
284
285
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 283

def taskrouter_skills
    @properties['taskrouter_skills']
end

#taskrouter_target_taskqueue_sidString

Returns The SID of the TaskRouter Target TaskQueue.

Returns:

  • (String)

    The SID of the TaskRouter Target TaskQueue.



271
272
273
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 271

def taskrouter_target_taskqueue_sid
    @properties['taskrouter_target_taskqueue_sid']
end

#taskrouter_target_workflow_sidString

Returns The SID of the TaskRouter target Workflow.

Returns:

  • (String)

    The SID of the TaskRouter target Workflow.



265
266
267
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 265

def taskrouter_target_workflow_sid
    @properties['taskrouter_target_workflow_sid']
end

#taskrouter_taskqueuesArray<Hash>

Returns The list of TaskRouter TaskQueues.

Returns:

  • (Array<Hash>)

    The list of TaskRouter TaskQueues.



277
278
279
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 277

def taskrouter_taskqueues
    @properties['taskrouter_taskqueues']
end

#taskrouter_worker_attributesHash

Returns The TaskRouter Worker attributes.

Returns:

  • (Hash)

    The TaskRouter Worker attributes.



295
296
297
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 295

def taskrouter_worker_attributes
    @properties['taskrouter_worker_attributes']
end

#taskrouter_worker_channelsHash

Returns The TaskRouter default channel capacities and availability for workers.

Returns:

  • (Hash)

    The TaskRouter default channel capacities and availability for workers.



289
290
291
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 289

def taskrouter_worker_channels
    @properties['taskrouter_worker_channels']
end

#taskrouter_workspace_sidString

Returns The SID of the TaskRouter Workspace.

Returns:

  • (String)

    The SID of the TaskRouter Workspace.



259
260
261
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 259

def taskrouter_workspace_sid
    @properties['taskrouter_workspace_sid']
end

#to_sObject

Provide a user friendly representation



547
548
549
550
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 547

def to_s
    values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
    "<Twilio.FlexApi.V1.ConfigurationInstance #{values}>"
end

#ui_attributesHash

Returns The object that describes Flex UI characteristics and settings.

Returns:

  • (Hash)

    The object that describes Flex UI characteristics and settings.



343
344
345
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 343

def ui_attributes
    @properties['ui_attributes']
end

#ui_dependenciesHash

Returns The object that defines the NPM packages and versions to be used in Hosted Flex.

Returns:

  • (Hash)

    The object that defines the NPM packages and versions to be used in Hosted Flex.



349
350
351
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 349

def ui_dependencies
    @properties['ui_dependencies']
end

#ui_languageString

Returns The primary language of the Flex UI.

Returns:

  • (String)

    The primary language of the Flex UI.



337
338
339
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 337

def ui_language
    @properties['ui_language']
end

#ui_versionString

Returns The Pinned UI version.

Returns:

  • (String)

    The Pinned UI version.



355
356
357
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 355

def ui_version
    @properties['ui_version']
end

#update(body: :unset) ⇒ ConfigurationInstance

Update the ConfigurationInstance

Parameters:

  • body (Object) (defaults to: :unset)

Returns:



538
539
540
541
542
543
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 538

def update(body: :unset
)

    context.update(
    )
end

#urlString

Returns The absolute URL of the Configuration resource.

Returns:

  • (String)

    The absolute URL of the Configuration resource.



463
464
465
# File 'lib/twilio-ruby/rest/flex_api/v1/configuration.rb', line 463

def url
    @properties['url']
end