twilio-ruby 6.12.1 → 7.0.0.pre.rc.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 +9 -9
- data/CHANGES.md +10 -57
- data/README.md +2 -2
- data/UPGRADE.md +10 -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/feedback.rb +267 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +332 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +37 -28
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +3 -27
- 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/api/v2010/account/message.rb +5 -17
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +184 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -2
- data/lib/twilio-ruby/rest/content/v1/content.rb +363 -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/flex_api/v1/assessments.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +21 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb +274 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb +253 -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/interaction/interaction_channel/interaction_channel_participant.rb +1 -11
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1.rb +30 -112
- 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/v1/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +6 -8
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -2
- data/lib/twilio-ruby/rest/media.rb +32 -3
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +2 -11
- 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 +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +4 -13
- 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 +13 -2
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +125 -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 +132 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1.rb +15 -3
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +13 -2
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +3 -15
- 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 +161 -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 +2 -26
- 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/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/twiml/messaging_response.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +17 -12
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +0 -384
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +0 -446
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -247
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +0 -393
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +0 -386
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -233
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +0 -332
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -256
@@ -150,8 +150,6 @@ module Twilio
|
|
150
150
|
end
|
151
151
|
|
152
152
|
|
153
|
-
##
|
154
|
-
#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.
|
155
153
|
class DeviceSecretContext < InstanceContext
|
156
154
|
##
|
157
155
|
# Initialize the DeviceSecretContext
|
@@ -124,8 +124,6 @@ module Twilio
|
|
124
124
|
end
|
125
125
|
|
126
126
|
|
127
|
-
##
|
128
|
-
#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.
|
129
127
|
class DeviceContext < InstanceContext
|
130
128
|
##
|
131
129
|
# Initialize the DeviceContext
|
@@ -27,9 +27,22 @@ module Twilio
|
|
27
27
|
super(version)
|
28
28
|
# Path Solution
|
29
29
|
@solution = { }
|
30
|
+
@uri = "/HostedNumber/Eligibility/Bulk"
|
30
31
|
|
32
|
+
end
|
33
|
+
##
|
34
|
+
# Create the BulkEligibilityInstance
|
35
|
+
# @return [BulkEligibilityInstance] Created BulkEligibilityInstance
|
36
|
+
def create
|
37
|
+
|
31
38
|
|
39
|
+
payload = @version.create('POST', @uri)
|
40
|
+
BulkEligibilityInstance.new(
|
41
|
+
@version,
|
42
|
+
payload,
|
43
|
+
)
|
32
44
|
end
|
45
|
+
|
33
46
|
|
34
47
|
|
35
48
|
|
@@ -40,8 +53,6 @@ module Twilio
|
|
40
53
|
end
|
41
54
|
|
42
55
|
|
43
|
-
##
|
44
|
-
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
45
56
|
class BulkEligibilityContext < InstanceContext
|
46
57
|
##
|
47
58
|
# Initialize the BulkEligibilityContext
|
@@ -0,0 +1,125 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Numbers
|
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 Numbers < NumbersBase
|
19
|
+
class V1 < Version
|
20
|
+
class EligibilityList < ListResource
|
21
|
+
|
22
|
+
##
|
23
|
+
# Initialize the EligibilityList
|
24
|
+
# @param [Version] version Version that contains the resource
|
25
|
+
# @return [EligibilityList] EligibilityList
|
26
|
+
def initialize(version)
|
27
|
+
super(version)
|
28
|
+
# Path Solution
|
29
|
+
@solution = { }
|
30
|
+
@uri = "/HostedNumber/Eligibility"
|
31
|
+
|
32
|
+
end
|
33
|
+
##
|
34
|
+
# Create the EligibilityInstance
|
35
|
+
# @return [EligibilityInstance] Created EligibilityInstance
|
36
|
+
def create
|
37
|
+
|
38
|
+
|
39
|
+
payload = @version.create('POST', @uri)
|
40
|
+
EligibilityInstance.new(
|
41
|
+
@version,
|
42
|
+
payload,
|
43
|
+
)
|
44
|
+
end
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
# Provide a user friendly representation
|
50
|
+
def to_s
|
51
|
+
'#<Twilio.Numbers.V1.EligibilityList>'
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
class EligibilityPage < Page
|
56
|
+
##
|
57
|
+
# Initialize the EligibilityPage
|
58
|
+
# @param [Version] version Version that contains the resource
|
59
|
+
# @param [Response] response Response from the API
|
60
|
+
# @param [Hash] solution Path solution for the resource
|
61
|
+
# @return [EligibilityPage] EligibilityPage
|
62
|
+
def initialize(version, response, solution)
|
63
|
+
super(version, response)
|
64
|
+
|
65
|
+
# Path Solution
|
66
|
+
@solution = solution
|
67
|
+
end
|
68
|
+
|
69
|
+
##
|
70
|
+
# Build an instance of EligibilityInstance
|
71
|
+
# @param [Hash] payload Payload response from the API
|
72
|
+
# @return [EligibilityInstance] EligibilityInstance
|
73
|
+
def get_instance(payload)
|
74
|
+
EligibilityInstance.new(@version, payload)
|
75
|
+
end
|
76
|
+
|
77
|
+
##
|
78
|
+
# Provide a user friendly representation
|
79
|
+
def to_s
|
80
|
+
'<Twilio.Numbers.V1.EligibilityPage>'
|
81
|
+
end
|
82
|
+
end
|
83
|
+
class EligibilityInstance < InstanceResource
|
84
|
+
##
|
85
|
+
# Initialize the EligibilityInstance
|
86
|
+
# @param [Version] version Version that contains the resource
|
87
|
+
# @param [Hash] payload payload that contains response from Twilio
|
88
|
+
# @param [String] account_sid The SID of the
|
89
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Eligibility
|
90
|
+
# resource.
|
91
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
92
|
+
# @return [EligibilityInstance] EligibilityInstance
|
93
|
+
def initialize(version, payload )
|
94
|
+
super(version)
|
95
|
+
|
96
|
+
# Marshaled Properties
|
97
|
+
@properties = {
|
98
|
+
'results' => payload['results'],
|
99
|
+
}
|
100
|
+
end
|
101
|
+
|
102
|
+
|
103
|
+
##
|
104
|
+
# @return [Array<Hash>] The result set that contains the eligibility check response for the requested number, each result has at least the following attributes: phone_number: The requested phone number ,hosting_account_sid: The account sid where the phone number will be hosted, date_last_checked: Datetime (ISO 8601) when the PN was last checked for eligibility, country: Phone number’s country, eligibility_status: Indicates the eligibility status of the PN (Eligible/Ineligible), eligibility_sub_status: Indicates the sub status of the eligibility , ineligibility_reason: Reason for number's ineligibility (if applicable), next_step: Suggested next step in the hosting process based on the eligibility status.
|
105
|
+
def results
|
106
|
+
@properties['results']
|
107
|
+
end
|
108
|
+
|
109
|
+
##
|
110
|
+
# Provide a user friendly representation
|
111
|
+
def to_s
|
112
|
+
"<Twilio.Numbers.V1.EligibilityInstance>"
|
113
|
+
end
|
114
|
+
|
115
|
+
##
|
116
|
+
# Provide a detailed, user friendly representation
|
117
|
+
def inspect
|
118
|
+
"<Twilio.Numbers.V1.EligibilityInstance>"
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
@@ -0,0 +1,132 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Numbers
|
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 Numbers < NumbersBase
|
19
|
+
class V1 < Version
|
20
|
+
class PortingPortInList < ListResource
|
21
|
+
|
22
|
+
##
|
23
|
+
# Initialize the PortingPortInList
|
24
|
+
# @param [Version] version Version that contains the resource
|
25
|
+
# @return [PortingPortInList] PortingPortInList
|
26
|
+
def initialize(version)
|
27
|
+
super(version)
|
28
|
+
# Path Solution
|
29
|
+
@solution = { }
|
30
|
+
@uri = "/Porting/PortIn"
|
31
|
+
|
32
|
+
end
|
33
|
+
##
|
34
|
+
# Create the PortingPortInInstance
|
35
|
+
# @return [PortingPortInInstance] Created PortingPortInInstance
|
36
|
+
def create
|
37
|
+
|
38
|
+
|
39
|
+
payload = @version.create('POST', @uri)
|
40
|
+
PortingPortInInstance.new(
|
41
|
+
@version,
|
42
|
+
payload,
|
43
|
+
)
|
44
|
+
end
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
# Provide a user friendly representation
|
50
|
+
def to_s
|
51
|
+
'#<Twilio.Numbers.V1.PortingPortInList>'
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
class PortingPortInPage < Page
|
56
|
+
##
|
57
|
+
# Initialize the PortingPortInPage
|
58
|
+
# @param [Version] version Version that contains the resource
|
59
|
+
# @param [Response] response Response from the API
|
60
|
+
# @param [Hash] solution Path solution for the resource
|
61
|
+
# @return [PortingPortInPage] PortingPortInPage
|
62
|
+
def initialize(version, response, solution)
|
63
|
+
super(version, response)
|
64
|
+
|
65
|
+
# Path Solution
|
66
|
+
@solution = solution
|
67
|
+
end
|
68
|
+
|
69
|
+
##
|
70
|
+
# Build an instance of PortingPortInInstance
|
71
|
+
# @param [Hash] payload Payload response from the API
|
72
|
+
# @return [PortingPortInInstance] PortingPortInInstance
|
73
|
+
def get_instance(payload)
|
74
|
+
PortingPortInInstance.new(@version, payload)
|
75
|
+
end
|
76
|
+
|
77
|
+
##
|
78
|
+
# Provide a user friendly representation
|
79
|
+
def to_s
|
80
|
+
'<Twilio.Numbers.V1.PortingPortInPage>'
|
81
|
+
end
|
82
|
+
end
|
83
|
+
class PortingPortInInstance < InstanceResource
|
84
|
+
##
|
85
|
+
# Initialize the PortingPortInInstance
|
86
|
+
# @param [Version] version Version that contains the resource
|
87
|
+
# @param [Hash] payload payload that contains response from Twilio
|
88
|
+
# @param [String] account_sid The SID of the
|
89
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingPortIn
|
90
|
+
# resource.
|
91
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
92
|
+
# @return [PortingPortInInstance] PortingPortInInstance
|
93
|
+
def initialize(version, payload )
|
94
|
+
super(version)
|
95
|
+
|
96
|
+
# Marshaled Properties
|
97
|
+
@properties = {
|
98
|
+
'port_in_request_sid' => payload['port_in_request_sid'],
|
99
|
+
'url' => payload['url'],
|
100
|
+
}
|
101
|
+
end
|
102
|
+
|
103
|
+
|
104
|
+
##
|
105
|
+
# @return [String] The SID of the Port In request. This is a unique identifier of the port in request.
|
106
|
+
def port_in_request_sid
|
107
|
+
@properties['port_in_request_sid']
|
108
|
+
end
|
109
|
+
|
110
|
+
##
|
111
|
+
# @return [String]
|
112
|
+
def url
|
113
|
+
@properties['url']
|
114
|
+
end
|
115
|
+
|
116
|
+
##
|
117
|
+
# Provide a user friendly representation
|
118
|
+
def to_s
|
119
|
+
"<Twilio.Numbers.V1.PortingPortInInstance>"
|
120
|
+
end
|
121
|
+
|
122
|
+
##
|
123
|
+
# Provide a detailed, user friendly representation
|
124
|
+
def inspect
|
125
|
+
"<Twilio.Numbers.V1.PortingPortInInstance>"
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
@@ -22,8 +22,10 @@ module Twilio
|
|
22
22
|
super
|
23
23
|
@version = 'v1'
|
24
24
|
@bulk_eligibilities = nil
|
25
|
+
@eligibilities = nil
|
25
26
|
@porting_bulk_portabilities = nil
|
26
|
-
@
|
27
|
+
@porting_port_ins = nil
|
28
|
+
@porting_port_ins = nil
|
27
29
|
@porting_portabilities = nil
|
28
30
|
end
|
29
31
|
|
@@ -42,6 +44,11 @@ module Twilio
|
|
42
44
|
end
|
43
45
|
end
|
44
46
|
##
|
47
|
+
# @return [Twilio::REST::Numbers::V1::EligibilityList]
|
48
|
+
def eligibilities
|
49
|
+
@eligibilities ||= EligibilityList.new self
|
50
|
+
end
|
51
|
+
##
|
45
52
|
# @param [String] sid A 34 character string that uniquely identifies the Portability check.
|
46
53
|
# @return [Twilio::REST::Numbers::V1::PortingBulkPortabilityContext] if sid was passed.
|
47
54
|
# @return [Twilio::REST::Numbers::V1::PortingBulkPortabilityList]
|
@@ -56,15 +63,20 @@ module Twilio
|
|
56
63
|
end
|
57
64
|
end
|
58
65
|
##
|
66
|
+
# @return [Twilio::REST::Numbers::V1::PortingPortInList]
|
67
|
+
def porting_port_ins
|
68
|
+
@porting_port_ins ||= PortingPortInList.new self
|
69
|
+
end
|
70
|
+
##
|
59
71
|
# @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
|
60
72
|
# @return [Twilio::REST::Numbers::V1::PortingPortInFetchContext] if portInRequestSid was passed.
|
61
73
|
# @return [Twilio::REST::Numbers::V1::PortingPortInFetchList]
|
62
|
-
def
|
74
|
+
def porting_port_ins(port_in_request_sid=:unset)
|
63
75
|
if port_in_request_sid.nil?
|
64
76
|
raise ArgumentError, 'port_in_request_sid cannot be nil'
|
65
77
|
end
|
66
78
|
if port_in_request_sid == :unset
|
67
|
-
@
|
79
|
+
@porting_port_ins ||= PortingPortInFetchList.new self
|
68
80
|
else
|
69
81
|
PortingPortInFetchContext.new(self, port_in_request_sid)
|
70
82
|
end
|
@@ -171,8 +171,6 @@ module Twilio
|
|
171
171
|
end
|
172
172
|
|
173
173
|
|
174
|
-
##
|
175
|
-
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
176
174
|
class AuthorizationDocumentContext < InstanceContext
|
177
175
|
##
|
178
176
|
# Initialize the AuthorizationDocumentContext
|
@@ -27,9 +27,22 @@ module Twilio
|
|
27
27
|
super(version)
|
28
28
|
# Path Solution
|
29
29
|
@solution = { }
|
30
|
+
@uri = "/HostedNumber/Orders/Bulk"
|
30
31
|
|
32
|
+
end
|
33
|
+
##
|
34
|
+
# Create the BulkHostedNumberOrderInstance
|
35
|
+
# @return [BulkHostedNumberOrderInstance] Created BulkHostedNumberOrderInstance
|
36
|
+
def create
|
37
|
+
|
31
38
|
|
39
|
+
payload = @version.create('POST', @uri)
|
40
|
+
BulkHostedNumberOrderInstance.new(
|
41
|
+
@version,
|
42
|
+
payload,
|
43
|
+
)
|
32
44
|
end
|
45
|
+
|
33
46
|
|
34
47
|
|
35
48
|
|
@@ -40,8 +53,6 @@ module Twilio
|
|
40
53
|
end
|
41
54
|
|
42
55
|
|
43
|
-
##
|
44
|
-
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
45
56
|
class BulkHostedNumberOrderContext < InstanceContext
|
46
57
|
##
|
47
58
|
# Initialize the BulkHostedNumberOrderContext
|
@@ -84,8 +84,6 @@ module Twilio
|
|
84
84
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
85
85
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
86
86
|
# @param [Time] valid_until_date Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format.
|
87
|
-
# @param [Time] valid_until_date_before Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format.
|
88
|
-
# @param [Time] valid_until_date_after Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format.
|
89
87
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
90
88
|
# guarantees to never return more than limit. Default is no limit
|
91
89
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -93,7 +91,7 @@ module Twilio
|
|
93
91
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
94
92
|
# efficient page size, i.e. min(limit, 1000)
|
95
93
|
# @return [Array] Array of up to limit results
|
96
|
-
def list(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset,
|
94
|
+
def list(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, limit: nil, page_size: nil)
|
97
95
|
self.stream(
|
98
96
|
status: status,
|
99
97
|
friendly_name: friendly_name,
|
@@ -104,8 +102,6 @@ module Twilio
|
|
104
102
|
sort_by: sort_by,
|
105
103
|
sort_direction: sort_direction,
|
106
104
|
valid_until_date: valid_until_date,
|
107
|
-
valid_until_date_before: valid_until_date_before,
|
108
|
-
valid_until_date_after: valid_until_date_after,
|
109
105
|
limit: limit,
|
110
106
|
page_size: page_size
|
111
107
|
).entries
|
@@ -124,8 +120,6 @@ module Twilio
|
|
124
120
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
125
121
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
126
122
|
# @param [Time] valid_until_date Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format.
|
127
|
-
# @param [Time] valid_until_date_before Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format.
|
128
|
-
# @param [Time] valid_until_date_after Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format.
|
129
123
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
130
124
|
# guarantees to never return more than limit. Default is no limit
|
131
125
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -133,7 +127,7 @@ module Twilio
|
|
133
127
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
134
128
|
# efficient page size, i.e. min(limit, 1000)
|
135
129
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
136
|
-
def stream(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset,
|
130
|
+
def stream(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, limit: nil, page_size: nil)
|
137
131
|
limits = @version.read_limits(limit, page_size)
|
138
132
|
|
139
133
|
page = self.page(
|
@@ -146,8 +140,6 @@ module Twilio
|
|
146
140
|
sort_by: sort_by,
|
147
141
|
sort_direction: sort_direction,
|
148
142
|
valid_until_date: valid_until_date,
|
149
|
-
valid_until_date_before: valid_until_date_before,
|
150
|
-
valid_until_date_after: valid_until_date_after,
|
151
143
|
page_size: limits[:page_size], )
|
152
144
|
|
153
145
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
@@ -179,13 +171,11 @@ module Twilio
|
|
179
171
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
180
172
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
181
173
|
# @param [Time] valid_until_date Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format.
|
182
|
-
# @param [Time] valid_until_date_before Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format.
|
183
|
-
# @param [Time] valid_until_date_after Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is the acceptable date format.
|
184
174
|
# @param [String] page_token PageToken provided by the API
|
185
175
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
186
176
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
187
177
|
# @return [Page] Page of BundleInstance
|
188
|
-
def page(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset,
|
178
|
+
def page(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
189
179
|
params = Twilio::Values.of({
|
190
180
|
'Status' => status,
|
191
181
|
'FriendlyName' => friendly_name,
|
@@ -196,8 +186,6 @@ module Twilio
|
|
196
186
|
'SortBy' => sort_by,
|
197
187
|
'SortDirection' => sort_direction,
|
198
188
|
'ValidUntilDate' => Twilio.serialize_iso8601_datetime(valid_until_date),
|
199
|
-
'ValidUntilDate<' => Twilio.serialize_iso8601_datetime(valid_until_date_before),
|
200
|
-
'ValidUntilDate>' => Twilio.serialize_iso8601_datetime(valid_until_date_after),
|
201
189
|
'PageToken' => page_token,
|
202
190
|
'Page' => page_number,
|
203
191
|
'PageSize' => page_size,
|
@@ -159,8 +159,6 @@ module Twilio
|
|
159
159
|
end
|
160
160
|
|
161
161
|
|
162
|
-
##
|
163
|
-
#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.
|
164
162
|
class CertificateContext < InstanceContext
|
165
163
|
##
|
166
164
|
# Initialize the CertificateContext
|
@@ -150,8 +150,6 @@ module Twilio
|
|
150
150
|
end
|
151
151
|
|
152
152
|
|
153
|
-
##
|
154
|
-
#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.
|
155
153
|
class DeploymentContext < InstanceContext
|
156
154
|
##
|
157
155
|
# Initialize the DeploymentContext
|
@@ -165,8 +165,6 @@ module Twilio
|
|
165
165
|
end
|
166
166
|
|
167
167
|
|
168
|
-
##
|
169
|
-
#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.
|
170
168
|
class DeviceContext < InstanceContext
|
171
169
|
##
|
172
170
|
# Initialize the DeviceContext
|
@@ -156,8 +156,6 @@ module Twilio
|
|
156
156
|
end
|
157
157
|
|
158
158
|
|
159
|
-
##
|
160
|
-
#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.
|
161
159
|
class KeyContext < InstanceContext
|
162
160
|
##
|
163
161
|
# Initialize the KeyContext
|
@@ -144,8 +144,6 @@ module Twilio
|
|
144
144
|
end
|
145
145
|
|
146
146
|
|
147
|
-
##
|
148
|
-
#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.
|
149
147
|
class FleetContext < InstanceContext
|
150
148
|
##
|
151
149
|
# Initialize the FleetContext
|
@@ -171,8 +171,6 @@ module Twilio
|
|
171
171
|
end
|
172
172
|
|
173
173
|
|
174
|
-
##
|
175
|
-
#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.
|
176
174
|
class AuthorizationDocumentContext < InstanceContext
|
177
175
|
##
|
178
176
|
# Initialize the AuthorizationDocumentContext
|
@@ -222,8 +222,6 @@ module Twilio
|
|
222
222
|
end
|
223
223
|
|
224
224
|
|
225
|
-
##
|
226
|
-
#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.
|
227
225
|
class HostedNumberOrderContext < InstanceContext
|
228
226
|
##
|
229
227
|
# Initialize the HostedNumberOrderContext
|
data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb
CHANGED
@@ -126,8 +126,6 @@ module Twilio
|
|
126
126
|
end
|
127
127
|
|
128
128
|
|
129
|
-
##
|
130
|
-
#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.
|
131
129
|
class AvailableAddOnExtensionContext < InstanceContext
|
132
130
|
##
|
133
131
|
# Initialize the AvailableAddOnExtensionContext
|
@@ -124,8 +124,6 @@ module Twilio
|
|
124
124
|
end
|
125
125
|
|
126
126
|
|
127
|
-
##
|
128
|
-
#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.
|
129
127
|
class AvailableAddOnContext < InstanceContext
|
130
128
|
##
|
131
129
|
# Initialize the AvailableAddOnContext
|
data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb
CHANGED
@@ -126,8 +126,6 @@ module Twilio
|
|
126
126
|
end
|
127
127
|
|
128
128
|
|
129
|
-
##
|
130
|
-
#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.
|
131
129
|
class InstalledAddOnExtensionContext < InstanceContext
|
132
130
|
##
|
133
131
|
# Initialize the InstalledAddOnExtensionContext
|