twilio-ruby 5.67.3 → 5.74.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/pr-lint.yml +8 -2
- data/.github/workflows/test-and-deploy.yml +3 -3
- data/CHANGES.md +288 -0
- data/LICENSE +1 -1
- data/Makefile +6 -2
- data/PULL_REQUEST_TEMPLATE.md +1 -1
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +19 -3
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +22 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +160 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +251 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +59 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +56 -17
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +17 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +2 -2
- data/lib/twilio-ruby/rest/client.rb +28 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +195 -0
- data/lib/twilio-ruby/rest/content/v1/content.rb +346 -0
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +254 -0
- data/lib/twilio-ruby/rest/content/v1.rb +52 -0
- data/lib/twilio-ruby/rest/content.rb +53 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +17 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +17 -2
- data/lib/twilio-ruby/rest/events/v1/schema/version.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +397 -0
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +314 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +394 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +313 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +390 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +413 -0
- data/lib/twilio-ruby/rest/{preview/trusted_comms/brands_information.rb → flex_api/v1/insights_session.rb} +58 -55
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answersets.rb +144 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +130 -0
- data/lib/twilio-ruby/rest/{preview/trusted_comms/cps.rb → flex_api/v1/insights_user_roles.rb} +42 -54
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +22 -1
- data/lib/twilio-ruby/rest/flex_api/v1.rb +115 -0
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +133 -0
- data/lib/twilio-ruby/rest/flex_api/v2.rb +35 -0
- data/lib/twilio-ruby/rest/flex_api.rb +83 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +322 -0
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +14 -0
- data/lib/twilio-ruby/rest/insights/v1/call.rb +16 -8
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +3 -3
- data/lib/twilio-ruby/rest/insights/v1.rb +0 -16
- data/lib/twilio-ruby/rest/insights.rb +0 -8
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +94 -12
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +1 -1
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +2 -9
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +5 -5
- data/lib/twilio-ruby/rest/messaging/v1/domain_cert.rb +257 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +267 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +98 -3
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +709 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +50 -0
- data/lib/twilio-ruby/rest/messaging.rb +26 -0
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +317 -0
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +310 -0
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +192 -0
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +330 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +342 -0
- data/lib/twilio-ruby/rest/{preview/bulk_exports/export/day.rb → microvisor/v1/device/device_secret.rb} +125 -84
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +393 -0
- data/lib/twilio-ruby/rest/microvisor/v1.rb +92 -0
- data/lib/twilio-ruby/rest/microvisor.rb +70 -0
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +153 -0
- data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +162 -0
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +242 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +157 -0
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +193 -0
- data/lib/twilio-ruby/rest/oauth/v1.rb +63 -0
- data/lib/twilio-ruby/rest/oauth.rb +68 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +1 -1
- data/lib/twilio-ruby/rest/preview.rb +0 -58
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -14
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +5 -46
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +235 -0
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +231 -0
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +235 -0
- data/lib/twilio-ruby/rest/routes/v2.rb +76 -0
- data/lib/twilio-ruby/rest/routes.rb +62 -0
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +21 -1
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +17 -7
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +5 -2
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +247 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +195 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +20 -0
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +3 -3
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
- data/lib/twilio-ruby/rest/supersim.rb +6 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +18 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +5 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +10 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +9 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +13 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +13 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +3 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +215 -0
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +1 -9
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +1 -7
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -6
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +14 -10
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +8 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/template.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +4 -4
- data/lib/twilio-ruby/rest/verify/v2.rb +18 -0
- data/lib/twilio-ruby/rest/verify.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb +240 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +16 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +4 -4
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +2 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +2 -2
- data/lib/twilio-ruby/security/request_validator.rb +1 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +135 -35
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +1 -1
- metadata +52 -17
- data/lib/twilio-ruby/rest/insights/v1/annotation.rb +0 -271
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +0 -275
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +0 -249
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +0 -251
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +0 -234
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +0 -62
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb +0 -165
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb +0 -225
- data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +0 -277
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -65
@@ -1,234 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# \ / _ _ _| _ _
|
4
|
-
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
-
# / /
|
6
|
-
#
|
7
|
-
# frozen_string_literal: true
|
8
|
-
|
9
|
-
module Twilio
|
10
|
-
module REST
|
11
|
-
class Preview < Domain
|
12
|
-
class BulkExports < Version
|
13
|
-
##
|
14
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
15
|
-
class ExportConfigurationList < ListResource
|
16
|
-
##
|
17
|
-
# Initialize the ExportConfigurationList
|
18
|
-
# @param [Version] version Version that contains the resource
|
19
|
-
# @return [ExportConfigurationList] ExportConfigurationList
|
20
|
-
def initialize(version)
|
21
|
-
super(version)
|
22
|
-
|
23
|
-
# Path Solution
|
24
|
-
@solution = {}
|
25
|
-
end
|
26
|
-
|
27
|
-
##
|
28
|
-
# Provide a user friendly representation
|
29
|
-
def to_s
|
30
|
-
'#<Twilio.Preview.BulkExports.ExportConfigurationList>'
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
##
|
35
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
36
|
-
class ExportConfigurationPage < Page
|
37
|
-
##
|
38
|
-
# Initialize the ExportConfigurationPage
|
39
|
-
# @param [Version] version Version that contains the resource
|
40
|
-
# @param [Response] response Response from the API
|
41
|
-
# @param [Hash] solution Path solution for the resource
|
42
|
-
# @return [ExportConfigurationPage] ExportConfigurationPage
|
43
|
-
def initialize(version, response, solution)
|
44
|
-
super(version, response)
|
45
|
-
|
46
|
-
# Path Solution
|
47
|
-
@solution = solution
|
48
|
-
end
|
49
|
-
|
50
|
-
##
|
51
|
-
# Build an instance of ExportConfigurationInstance
|
52
|
-
# @param [Hash] payload Payload response from the API
|
53
|
-
# @return [ExportConfigurationInstance] ExportConfigurationInstance
|
54
|
-
def get_instance(payload)
|
55
|
-
ExportConfigurationInstance.new(@version, payload, )
|
56
|
-
end
|
57
|
-
|
58
|
-
##
|
59
|
-
# Provide a user friendly representation
|
60
|
-
def to_s
|
61
|
-
'<Twilio.Preview.BulkExports.ExportConfigurationPage>'
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
##
|
66
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
67
|
-
class ExportConfigurationContext < InstanceContext
|
68
|
-
##
|
69
|
-
# Initialize the ExportConfigurationContext
|
70
|
-
# @param [Version] version Version that contains the resource
|
71
|
-
# @param [String] resource_type The type of communication – Messages, Calls,
|
72
|
-
# Conferences, and Participants
|
73
|
-
# @return [ExportConfigurationContext] ExportConfigurationContext
|
74
|
-
def initialize(version, resource_type)
|
75
|
-
super(version)
|
76
|
-
|
77
|
-
# Path Solution
|
78
|
-
@solution = {resource_type: resource_type, }
|
79
|
-
@uri = "/Exports/#{@solution[:resource_type]}/Configuration"
|
80
|
-
end
|
81
|
-
|
82
|
-
##
|
83
|
-
# Fetch the ExportConfigurationInstance
|
84
|
-
# @return [ExportConfigurationInstance] Fetched ExportConfigurationInstance
|
85
|
-
def fetch
|
86
|
-
payload = @version.fetch('GET', @uri)
|
87
|
-
|
88
|
-
ExportConfigurationInstance.new(@version, payload, resource_type: @solution[:resource_type], )
|
89
|
-
end
|
90
|
-
|
91
|
-
##
|
92
|
-
# Update the ExportConfigurationInstance
|
93
|
-
# @param [Boolean] enabled If true, Twilio will automatically generate every day's
|
94
|
-
# file when the day is over.
|
95
|
-
# @param [String] webhook_url Stores the URL destination for the method specified
|
96
|
-
# in webhook_method.
|
97
|
-
# @param [String] webhook_method Sets whether Twilio should call a webhook URL
|
98
|
-
# when the automatic generation is complete, using GET or POST. The actual
|
99
|
-
# destination is set in the webhook_url
|
100
|
-
# @return [ExportConfigurationInstance] Updated ExportConfigurationInstance
|
101
|
-
def update(enabled: :unset, webhook_url: :unset, webhook_method: :unset)
|
102
|
-
data = Twilio::Values.of({
|
103
|
-
'Enabled' => enabled,
|
104
|
-
'WebhookUrl' => webhook_url,
|
105
|
-
'WebhookMethod' => webhook_method,
|
106
|
-
})
|
107
|
-
|
108
|
-
payload = @version.update('POST', @uri, data: data)
|
109
|
-
|
110
|
-
ExportConfigurationInstance.new(@version, payload, resource_type: @solution[:resource_type], )
|
111
|
-
end
|
112
|
-
|
113
|
-
##
|
114
|
-
# Provide a user friendly representation
|
115
|
-
def to_s
|
116
|
-
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
117
|
-
"#<Twilio.Preview.BulkExports.ExportConfigurationContext #{context}>"
|
118
|
-
end
|
119
|
-
|
120
|
-
##
|
121
|
-
# Provide a detailed, user friendly representation
|
122
|
-
def inspect
|
123
|
-
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
124
|
-
"#<Twilio.Preview.BulkExports.ExportConfigurationContext #{context}>"
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
|
-
##
|
129
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
130
|
-
class ExportConfigurationInstance < InstanceResource
|
131
|
-
##
|
132
|
-
# Initialize the ExportConfigurationInstance
|
133
|
-
# @param [Version] version Version that contains the resource
|
134
|
-
# @param [Hash] payload payload that contains response from Twilio
|
135
|
-
# @param [String] resource_type The type of communication – Messages, Calls,
|
136
|
-
# Conferences, and Participants
|
137
|
-
# @return [ExportConfigurationInstance] ExportConfigurationInstance
|
138
|
-
def initialize(version, payload, resource_type: nil)
|
139
|
-
super(version)
|
140
|
-
|
141
|
-
# Marshaled Properties
|
142
|
-
@properties = {
|
143
|
-
'enabled' => payload['enabled'],
|
144
|
-
'webhook_url' => payload['webhook_url'],
|
145
|
-
'webhook_method' => payload['webhook_method'],
|
146
|
-
'resource_type' => payload['resource_type'],
|
147
|
-
'url' => payload['url'],
|
148
|
-
}
|
149
|
-
|
150
|
-
# Context
|
151
|
-
@instance_context = nil
|
152
|
-
@params = {'resource_type' => resource_type || @properties['resource_type'], }
|
153
|
-
end
|
154
|
-
|
155
|
-
##
|
156
|
-
# Generate an instance context for the instance, the context is capable of
|
157
|
-
# performing various actions. All instance actions are proxied to the context
|
158
|
-
# @return [ExportConfigurationContext] ExportConfigurationContext for this ExportConfigurationInstance
|
159
|
-
def context
|
160
|
-
unless @instance_context
|
161
|
-
@instance_context = ExportConfigurationContext.new(@version, @params['resource_type'], )
|
162
|
-
end
|
163
|
-
@instance_context
|
164
|
-
end
|
165
|
-
|
166
|
-
##
|
167
|
-
# @return [Boolean] Whether files are automatically generated
|
168
|
-
def enabled
|
169
|
-
@properties['enabled']
|
170
|
-
end
|
171
|
-
|
172
|
-
##
|
173
|
-
# @return [String] URL targeted at export
|
174
|
-
def webhook_url
|
175
|
-
@properties['webhook_url']
|
176
|
-
end
|
177
|
-
|
178
|
-
##
|
179
|
-
# @return [String] Whether to GET or POST to the webhook url
|
180
|
-
def webhook_method
|
181
|
-
@properties['webhook_method']
|
182
|
-
end
|
183
|
-
|
184
|
-
##
|
185
|
-
# @return [String] The type of communication – Messages, Calls, Conferences, and Participants
|
186
|
-
def resource_type
|
187
|
-
@properties['resource_type']
|
188
|
-
end
|
189
|
-
|
190
|
-
##
|
191
|
-
# @return [String] The URL of this resource.
|
192
|
-
def url
|
193
|
-
@properties['url']
|
194
|
-
end
|
195
|
-
|
196
|
-
##
|
197
|
-
# Fetch the ExportConfigurationInstance
|
198
|
-
# @return [ExportConfigurationInstance] Fetched ExportConfigurationInstance
|
199
|
-
def fetch
|
200
|
-
context.fetch
|
201
|
-
end
|
202
|
-
|
203
|
-
##
|
204
|
-
# Update the ExportConfigurationInstance
|
205
|
-
# @param [Boolean] enabled If true, Twilio will automatically generate every day's
|
206
|
-
# file when the day is over.
|
207
|
-
# @param [String] webhook_url Stores the URL destination for the method specified
|
208
|
-
# in webhook_method.
|
209
|
-
# @param [String] webhook_method Sets whether Twilio should call a webhook URL
|
210
|
-
# when the automatic generation is complete, using GET or POST. The actual
|
211
|
-
# destination is set in the webhook_url
|
212
|
-
# @return [ExportConfigurationInstance] Updated ExportConfigurationInstance
|
213
|
-
def update(enabled: :unset, webhook_url: :unset, webhook_method: :unset)
|
214
|
-
context.update(enabled: enabled, webhook_url: webhook_url, webhook_method: webhook_method, )
|
215
|
-
end
|
216
|
-
|
217
|
-
##
|
218
|
-
# Provide a user friendly representation
|
219
|
-
def to_s
|
220
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
221
|
-
"<Twilio.Preview.BulkExports.ExportConfigurationInstance #{values}>"
|
222
|
-
end
|
223
|
-
|
224
|
-
##
|
225
|
-
# Provide a detailed, user friendly representation
|
226
|
-
def inspect
|
227
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
228
|
-
"<Twilio.Preview.BulkExports.ExportConfigurationInstance #{values}>"
|
229
|
-
end
|
230
|
-
end
|
231
|
-
end
|
232
|
-
end
|
233
|
-
end
|
234
|
-
end
|
@@ -1,62 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# \ / _ _ _| _ _
|
4
|
-
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
-
# / /
|
6
|
-
#
|
7
|
-
# frozen_string_literal: true
|
8
|
-
|
9
|
-
module Twilio
|
10
|
-
module REST
|
11
|
-
class Preview
|
12
|
-
class BulkExports < Version
|
13
|
-
##
|
14
|
-
# Initialize the BulkExports version of Preview
|
15
|
-
def initialize(domain)
|
16
|
-
super
|
17
|
-
@version = 'BulkExports'
|
18
|
-
@exports = nil
|
19
|
-
@export_configuration = nil
|
20
|
-
end
|
21
|
-
|
22
|
-
##
|
23
|
-
# @param [String] resource_type The type of communication – Messages, Calls,
|
24
|
-
# Conferences, and Participants
|
25
|
-
# @return [Twilio::REST::Preview::BulkExports::ExportContext] if resource_type was passed.
|
26
|
-
# @return [Twilio::REST::Preview::BulkExports::ExportList]
|
27
|
-
def exports(resource_type=:unset)
|
28
|
-
if resource_type.nil?
|
29
|
-
raise ArgumentError, 'resource_type cannot be nil'
|
30
|
-
end
|
31
|
-
if resource_type == :unset
|
32
|
-
@exports ||= ExportList.new self
|
33
|
-
else
|
34
|
-
ExportContext.new(self, resource_type)
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
##
|
39
|
-
# @param [String] resource_type The type of communication – Messages, Calls,
|
40
|
-
# Conferences, and Participants
|
41
|
-
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationContext] if resource_type was passed.
|
42
|
-
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]
|
43
|
-
def export_configuration(resource_type=:unset)
|
44
|
-
if resource_type.nil?
|
45
|
-
raise ArgumentError, 'resource_type cannot be nil'
|
46
|
-
end
|
47
|
-
if resource_type == :unset
|
48
|
-
@export_configuration ||= ExportConfigurationList.new self
|
49
|
-
else
|
50
|
-
ExportConfigurationContext.new(self, resource_type)
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
##
|
55
|
-
# Provide a user friendly representation
|
56
|
-
def to_s
|
57
|
-
'<Twilio::REST::Preview::BulkExports>'
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
@@ -1,165 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# \ / _ _ _| _ _
|
4
|
-
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
-
# / /
|
6
|
-
#
|
7
|
-
# frozen_string_literal: true
|
8
|
-
|
9
|
-
module Twilio
|
10
|
-
module REST
|
11
|
-
class Preview < Domain
|
12
|
-
class TrustedComms < Version
|
13
|
-
class BrandedChannelContext < InstanceContext
|
14
|
-
##
|
15
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
16
|
-
class ChannelList < ListResource
|
17
|
-
##
|
18
|
-
# Initialize the ChannelList
|
19
|
-
# @param [Version] version Version that contains the resource
|
20
|
-
# @param [String] branded_channel_sid The unique SID identifier of the Branded
|
21
|
-
# Channel.
|
22
|
-
# @return [ChannelList] ChannelList
|
23
|
-
def initialize(version, branded_channel_sid: nil)
|
24
|
-
super(version)
|
25
|
-
|
26
|
-
# Path Solution
|
27
|
-
@solution = {branded_channel_sid: branded_channel_sid}
|
28
|
-
@uri = "/BrandedChannels/#{@solution[:branded_channel_sid]}/Channels"
|
29
|
-
end
|
30
|
-
|
31
|
-
##
|
32
|
-
# Create the ChannelInstance
|
33
|
-
# @param [String] phone_number_sid The unique SID identifier of the Phone Number
|
34
|
-
# of the Phone number to be assigned to the Branded Channel.
|
35
|
-
# @return [ChannelInstance] Created ChannelInstance
|
36
|
-
def create(phone_number_sid: nil)
|
37
|
-
data = Twilio::Values.of({'PhoneNumberSid' => phone_number_sid, })
|
38
|
-
|
39
|
-
payload = @version.create('POST', @uri, data: data)
|
40
|
-
|
41
|
-
ChannelInstance.new(@version, payload, branded_channel_sid: @solution[:branded_channel_sid], )
|
42
|
-
end
|
43
|
-
|
44
|
-
##
|
45
|
-
# Provide a user friendly representation
|
46
|
-
def to_s
|
47
|
-
'#<Twilio.Preview.TrustedComms.ChannelList>'
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
##
|
52
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
53
|
-
class ChannelPage < Page
|
54
|
-
##
|
55
|
-
# Initialize the ChannelPage
|
56
|
-
# @param [Version] version Version that contains the resource
|
57
|
-
# @param [Response] response Response from the API
|
58
|
-
# @param [Hash] solution Path solution for the resource
|
59
|
-
# @return [ChannelPage] ChannelPage
|
60
|
-
def initialize(version, response, solution)
|
61
|
-
super(version, response)
|
62
|
-
|
63
|
-
# Path Solution
|
64
|
-
@solution = solution
|
65
|
-
end
|
66
|
-
|
67
|
-
##
|
68
|
-
# Build an instance of ChannelInstance
|
69
|
-
# @param [Hash] payload Payload response from the API
|
70
|
-
# @return [ChannelInstance] ChannelInstance
|
71
|
-
def get_instance(payload)
|
72
|
-
ChannelInstance.new(@version, payload, branded_channel_sid: @solution[:branded_channel_sid], )
|
73
|
-
end
|
74
|
-
|
75
|
-
##
|
76
|
-
# Provide a user friendly representation
|
77
|
-
def to_s
|
78
|
-
'<Twilio.Preview.TrustedComms.ChannelPage>'
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
##
|
83
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
84
|
-
class ChannelInstance < InstanceResource
|
85
|
-
##
|
86
|
-
# Initialize the ChannelInstance
|
87
|
-
# @param [Version] version Version that contains the resource
|
88
|
-
# @param [Hash] payload payload that contains response from Twilio
|
89
|
-
# @param [String] branded_channel_sid The unique SID identifier of the Branded
|
90
|
-
# Channel.
|
91
|
-
# @return [ChannelInstance] ChannelInstance
|
92
|
-
def initialize(version, payload, branded_channel_sid: nil)
|
93
|
-
super(version)
|
94
|
-
|
95
|
-
# Marshaled Properties
|
96
|
-
@properties = {
|
97
|
-
'account_sid' => payload['account_sid'],
|
98
|
-
'business_sid' => payload['business_sid'],
|
99
|
-
'brand_sid' => payload['brand_sid'],
|
100
|
-
'branded_channel_sid' => payload['branded_channel_sid'],
|
101
|
-
'phone_number_sid' => payload['phone_number_sid'],
|
102
|
-
'phone_number' => payload['phone_number'],
|
103
|
-
'url' => payload['url'],
|
104
|
-
}
|
105
|
-
end
|
106
|
-
|
107
|
-
##
|
108
|
-
# @return [String] Account Sid.
|
109
|
-
def account_sid
|
110
|
-
@properties['account_sid']
|
111
|
-
end
|
112
|
-
|
113
|
-
##
|
114
|
-
# @return [String] Business Sid.
|
115
|
-
def business_sid
|
116
|
-
@properties['business_sid']
|
117
|
-
end
|
118
|
-
|
119
|
-
##
|
120
|
-
# @return [String] Brand Sid.
|
121
|
-
def brand_sid
|
122
|
-
@properties['brand_sid']
|
123
|
-
end
|
124
|
-
|
125
|
-
##
|
126
|
-
# @return [String] Branded Channel Sid.
|
127
|
-
def branded_channel_sid
|
128
|
-
@properties['branded_channel_sid']
|
129
|
-
end
|
130
|
-
|
131
|
-
##
|
132
|
-
# @return [String] Phone Number Sid to be branded.
|
133
|
-
def phone_number_sid
|
134
|
-
@properties['phone_number_sid']
|
135
|
-
end
|
136
|
-
|
137
|
-
##
|
138
|
-
# @return [String] Twilio number to assign to the Branded Channel
|
139
|
-
def phone_number
|
140
|
-
@properties['phone_number']
|
141
|
-
end
|
142
|
-
|
143
|
-
##
|
144
|
-
# @return [String] The URL of this resource.
|
145
|
-
def url
|
146
|
-
@properties['url']
|
147
|
-
end
|
148
|
-
|
149
|
-
##
|
150
|
-
# Provide a user friendly representation
|
151
|
-
def to_s
|
152
|
-
"<Twilio.Preview.TrustedComms.ChannelInstance>"
|
153
|
-
end
|
154
|
-
|
155
|
-
##
|
156
|
-
# Provide a detailed, user friendly representation
|
157
|
-
def inspect
|
158
|
-
"<Twilio.Preview.TrustedComms.ChannelInstance>"
|
159
|
-
end
|
160
|
-
end
|
161
|
-
end
|
162
|
-
end
|
163
|
-
end
|
164
|
-
end
|
165
|
-
end
|
@@ -1,225 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# \ / _ _ _| _ _
|
4
|
-
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
-
# / /
|
6
|
-
#
|
7
|
-
# frozen_string_literal: true
|
8
|
-
|
9
|
-
module Twilio
|
10
|
-
module REST
|
11
|
-
class Preview < Domain
|
12
|
-
class TrustedComms < Version
|
13
|
-
##
|
14
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
15
|
-
class BrandedChannelList < ListResource
|
16
|
-
##
|
17
|
-
# Initialize the BrandedChannelList
|
18
|
-
# @param [Version] version Version that contains the resource
|
19
|
-
# @return [BrandedChannelList] BrandedChannelList
|
20
|
-
def initialize(version)
|
21
|
-
super(version)
|
22
|
-
|
23
|
-
# Path Solution
|
24
|
-
@solution = {}
|
25
|
-
end
|
26
|
-
|
27
|
-
##
|
28
|
-
# Provide a user friendly representation
|
29
|
-
def to_s
|
30
|
-
'#<Twilio.Preview.TrustedComms.BrandedChannelList>'
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
##
|
35
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
36
|
-
class BrandedChannelPage < Page
|
37
|
-
##
|
38
|
-
# Initialize the BrandedChannelPage
|
39
|
-
# @param [Version] version Version that contains the resource
|
40
|
-
# @param [Response] response Response from the API
|
41
|
-
# @param [Hash] solution Path solution for the resource
|
42
|
-
# @return [BrandedChannelPage] BrandedChannelPage
|
43
|
-
def initialize(version, response, solution)
|
44
|
-
super(version, response)
|
45
|
-
|
46
|
-
# Path Solution
|
47
|
-
@solution = solution
|
48
|
-
end
|
49
|
-
|
50
|
-
##
|
51
|
-
# Build an instance of BrandedChannelInstance
|
52
|
-
# @param [Hash] payload Payload response from the API
|
53
|
-
# @return [BrandedChannelInstance] BrandedChannelInstance
|
54
|
-
def get_instance(payload)
|
55
|
-
BrandedChannelInstance.new(@version, payload, )
|
56
|
-
end
|
57
|
-
|
58
|
-
##
|
59
|
-
# Provide a user friendly representation
|
60
|
-
def to_s
|
61
|
-
'<Twilio.Preview.TrustedComms.BrandedChannelPage>'
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
##
|
66
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
67
|
-
class BrandedChannelContext < InstanceContext
|
68
|
-
##
|
69
|
-
# Initialize the BrandedChannelContext
|
70
|
-
# @param [Version] version Version that contains the resource
|
71
|
-
# @param [String] sid The unique SID identifier of the Branded Channel.
|
72
|
-
# @return [BrandedChannelContext] BrandedChannelContext
|
73
|
-
def initialize(version, sid)
|
74
|
-
super(version)
|
75
|
-
|
76
|
-
# Path Solution
|
77
|
-
@solution = {sid: sid, }
|
78
|
-
@uri = "/BrandedChannels/#{@solution[:sid]}"
|
79
|
-
|
80
|
-
# Dependents
|
81
|
-
@channels = nil
|
82
|
-
end
|
83
|
-
|
84
|
-
##
|
85
|
-
# Fetch the BrandedChannelInstance
|
86
|
-
# @return [BrandedChannelInstance] Fetched BrandedChannelInstance
|
87
|
-
def fetch
|
88
|
-
payload = @version.fetch('GET', @uri)
|
89
|
-
|
90
|
-
BrandedChannelInstance.new(@version, payload, sid: @solution[:sid], )
|
91
|
-
end
|
92
|
-
|
93
|
-
##
|
94
|
-
# Access the channels
|
95
|
-
# @return [ChannelList]
|
96
|
-
# @return [ChannelContext]
|
97
|
-
def channels
|
98
|
-
unless @channels
|
99
|
-
@channels = ChannelList.new(@version, branded_channel_sid: @solution[:sid], )
|
100
|
-
end
|
101
|
-
|
102
|
-
@channels
|
103
|
-
end
|
104
|
-
|
105
|
-
##
|
106
|
-
# Provide a user friendly representation
|
107
|
-
def to_s
|
108
|
-
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
109
|
-
"#<Twilio.Preview.TrustedComms.BrandedChannelContext #{context}>"
|
110
|
-
end
|
111
|
-
|
112
|
-
##
|
113
|
-
# Provide a detailed, user friendly representation
|
114
|
-
def inspect
|
115
|
-
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
116
|
-
"#<Twilio.Preview.TrustedComms.BrandedChannelContext #{context}>"
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
##
|
121
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
122
|
-
class BrandedChannelInstance < InstanceResource
|
123
|
-
##
|
124
|
-
# Initialize the BrandedChannelInstance
|
125
|
-
# @param [Version] version Version that contains the resource
|
126
|
-
# @param [Hash] payload payload that contains response from Twilio
|
127
|
-
# @param [String] sid The unique SID identifier of the Branded Channel.
|
128
|
-
# @return [BrandedChannelInstance] BrandedChannelInstance
|
129
|
-
def initialize(version, payload, sid: nil)
|
130
|
-
super(version)
|
131
|
-
|
132
|
-
# Marshaled Properties
|
133
|
-
@properties = {
|
134
|
-
'account_sid' => payload['account_sid'],
|
135
|
-
'business_sid' => payload['business_sid'],
|
136
|
-
'brand_sid' => payload['brand_sid'],
|
137
|
-
'sid' => payload['sid'],
|
138
|
-
'links' => payload['links'],
|
139
|
-
'url' => payload['url'],
|
140
|
-
}
|
141
|
-
|
142
|
-
# Context
|
143
|
-
@instance_context = nil
|
144
|
-
@params = {'sid' => sid || @properties['sid'], }
|
145
|
-
end
|
146
|
-
|
147
|
-
##
|
148
|
-
# Generate an instance context for the instance, the context is capable of
|
149
|
-
# performing various actions. All instance actions are proxied to the context
|
150
|
-
# @return [BrandedChannelContext] BrandedChannelContext for this BrandedChannelInstance
|
151
|
-
def context
|
152
|
-
unless @instance_context
|
153
|
-
@instance_context = BrandedChannelContext.new(@version, @params['sid'], )
|
154
|
-
end
|
155
|
-
@instance_context
|
156
|
-
end
|
157
|
-
|
158
|
-
##
|
159
|
-
# @return [String] Account Sid.
|
160
|
-
def account_sid
|
161
|
-
@properties['account_sid']
|
162
|
-
end
|
163
|
-
|
164
|
-
##
|
165
|
-
# @return [String] Business Sid.
|
166
|
-
def business_sid
|
167
|
-
@properties['business_sid']
|
168
|
-
end
|
169
|
-
|
170
|
-
##
|
171
|
-
# @return [String] Brand Sid.
|
172
|
-
def brand_sid
|
173
|
-
@properties['brand_sid']
|
174
|
-
end
|
175
|
-
|
176
|
-
##
|
177
|
-
# @return [String] Branded Channel Sid.
|
178
|
-
def sid
|
179
|
-
@properties['sid']
|
180
|
-
end
|
181
|
-
|
182
|
-
##
|
183
|
-
# @return [String] Nested resource URLs.
|
184
|
-
def links
|
185
|
-
@properties['links']
|
186
|
-
end
|
187
|
-
|
188
|
-
##
|
189
|
-
# @return [String] The URL of this resource.
|
190
|
-
def url
|
191
|
-
@properties['url']
|
192
|
-
end
|
193
|
-
|
194
|
-
##
|
195
|
-
# Fetch the BrandedChannelInstance
|
196
|
-
# @return [BrandedChannelInstance] Fetched BrandedChannelInstance
|
197
|
-
def fetch
|
198
|
-
context.fetch
|
199
|
-
end
|
200
|
-
|
201
|
-
##
|
202
|
-
# Access the channels
|
203
|
-
# @return [channels] channels
|
204
|
-
def channels
|
205
|
-
context.channels
|
206
|
-
end
|
207
|
-
|
208
|
-
##
|
209
|
-
# Provide a user friendly representation
|
210
|
-
def to_s
|
211
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
212
|
-
"<Twilio.Preview.TrustedComms.BrandedChannelInstance #{values}>"
|
213
|
-
end
|
214
|
-
|
215
|
-
##
|
216
|
-
# Provide a detailed, user friendly representation
|
217
|
-
def inspect
|
218
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
219
|
-
"<Twilio.Preview.TrustedComms.BrandedChannelInstance #{values}>"
|
220
|
-
end
|
221
|
-
end
|
222
|
-
end
|
223
|
-
end
|
224
|
-
end
|
225
|
-
end
|