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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.0.pre.rc.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -270,6 +270,8 @@ files:
|
|
270
270
|
- lib/twilio-ruby/rest/api/v2010/account/balance.rb
|
271
271
|
- lib/twilio-ruby/rest/api/v2010/account/call.rb
|
272
272
|
- lib/twilio-ruby/rest/api/v2010/account/call/event.rb
|
273
|
+
- lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb
|
274
|
+
- lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb
|
273
275
|
- lib/twilio-ruby/rest/api/v2010/account/call/notification.rb
|
274
276
|
- lib/twilio-ruby/rest/api/v2010/account/call/payment.rb
|
275
277
|
- lib/twilio-ruby/rest/api/v2010/account/call/recording.rb
|
@@ -371,6 +373,7 @@ files:
|
|
371
373
|
- lib/twilio-ruby/rest/content.rb
|
372
374
|
- lib/twilio-ruby/rest/content/v1.rb
|
373
375
|
- lib/twilio-ruby/rest/content/v1/content.rb
|
376
|
+
- lib/twilio-ruby/rest/content/v1/content/approval_create.rb
|
374
377
|
- lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb
|
375
378
|
- lib/twilio-ruby/rest/content/v1/content_and_approvals.rb
|
376
379
|
- lib/twilio-ruby/rest/content/v1/legacy_content.rb
|
@@ -423,6 +426,8 @@ files:
|
|
423
426
|
- lib/twilio-ruby/rest/flex_api/v1/configuration.rb
|
424
427
|
- lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb
|
425
428
|
- lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb
|
429
|
+
- lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb
|
430
|
+
- lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb
|
426
431
|
- lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb
|
427
432
|
- lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb
|
428
433
|
- lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb
|
@@ -436,14 +441,6 @@ files:
|
|
436
441
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb
|
437
442
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb
|
438
443
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb
|
439
|
-
- lib/twilio-ruby/rest/flex_api/v1/plugin.rb
|
440
|
-
- lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb
|
441
|
-
- lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb
|
442
|
-
- lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb
|
443
|
-
- lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb
|
444
|
-
- lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb
|
445
|
-
- lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb
|
446
|
-
- lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb
|
447
444
|
- lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb
|
448
445
|
- lib/twilio-ruby/rest/flex_api/v1/web_channel.rb
|
449
446
|
- lib/twilio-ruby/rest/flex_api/v2.rb
|
@@ -560,7 +557,9 @@ files:
|
|
560
557
|
- lib/twilio-ruby/rest/numbers.rb
|
561
558
|
- lib/twilio-ruby/rest/numbers/v1.rb
|
562
559
|
- lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb
|
560
|
+
- lib/twilio-ruby/rest/numbers/v1/eligibility.rb
|
563
561
|
- lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb
|
562
|
+
- lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb
|
564
563
|
- lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb
|
565
564
|
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
|
566
565
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
@@ -612,6 +611,11 @@ files:
|
|
612
611
|
- lib/twilio-ruby/rest/preview/wireless/sim.rb
|
613
612
|
- lib/twilio-ruby/rest/preview/wireless/sim/usage.rb
|
614
613
|
- lib/twilio-ruby/rest/preview_base.rb
|
614
|
+
- lib/twilio-ruby/rest/preview_messaging.rb
|
615
|
+
- lib/twilio-ruby/rest/preview_messaging/v1.rb
|
616
|
+
- lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb
|
617
|
+
- lib/twilio-ruby/rest/preview_messaging/v1/message.rb
|
618
|
+
- lib/twilio-ruby/rest/preview_messaging_base.rb
|
615
619
|
- lib/twilio-ruby/rest/pricing.rb
|
616
620
|
- lib/twilio-ruby/rest/pricing/v1.rb
|
617
621
|
- lib/twilio-ruby/rest/pricing/v1/messaging.rb
|
@@ -718,6 +722,7 @@ files:
|
|
718
722
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb
|
719
723
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb
|
720
724
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb
|
725
|
+
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb
|
721
726
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb
|
722
727
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb
|
723
728
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb
|
@@ -857,9 +862,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
857
862
|
version: 2.0.0
|
858
863
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
859
864
|
requirements:
|
860
|
-
- - "
|
865
|
+
- - ">"
|
861
866
|
- !ruby/object:Gem::Version
|
862
|
-
version:
|
867
|
+
version: 1.3.1
|
863
868
|
requirements: []
|
864
869
|
rubyforge_project:
|
865
870
|
rubygems_version: 2.6.14.4
|
@@ -1,384 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
-
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
-
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
-
#
|
7
|
-
# Twilio - Flex
|
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 FlexApi < FlexApiBase
|
19
|
-
class V1 < Version
|
20
|
-
class PluginContext < InstanceContext
|
21
|
-
|
22
|
-
class PluginVersionsList < ListResource
|
23
|
-
|
24
|
-
##
|
25
|
-
# Initialize the PluginVersionsList
|
26
|
-
# @param [Version] version Version that contains the resource
|
27
|
-
# @return [PluginVersionsList] PluginVersionsList
|
28
|
-
def initialize(version, plugin_sid: nil)
|
29
|
-
super(version)
|
30
|
-
# Path Solution
|
31
|
-
@solution = { plugin_sid: plugin_sid }
|
32
|
-
@uri = "/PluginService/Plugins/#{@solution[:plugin_sid]}/Versions"
|
33
|
-
|
34
|
-
end
|
35
|
-
##
|
36
|
-
# Create the PluginVersionsInstance
|
37
|
-
# @param [String] version The Flex Plugin Version's version.
|
38
|
-
# @param [String] plugin_url The URL of the Flex Plugin Version bundle
|
39
|
-
# @param [String] changelog The changelog of the Flex Plugin Version.
|
40
|
-
# @param [Boolean] private Whether this Flex Plugin Version requires authorization.
|
41
|
-
# @param [String] flex_metadata The Flex-Metadata HTTP request header
|
42
|
-
# @return [PluginVersionsInstance] Created PluginVersionsInstance
|
43
|
-
def create(
|
44
|
-
version: nil,
|
45
|
-
plugin_url: nil,
|
46
|
-
changelog: :unset,
|
47
|
-
private: :unset,
|
48
|
-
flex_metadata: :unset
|
49
|
-
)
|
50
|
-
|
51
|
-
data = Twilio::Values.of({
|
52
|
-
'Version' => version,
|
53
|
-
'PluginUrl' => plugin_url,
|
54
|
-
'Changelog' => changelog,
|
55
|
-
'Private' => private,
|
56
|
-
})
|
57
|
-
|
58
|
-
|
59
|
-
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
60
|
-
payload = @version.create('POST', @uri, data: data, headers: headers)
|
61
|
-
PluginVersionsInstance.new(
|
62
|
-
@version,
|
63
|
-
payload,
|
64
|
-
plugin_sid: @solution[:plugin_sid],
|
65
|
-
)
|
66
|
-
end
|
67
|
-
|
68
|
-
|
69
|
-
##
|
70
|
-
# Lists PluginVersionsInstance records from the API as a list.
|
71
|
-
# Unlike stream(), this operation is eager and will load `limit` records into
|
72
|
-
# memory before returning.
|
73
|
-
# @param [String] flex_metadata The Flex-Metadata HTTP request header
|
74
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
75
|
-
# guarantees to never return more than limit. Default is no limit
|
76
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
77
|
-
# not set will use the default value of 50 records. If no page_size is defined
|
78
|
-
# but a limit is defined, stream() will attempt to read the limit with the most
|
79
|
-
# efficient page size, i.e. min(limit, 1000)
|
80
|
-
# @return [Array] Array of up to limit results
|
81
|
-
def list(flex_metadata: :unset, limit: nil, page_size: nil)
|
82
|
-
self.stream(
|
83
|
-
flex_metadata: flex_metadata,
|
84
|
-
limit: limit,
|
85
|
-
page_size: page_size
|
86
|
-
).entries
|
87
|
-
end
|
88
|
-
|
89
|
-
##
|
90
|
-
# Streams Instance records from the API as an Enumerable.
|
91
|
-
# This operation lazily loads records as efficiently as possible until the limit
|
92
|
-
# is reached.
|
93
|
-
# @param [String] flex_metadata The Flex-Metadata HTTP request header
|
94
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
95
|
-
# guarantees to never return more than limit. Default is no limit
|
96
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
97
|
-
# not set will use the default value of 50 records. If no page_size is defined
|
98
|
-
# but a limit is defined, stream() will attempt to read the limit with the most
|
99
|
-
# efficient page size, i.e. min(limit, 1000)
|
100
|
-
# @return [Enumerable] Enumerable that will yield up to limit results
|
101
|
-
def stream(flex_metadata: :unset, limit: nil, page_size: nil)
|
102
|
-
limits = @version.read_limits(limit, page_size)
|
103
|
-
|
104
|
-
page = self.page(
|
105
|
-
flex_metadata: flex_metadata,
|
106
|
-
page_size: limits[:page_size], )
|
107
|
-
|
108
|
-
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
109
|
-
end
|
110
|
-
|
111
|
-
##
|
112
|
-
# When passed a block, yields PluginVersionsInstance records from the API.
|
113
|
-
# This operation lazily loads records as efficiently as possible until the limit
|
114
|
-
# is reached.
|
115
|
-
def each
|
116
|
-
limits = @version.read_limits
|
117
|
-
|
118
|
-
page = self.page(page_size: limits[:page_size], )
|
119
|
-
|
120
|
-
@version.stream(page,
|
121
|
-
limit: limits[:limit],
|
122
|
-
page_limit: limits[:page_limit]).each {|x| yield x}
|
123
|
-
end
|
124
|
-
|
125
|
-
##
|
126
|
-
# Retrieve a single page of PluginVersionsInstance records from the API.
|
127
|
-
# Request is executed immediately.
|
128
|
-
# @param [String] flex_metadata The Flex-Metadata HTTP request header
|
129
|
-
# @param [String] page_token PageToken provided by the API
|
130
|
-
# @param [Integer] page_number Page Number, this value is simply for client state
|
131
|
-
# @param [Integer] page_size Number of records to return, defaults to 50
|
132
|
-
# @return [Page] Page of PluginVersionsInstance
|
133
|
-
def page(flex_metadata: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
134
|
-
params = Twilio::Values.of({
|
135
|
-
'Flex-Metadata' => flex_metadata,
|
136
|
-
'PageToken' => page_token,
|
137
|
-
'Page' => page_number,
|
138
|
-
'PageSize' => page_size,
|
139
|
-
})
|
140
|
-
|
141
|
-
response = @version.page('GET', @uri, params: params)
|
142
|
-
|
143
|
-
PluginVersionsPage.new(@version, response, @solution)
|
144
|
-
end
|
145
|
-
|
146
|
-
##
|
147
|
-
# Retrieve a single page of PluginVersionsInstance records from the API.
|
148
|
-
# Request is executed immediately.
|
149
|
-
# @param [String] target_url API-generated URL for the requested results page
|
150
|
-
# @return [Page] Page of PluginVersionsInstance
|
151
|
-
def get_page(target_url)
|
152
|
-
response = @version.domain.request(
|
153
|
-
'GET',
|
154
|
-
target_url
|
155
|
-
)
|
156
|
-
PluginVersionsPage.new(@version, response, @solution)
|
157
|
-
end
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
# Provide a user friendly representation
|
162
|
-
def to_s
|
163
|
-
'#<Twilio.FlexApi.V1.PluginVersionsList>'
|
164
|
-
end
|
165
|
-
end
|
166
|
-
|
167
|
-
|
168
|
-
class PluginVersionsContext < InstanceContext
|
169
|
-
##
|
170
|
-
# Initialize the PluginVersionsContext
|
171
|
-
# @param [Version] version Version that contains the resource
|
172
|
-
# @param [String] plugin_sid The SID of the Flex Plugin the resource to belongs to.
|
173
|
-
# @param [String] sid The SID of the Flex Plugin Version resource to fetch.
|
174
|
-
# @return [PluginVersionsContext] PluginVersionsContext
|
175
|
-
def initialize(version, plugin_sid, sid)
|
176
|
-
super(version)
|
177
|
-
|
178
|
-
# Path Solution
|
179
|
-
@solution = { plugin_sid: plugin_sid, sid: sid, }
|
180
|
-
@uri = "/PluginService/Plugins/#{@solution[:plugin_sid]}/Versions/#{@solution[:sid]}"
|
181
|
-
|
182
|
-
|
183
|
-
end
|
184
|
-
##
|
185
|
-
# Fetch the PluginVersionsInstance
|
186
|
-
# @param [String] flex_metadata The Flex-Metadata HTTP request header
|
187
|
-
# @return [PluginVersionsInstance] Fetched PluginVersionsInstance
|
188
|
-
def fetch(
|
189
|
-
flex_metadata: :unset
|
190
|
-
)
|
191
|
-
|
192
|
-
|
193
|
-
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
194
|
-
payload = @version.fetch('GET', @uri, headers: headers)
|
195
|
-
PluginVersionsInstance.new(
|
196
|
-
@version,
|
197
|
-
payload,
|
198
|
-
plugin_sid: @solution[:plugin_sid],
|
199
|
-
sid: @solution[:sid],
|
200
|
-
)
|
201
|
-
end
|
202
|
-
|
203
|
-
|
204
|
-
##
|
205
|
-
# Provide a user friendly representation
|
206
|
-
def to_s
|
207
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
208
|
-
"#<Twilio.FlexApi.V1.PluginVersionsContext #{context}>"
|
209
|
-
end
|
210
|
-
|
211
|
-
##
|
212
|
-
# Provide a detailed, user friendly representation
|
213
|
-
def inspect
|
214
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
215
|
-
"#<Twilio.FlexApi.V1.PluginVersionsContext #{context}>"
|
216
|
-
end
|
217
|
-
end
|
218
|
-
|
219
|
-
class PluginVersionsPage < Page
|
220
|
-
##
|
221
|
-
# Initialize the PluginVersionsPage
|
222
|
-
# @param [Version] version Version that contains the resource
|
223
|
-
# @param [Response] response Response from the API
|
224
|
-
# @param [Hash] solution Path solution for the resource
|
225
|
-
# @return [PluginVersionsPage] PluginVersionsPage
|
226
|
-
def initialize(version, response, solution)
|
227
|
-
super(version, response)
|
228
|
-
|
229
|
-
# Path Solution
|
230
|
-
@solution = solution
|
231
|
-
end
|
232
|
-
|
233
|
-
##
|
234
|
-
# Build an instance of PluginVersionsInstance
|
235
|
-
# @param [Hash] payload Payload response from the API
|
236
|
-
# @return [PluginVersionsInstance] PluginVersionsInstance
|
237
|
-
def get_instance(payload)
|
238
|
-
PluginVersionsInstance.new(@version, payload, plugin_sid: @solution[:plugin_sid])
|
239
|
-
end
|
240
|
-
|
241
|
-
##
|
242
|
-
# Provide a user friendly representation
|
243
|
-
def to_s
|
244
|
-
'<Twilio.FlexApi.V1.PluginVersionsPage>'
|
245
|
-
end
|
246
|
-
end
|
247
|
-
class PluginVersionsInstance < InstanceResource
|
248
|
-
##
|
249
|
-
# Initialize the PluginVersionsInstance
|
250
|
-
# @param [Version] version Version that contains the resource
|
251
|
-
# @param [Hash] payload payload that contains response from Twilio
|
252
|
-
# @param [String] account_sid The SID of the
|
253
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this PluginVersions
|
254
|
-
# resource.
|
255
|
-
# @param [String] sid The SID of the Call resource to fetch.
|
256
|
-
# @return [PluginVersionsInstance] PluginVersionsInstance
|
257
|
-
def initialize(version, payload , plugin_sid: nil, sid: nil)
|
258
|
-
super(version)
|
259
|
-
|
260
|
-
# Marshaled Properties
|
261
|
-
@properties = {
|
262
|
-
'sid' => payload['sid'],
|
263
|
-
'plugin_sid' => payload['plugin_sid'],
|
264
|
-
'account_sid' => payload['account_sid'],
|
265
|
-
'version' => payload['version'],
|
266
|
-
'plugin_url' => payload['plugin_url'],
|
267
|
-
'changelog' => payload['changelog'],
|
268
|
-
'private' => payload['private'],
|
269
|
-
'archived' => payload['archived'],
|
270
|
-
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
271
|
-
'url' => payload['url'],
|
272
|
-
}
|
273
|
-
|
274
|
-
# Context
|
275
|
-
@instance_context = nil
|
276
|
-
@params = { 'plugin_sid' => plugin_sid || @properties['plugin_sid'] ,'sid' => sid || @properties['sid'] , }
|
277
|
-
end
|
278
|
-
|
279
|
-
##
|
280
|
-
# Generate an instance context for the instance, the context is capable of
|
281
|
-
# performing various actions. All instance actions are proxied to the context
|
282
|
-
# @return [PluginVersionsContext] CallContext for this CallInstance
|
283
|
-
def context
|
284
|
-
unless @instance_context
|
285
|
-
@instance_context = PluginVersionsContext.new(@version , @params['plugin_sid'], @params['sid'])
|
286
|
-
end
|
287
|
-
@instance_context
|
288
|
-
end
|
289
|
-
|
290
|
-
##
|
291
|
-
# @return [String] The unique string that we created to identify the Flex Plugin Version resource.
|
292
|
-
def sid
|
293
|
-
@properties['sid']
|
294
|
-
end
|
295
|
-
|
296
|
-
##
|
297
|
-
# @return [String] The SID of the Flex Plugin resource this Flex Plugin Version belongs to.
|
298
|
-
def plugin_sid
|
299
|
-
@properties['plugin_sid']
|
300
|
-
end
|
301
|
-
|
302
|
-
##
|
303
|
-
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin Version resource and owns this resource.
|
304
|
-
def account_sid
|
305
|
-
@properties['account_sid']
|
306
|
-
end
|
307
|
-
|
308
|
-
##
|
309
|
-
# @return [String] The unique version of this Flex Plugin Version.
|
310
|
-
def version
|
311
|
-
@properties['version']
|
312
|
-
end
|
313
|
-
|
314
|
-
##
|
315
|
-
# @return [String] The URL of where the Flex Plugin Version JavaScript bundle is hosted on.
|
316
|
-
def plugin_url
|
317
|
-
@properties['plugin_url']
|
318
|
-
end
|
319
|
-
|
320
|
-
##
|
321
|
-
# @return [String] A changelog that describes the changes this Flex Plugin Version brings.
|
322
|
-
def changelog
|
323
|
-
@properties['changelog']
|
324
|
-
end
|
325
|
-
|
326
|
-
##
|
327
|
-
# @return [Boolean] Whether to inject credentials while accessing this Plugin Version. The default value is false.
|
328
|
-
def private
|
329
|
-
@properties['private']
|
330
|
-
end
|
331
|
-
|
332
|
-
##
|
333
|
-
# @return [Boolean] Whether the Flex Plugin Version is archived. The default value is false.
|
334
|
-
def archived
|
335
|
-
@properties['archived']
|
336
|
-
end
|
337
|
-
|
338
|
-
##
|
339
|
-
# @return [Time] The date and time in GMT when the Flex Plugin Version was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
340
|
-
def date_created
|
341
|
-
@properties['date_created']
|
342
|
-
end
|
343
|
-
|
344
|
-
##
|
345
|
-
# @return [String] The absolute URL of the Flex Plugin Version resource.
|
346
|
-
def url
|
347
|
-
@properties['url']
|
348
|
-
end
|
349
|
-
|
350
|
-
##
|
351
|
-
# Fetch the PluginVersionsInstance
|
352
|
-
# @param [String] flex_metadata The Flex-Metadata HTTP request header
|
353
|
-
# @return [PluginVersionsInstance] Fetched PluginVersionsInstance
|
354
|
-
def fetch(
|
355
|
-
flex_metadata: :unset
|
356
|
-
)
|
357
|
-
|
358
|
-
context.fetch(
|
359
|
-
flex_metadata: flex_metadata,
|
360
|
-
)
|
361
|
-
end
|
362
|
-
|
363
|
-
##
|
364
|
-
# Provide a user friendly representation
|
365
|
-
def to_s
|
366
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
367
|
-
"<Twilio.FlexApi.V1.PluginVersionsInstance #{values}>"
|
368
|
-
end
|
369
|
-
|
370
|
-
##
|
371
|
-
# Provide a detailed, user friendly representation
|
372
|
-
def inspect
|
373
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
374
|
-
"<Twilio.FlexApi.V1.PluginVersionsInstance #{values}>"
|
375
|
-
end
|
376
|
-
end
|
377
|
-
|
378
|
-
end
|
379
|
-
end
|
380
|
-
end
|
381
|
-
end
|
382
|
-
end
|
383
|
-
|
384
|
-
|