twilio-ruby 6.12.1 → 7.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +5 -5
- data/CHANGES.md +72 -1
- data/README.md +2 -2
- data/UPGRADE.md +11 -0
- data/lib/twilio-ruby/framework/request.rb +8 -1
- data/lib/twilio-ruby/http/http_client.rb +10 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +22 -22
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +22 -22
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/client.rb +8 -3
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +184 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -13
- data/lib/twilio-ruby/rest/content/v1/content.rb +422 -3
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +6 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -6
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +26 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +6 -0
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -2
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/room.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +0 -2
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +17 -6
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +7 -2
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +16 -3
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +127 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +134 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +7 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1.rb +12 -0
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +16 -3
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -2
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +143 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +181 -0
- data/lib/twilio-ruby/rest/oauth/v1.rb +46 -0
- data/lib/twilio-ruby/rest/{media.rb → oauth.rb} +1 -1
- data/lib/twilio-ruby/rest/{media_base.rb → oauth_base.rb} +6 -6
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +0 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -2
- data/lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb +164 -0
- data/lib/twilio-ruby/rest/preview_messaging/v1/message.rb +235 -0
- data/lib/twilio-ruby/rest/preview_messaging/v1.rb +46 -0
- data/lib/twilio-ruby/rest/preview_messaging.rb +12 -0
- data/lib/twilio-ruby/rest/preview_messaging_base.rb +38 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +163 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +95 -4
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +9 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +9 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -18
- data/lib/twilio-ruby/rest/trusthub/v1.rb +12 -3
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -2
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -2
- data/lib/twilio-ruby/rest/verify/v2/service.rb +25 -0
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +0 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -2
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +16 -9
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -424
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -407
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -255
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -436
- data/lib/twilio-ruby/rest/media/v1.rb +0 -79
@@ -0,0 +1,184 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Content
|
8
|
+
# This is the public Twilio REST API.
|
9
|
+
#
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
+
# https://openapi-generator.tech
|
12
|
+
# Do not edit the class manually.
|
13
|
+
#
|
14
|
+
|
15
|
+
|
16
|
+
module Twilio
|
17
|
+
module REST
|
18
|
+
class Content < ContentBase
|
19
|
+
class V1 < Version
|
20
|
+
class ContentContext < InstanceContext
|
21
|
+
|
22
|
+
class ApprovalCreateList < ListResource
|
23
|
+
|
24
|
+
class ContentApprovalRequest
|
25
|
+
# @param [name]: [String] Name of the template.
|
26
|
+
# @param [category]: [String] A WhatsApp recognized template category.
|
27
|
+
attr_accessor :name, :category
|
28
|
+
def initialize(payload)
|
29
|
+
@name = payload["name"]
|
30
|
+
@category = payload["category"]
|
31
|
+
end
|
32
|
+
def to_json(options = {})
|
33
|
+
{
|
34
|
+
name: @name,
|
35
|
+
category: @category,
|
36
|
+
}.to_json(options)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
##
|
41
|
+
# Initialize the ApprovalCreateList
|
42
|
+
# @param [Version] version Version that contains the resource
|
43
|
+
# @return [ApprovalCreateList] ApprovalCreateList
|
44
|
+
def initialize(version, content_sid: nil)
|
45
|
+
super(version)
|
46
|
+
# Path Solution
|
47
|
+
@solution = { content_sid: content_sid }
|
48
|
+
@uri = "/Content/#{@solution[:content_sid]}/ApprovalRequests/whatsapp"
|
49
|
+
|
50
|
+
end
|
51
|
+
##
|
52
|
+
# Create the ApprovalCreateInstance
|
53
|
+
# @param [ContentApprovalRequest] content_approval_request
|
54
|
+
# @return [ApprovalCreateInstance] Created ApprovalCreateInstance
|
55
|
+
def create(content_approval_request: nil
|
56
|
+
)
|
57
|
+
|
58
|
+
headers = Twilio::Values.of({"Content-Type"=> "application/json"})
|
59
|
+
payload = @version.create('POST', @uri, data: content_approval_request.to_json, headers: headers)
|
60
|
+
ApprovalCreateInstance.new(
|
61
|
+
@version,
|
62
|
+
payload,
|
63
|
+
content_sid: @solution[:content_sid],
|
64
|
+
)
|
65
|
+
end
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
# Provide a user friendly representation
|
71
|
+
def to_s
|
72
|
+
'#<Twilio.Content.V1.ApprovalCreateList>'
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
class ApprovalCreatePage < Page
|
77
|
+
##
|
78
|
+
# Initialize the ApprovalCreatePage
|
79
|
+
# @param [Version] version Version that contains the resource
|
80
|
+
# @param [Response] response Response from the API
|
81
|
+
# @param [Hash] solution Path solution for the resource
|
82
|
+
# @return [ApprovalCreatePage] ApprovalCreatePage
|
83
|
+
def initialize(version, response, solution)
|
84
|
+
super(version, response)
|
85
|
+
|
86
|
+
# Path Solution
|
87
|
+
@solution = solution
|
88
|
+
end
|
89
|
+
|
90
|
+
##
|
91
|
+
# Build an instance of ApprovalCreateInstance
|
92
|
+
# @param [Hash] payload Payload response from the API
|
93
|
+
# @return [ApprovalCreateInstance] ApprovalCreateInstance
|
94
|
+
def get_instance(payload)
|
95
|
+
ApprovalCreateInstance.new(@version, payload, content_sid: @solution[:content_sid])
|
96
|
+
end
|
97
|
+
|
98
|
+
##
|
99
|
+
# Provide a user friendly representation
|
100
|
+
def to_s
|
101
|
+
'<Twilio.Content.V1.ApprovalCreatePage>'
|
102
|
+
end
|
103
|
+
end
|
104
|
+
class ApprovalCreateInstance < InstanceResource
|
105
|
+
##
|
106
|
+
# Initialize the ApprovalCreateInstance
|
107
|
+
# @param [Version] version Version that contains the resource
|
108
|
+
# @param [Hash] payload payload that contains response from Twilio
|
109
|
+
# @param [String] account_sid The SID of the
|
110
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ApprovalCreate
|
111
|
+
# resource.
|
112
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
113
|
+
# @return [ApprovalCreateInstance] ApprovalCreateInstance
|
114
|
+
def initialize(version, payload , content_sid: nil)
|
115
|
+
super(version)
|
116
|
+
|
117
|
+
# Marshaled Properties
|
118
|
+
@properties = {
|
119
|
+
'name' => payload['name'],
|
120
|
+
'category' => payload['category'],
|
121
|
+
'content_type' => payload['content_type'],
|
122
|
+
'status' => payload['status'],
|
123
|
+
'rejection_reason' => payload['rejection_reason'],
|
124
|
+
'allow_category_change' => payload['allow_category_change'],
|
125
|
+
}
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
##
|
130
|
+
# @return [String]
|
131
|
+
def name
|
132
|
+
@properties['name']
|
133
|
+
end
|
134
|
+
|
135
|
+
##
|
136
|
+
# @return [String]
|
137
|
+
def category
|
138
|
+
@properties['category']
|
139
|
+
end
|
140
|
+
|
141
|
+
##
|
142
|
+
# @return [String]
|
143
|
+
def content_type
|
144
|
+
@properties['content_type']
|
145
|
+
end
|
146
|
+
|
147
|
+
##
|
148
|
+
# @return [String]
|
149
|
+
def status
|
150
|
+
@properties['status']
|
151
|
+
end
|
152
|
+
|
153
|
+
##
|
154
|
+
# @return [String]
|
155
|
+
def rejection_reason
|
156
|
+
@properties['rejection_reason']
|
157
|
+
end
|
158
|
+
|
159
|
+
##
|
160
|
+
# @return [Boolean]
|
161
|
+
def allow_category_change
|
162
|
+
@properties['allow_category_change']
|
163
|
+
end
|
164
|
+
|
165
|
+
##
|
166
|
+
# Provide a user friendly representation
|
167
|
+
def to_s
|
168
|
+
"<Twilio.Content.V1.ApprovalCreateInstance>"
|
169
|
+
end
|
170
|
+
|
171
|
+
##
|
172
|
+
# Provide a detailed, user friendly representation
|
173
|
+
def inspect
|
174
|
+
"<Twilio.Content.V1.ApprovalCreateInstance>"
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
|
@@ -25,10 +25,10 @@ module Twilio
|
|
25
25
|
# Initialize the ApprovalFetchList
|
26
26
|
# @param [Version] version Version that contains the resource
|
27
27
|
# @return [ApprovalFetchList] ApprovalFetchList
|
28
|
-
def initialize(version,
|
28
|
+
def initialize(version, content_sid: nil)
|
29
29
|
super(version)
|
30
30
|
# Path Solution
|
31
|
-
@solution = {
|
31
|
+
@solution = { content_sid: content_sid }
|
32
32
|
|
33
33
|
|
34
34
|
end
|
@@ -42,20 +42,18 @@ module Twilio
|
|
42
42
|
end
|
43
43
|
|
44
44
|
|
45
|
-
##
|
46
|
-
#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.
|
47
45
|
class ApprovalFetchContext < InstanceContext
|
48
46
|
##
|
49
47
|
# Initialize the ApprovalFetchContext
|
50
48
|
# @param [Version] version Version that contains the resource
|
51
|
-
# @param [String]
|
49
|
+
# @param [String] content_sid The Twilio-provided string that uniquely identifies the Content resource whose approval information to fetch.
|
52
50
|
# @return [ApprovalFetchContext] ApprovalFetchContext
|
53
|
-
def initialize(version,
|
51
|
+
def initialize(version, content_sid)
|
54
52
|
super(version)
|
55
53
|
|
56
54
|
# Path Solution
|
57
|
-
@solution = {
|
58
|
-
@uri = "/Content/#{@solution[:
|
55
|
+
@solution = { content_sid: content_sid, }
|
56
|
+
@uri = "/Content/#{@solution[:content_sid]}/ApprovalRequests"
|
59
57
|
|
60
58
|
|
61
59
|
end
|
@@ -69,7 +67,7 @@ module Twilio
|
|
69
67
|
ApprovalFetchInstance.new(
|
70
68
|
@version,
|
71
69
|
payload,
|
72
|
-
|
70
|
+
content_sid: @solution[:content_sid],
|
73
71
|
)
|
74
72
|
end
|
75
73
|
|
@@ -108,7 +106,7 @@ module Twilio
|
|
108
106
|
# @param [Hash] payload Payload response from the API
|
109
107
|
# @return [ApprovalFetchInstance] ApprovalFetchInstance
|
110
108
|
def get_instance(payload)
|
111
|
-
ApprovalFetchInstance.new(@version, payload,
|
109
|
+
ApprovalFetchInstance.new(@version, payload, content_sid: @solution[:content_sid])
|
112
110
|
end
|
113
111
|
|
114
112
|
##
|
@@ -127,7 +125,7 @@ module Twilio
|
|
127
125
|
# resource.
|
128
126
|
# @param [String] sid The SID of the Call resource to fetch.
|
129
127
|
# @return [ApprovalFetchInstance] ApprovalFetchInstance
|
130
|
-
def initialize(version, payload ,
|
128
|
+
def initialize(version, payload , content_sid: nil)
|
131
129
|
super(version)
|
132
130
|
|
133
131
|
# Marshaled Properties
|
@@ -140,7 +138,7 @@ module Twilio
|
|
140
138
|
|
141
139
|
# Context
|
142
140
|
@instance_context = nil
|
143
|
-
@params = { '
|
141
|
+
@params = { 'content_sid' => content_sid || @properties['content_sid'] , }
|
144
142
|
end
|
145
143
|
|
146
144
|
##
|
@@ -149,7 +147,7 @@ module Twilio
|
|
149
147
|
# @return [ApprovalFetchContext] CallContext for this CallInstance
|
150
148
|
def context
|
151
149
|
unless @instance_context
|
152
|
-
@instance_context = ApprovalFetchContext.new(@version , @params['
|
150
|
+
@instance_context = ApprovalFetchContext.new(@version , @params['content_sid'])
|
153
151
|
end
|
154
152
|
@instance_context
|
155
153
|
end
|