twilio-ruby 5.74.2 → 5.74.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +7 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +254 -0
  5. data/lib/twilio-ruby/rest/content/v1.rb +7 -0
  6. data/lib/twilio-ruby/rest/content.rb +6 -0
  7. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +314 -0
  8. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +394 -0
  9. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +84 -0
  10. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +105 -10
  11. data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +319 -0
  12. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +14 -6
  13. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +14 -6
  14. data/lib/twilio-ruby/rest/flex_api/v1.rb +39 -0
  15. data/lib/twilio-ruby/rest/flex_api.rb +22 -0
  16. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +14 -0
  17. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +297 -0
  18. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +290 -0
  19. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +317 -0
  20. data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +310 -0
  21. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +54 -0
  22. data/lib/twilio-ruby/rest/microvisor/v1.rb +32 -0
  23. data/lib/twilio-ruby/rest/microvisor.rb +16 -0
  24. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +3 -3
  25. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue_bulk_real_time_statistics.rb +149 -0
  26. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +23 -0
  27. data/lib/twilio-ruby/version.rb +1 -1
  28. metadata +11 -2
@@ -15,10 +15,42 @@ module Twilio
15
15
  def initialize(domain)
16
16
  super
17
17
  @version = 'v1'
18
+ @account_configs = nil
19
+ @account_secrets = nil
18
20
  @apps = nil
19
21
  @devices = nil
20
22
  end
21
23
 
24
+ ##
25
+ # @param [String] key The config key; up to 100 characters.
26
+ # @return [Twilio::REST::Microvisor::V1::AccountConfigContext] if key was passed.
27
+ # @return [Twilio::REST::Microvisor::V1::AccountConfigList]
28
+ def account_configs(key=:unset)
29
+ if key.nil?
30
+ raise ArgumentError, 'key cannot be nil'
31
+ end
32
+ if key == :unset
33
+ @account_configs ||= AccountConfigList.new self
34
+ else
35
+ AccountConfigContext.new(self, key)
36
+ end
37
+ end
38
+
39
+ ##
40
+ # @param [String] key The secret key; up to 100 characters.
41
+ # @return [Twilio::REST::Microvisor::V1::AccountSecretContext] if key was passed.
42
+ # @return [Twilio::REST::Microvisor::V1::AccountSecretList]
43
+ def account_secrets(key=:unset)
44
+ if key.nil?
45
+ raise ArgumentError, 'key cannot be nil'
46
+ end
47
+ if key == :unset
48
+ @account_secrets ||= AccountSecretList.new self
49
+ else
50
+ AccountSecretContext.new(self, key)
51
+ end
52
+ end
53
+
22
54
  ##
23
55
  # @param [String] sid A 34-character string that uniquely identifies this App.
24
56
  # @return [Twilio::REST::Microvisor::V1::AppContext] if sid was passed.
@@ -28,6 +28,22 @@ module Twilio
28
28
  @v1 ||= V1.new self
29
29
  end
30
30
 
31
+ ##
32
+ # @param [String] key The config key; up to 100 characters.
33
+ # @return [Twilio::REST::Microvisor::V1::AccountConfigInstance] if key was passed.
34
+ # @return [Twilio::REST::Microvisor::V1::AccountConfigList]
35
+ def account_configs(key=:unset)
36
+ self.v1.account_configs(key)
37
+ end
38
+
39
+ ##
40
+ # @param [String] key The secret key; up to 100 characters.
41
+ # @return [Twilio::REST::Microvisor::V1::AccountSecretInstance] if key was passed.
42
+ # @return [Twilio::REST::Microvisor::V1::AccountSecretList]
43
+ def account_secrets(key=:unset)
44
+ self.v1.account_secrets(key)
45
+ end
46
+
31
47
  ##
32
48
  # @param [String] sid A 34-character string that uniquely identifies this App.
33
49
  # @return [Twilio::REST::Microvisor::V1::AppInstance] if sid was passed.
@@ -58,7 +58,7 @@ module Twilio
58
58
  # @param [sms_command.Status] status The status of the SMS Command. Can be:
59
59
  # `queued`, `sent`, `delivered`, `received` or `failed`. See the {SMS Command
60
60
  # Status
61
- # Values}[https://www.twilio.com/docs/wireless/api/smscommand-resource#status-values]
61
+ # Values}[https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values]
62
62
  # for a description of each.
63
63
  # @param [sms_command.Direction] direction The direction of the SMS Command. Can
64
64
  # be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term
@@ -90,7 +90,7 @@ module Twilio
90
90
  # @param [sms_command.Status] status The status of the SMS Command. Can be:
91
91
  # `queued`, `sent`, `delivered`, `received` or `failed`. See the {SMS Command
92
92
  # Status
93
- # Values}[https://www.twilio.com/docs/wireless/api/smscommand-resource#status-values]
93
+ # Values}[https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values]
94
94
  # for a description of each.
95
95
  # @param [sms_command.Direction] direction The direction of the SMS Command. Can
96
96
  # be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term
@@ -133,7 +133,7 @@ module Twilio
133
133
  # @param [sms_command.Status] status The status of the SMS Command. Can be:
134
134
  # `queued`, `sent`, `delivered`, `received` or `failed`. See the {SMS Command
135
135
  # Status
136
- # Values}[https://www.twilio.com/docs/wireless/api/smscommand-resource#status-values]
136
+ # Values}[https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values]
137
137
  # for a description of each.
138
138
  # @param [sms_command.Direction] direction The direction of the SMS Command. Can
139
139
  # be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term
@@ -0,0 +1,149 @@
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 Taskrouter < Domain
12
+ class V1 < Version
13
+ class WorkspaceContext < InstanceContext
14
+ class TaskQueueBulkRealTimeStatisticsList < ListResource
15
+ ##
16
+ # Initialize the TaskQueueBulkRealTimeStatisticsList
17
+ # @param [Version] version Version that contains the resource
18
+ # @param [String] workspace_sid The SID of the Workspace that contains the
19
+ # TaskQueue.
20
+ # @return [TaskQueueBulkRealTimeStatisticsList] TaskQueueBulkRealTimeStatisticsList
21
+ def initialize(version, workspace_sid: nil)
22
+ super(version)
23
+
24
+ # Path Solution
25
+ @solution = {workspace_sid: workspace_sid}
26
+ @uri = "/Workspaces/#{@solution[:workspace_sid]}/TaskQueues/RealTimeStatistics"
27
+ end
28
+
29
+ ##
30
+ # Create the TaskQueueBulkRealTimeStatisticsInstance
31
+ # @return [TaskQueueBulkRealTimeStatisticsInstance] Created TaskQueueBulkRealTimeStatisticsInstance
32
+ def create
33
+ payload = @version.create('POST', @uri)
34
+
35
+ TaskQueueBulkRealTimeStatisticsInstance.new(
36
+ @version,
37
+ payload,
38
+ workspace_sid: @solution[:workspace_sid],
39
+ )
40
+ end
41
+
42
+ ##
43
+ # Provide a user friendly representation
44
+ def to_s
45
+ '#<Twilio.Taskrouter.V1.TaskQueueBulkRealTimeStatisticsList>'
46
+ end
47
+ end
48
+
49
+ class TaskQueueBulkRealTimeStatisticsPage < Page
50
+ ##
51
+ # Initialize the TaskQueueBulkRealTimeStatisticsPage
52
+ # @param [Version] version Version that contains the resource
53
+ # @param [Response] response Response from the API
54
+ # @param [Hash] solution Path solution for the resource
55
+ # @return [TaskQueueBulkRealTimeStatisticsPage] TaskQueueBulkRealTimeStatisticsPage
56
+ def initialize(version, response, solution)
57
+ super(version, response)
58
+
59
+ # Path Solution
60
+ @solution = solution
61
+ end
62
+
63
+ ##
64
+ # Build an instance of TaskQueueBulkRealTimeStatisticsInstance
65
+ # @param [Hash] payload Payload response from the API
66
+ # @return [TaskQueueBulkRealTimeStatisticsInstance] TaskQueueBulkRealTimeStatisticsInstance
67
+ def get_instance(payload)
68
+ TaskQueueBulkRealTimeStatisticsInstance.new(
69
+ @version,
70
+ payload,
71
+ workspace_sid: @solution[:workspace_sid],
72
+ )
73
+ end
74
+
75
+ ##
76
+ # Provide a user friendly representation
77
+ def to_s
78
+ '<Twilio.Taskrouter.V1.TaskQueueBulkRealTimeStatisticsPage>'
79
+ end
80
+ end
81
+
82
+ class TaskQueueBulkRealTimeStatisticsInstance < InstanceResource
83
+ ##
84
+ # Initialize the TaskQueueBulkRealTimeStatisticsInstance
85
+ # @param [Version] version Version that contains the resource
86
+ # @param [Hash] payload payload that contains response from Twilio
87
+ # @param [String] workspace_sid The SID of the Workspace that contains the
88
+ # TaskQueue.
89
+ # @return [TaskQueueBulkRealTimeStatisticsInstance] TaskQueueBulkRealTimeStatisticsInstance
90
+ def initialize(version, payload, workspace_sid: nil)
91
+ super(version)
92
+
93
+ # Marshaled Properties
94
+ @properties = {
95
+ 'account_sid' => payload['account_sid'],
96
+ 'workspace_sid' => payload['workspace_sid'],
97
+ 'task_queue_data' => payload['task_queue_data'],
98
+ 'task_queue_response_count' => payload['task_queue_response_count'] == nil ? payload['task_queue_response_count'] : payload['task_queue_response_count'].to_i,
99
+ 'url' => payload['url'],
100
+ }
101
+ end
102
+
103
+ ##
104
+ # @return [String] The SID of the Account that created the resource
105
+ def account_sid
106
+ @properties['account_sid']
107
+ end
108
+
109
+ ##
110
+ # @return [String] The SID of the Workspace that contains the TaskQueue
111
+ def workspace_sid
112
+ @properties['workspace_sid']
113
+ end
114
+
115
+ ##
116
+ # @return [Hash] Task Queue data grouped by task_queue_sid
117
+ def task_queue_data
118
+ @properties['task_queue_data']
119
+ end
120
+
121
+ ##
122
+ # @return [String] The number of TaskQueue statistics received
123
+ def task_queue_response_count
124
+ @properties['task_queue_response_count']
125
+ end
126
+
127
+ ##
128
+ # @return [String] The absolute URL of the TaskQueue statistics resource
129
+ def url
130
+ @properties['url']
131
+ end
132
+
133
+ ##
134
+ # Provide a user friendly representation
135
+ def to_s
136
+ "<Twilio.Taskrouter.V1.TaskQueueBulkRealTimeStatisticsInstance>"
137
+ end
138
+
139
+ ##
140
+ # Provide a detailed, user friendly representation
141
+ def inspect
142
+ "<Twilio.Taskrouter.V1.TaskQueueBulkRealTimeStatisticsInstance>"
143
+ end
144
+ end
145
+ end
146
+ end
147
+ end
148
+ end
149
+ end
@@ -220,6 +220,7 @@ module Twilio
220
220
  @real_time_statistics = nil
221
221
  @cumulative_statistics = nil
222
222
  @task_channels = nil
223
+ @bulk_real_time_statistics = nil
223
224
  end
224
225
 
225
226
  ##
@@ -439,6 +440,21 @@ module Twilio
439
440
  @task_channels
440
441
  end
441
442
 
443
+ ##
444
+ # Access the bulk_real_time_statistics
445
+ # @return [TaskQueueBulkRealTimeStatisticsList]
446
+ # @return [TaskQueueBulkRealTimeStatisticsContext]
447
+ def bulk_real_time_statistics
448
+ unless @bulk_real_time_statistics
449
+ @bulk_real_time_statistics = TaskQueueBulkRealTimeStatisticsList.new(
450
+ @version,
451
+ workspace_sid: @solution[:sid],
452
+ )
453
+ end
454
+
455
+ @bulk_real_time_statistics
456
+ end
457
+
442
458
  ##
443
459
  # Provide a user friendly representation
444
460
  def to_s
@@ -720,6 +736,13 @@ module Twilio
720
736
  context.task_channels
721
737
  end
722
738
 
739
+ ##
740
+ # Access the bulk_real_time_statistics
741
+ # @return [bulk_real_time_statistics] bulk_real_time_statistics
742
+ def bulk_real_time_statistics
743
+ context.bulk_real_time_statistics
744
+ end
745
+
723
746
  ##
724
747
  # Provide a user friendly representation
725
748
  def to_s
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.74.2'
2
+ VERSION = '5.74.3'
3
3
  end
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: 5.74.2
4
+ version: 5.74.3
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: 2023-01-25 00:00:00.000000000 Z
11
+ date: 2023-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -385,6 +385,7 @@ files:
385
385
  - lib/twilio-ruby/rest/content/v1.rb
386
386
  - lib/twilio-ruby/rest/content/v1/content.rb
387
387
  - lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb
388
+ - lib/twilio-ruby/rest/content/v1/legacy_content.rb
388
389
  - lib/twilio-ruby/rest/conversations.rb
389
390
  - lib/twilio-ruby/rest/conversations/v1.rb
390
391
  - lib/twilio-ruby/rest/conversations/v1/address_configuration.rb
@@ -430,8 +431,11 @@ files:
430
431
  - lib/twilio-ruby/rest/flex_api/v1/channel.rb
431
432
  - lib/twilio-ruby/rest/flex_api/v1/configuration.rb
432
433
  - lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb
434
+ - lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb
435
+ - lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb
433
436
  - lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb
434
437
  - lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb
438
+ - lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb
435
439
  - lib/twilio-ruby/rest/flex_api/v1/insights_session.rb
436
440
  - lib/twilio-ruby/rest/flex_api/v1/insights_settings_answersets.rb
437
441
  - lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb
@@ -512,8 +516,12 @@ files:
512
516
  - lib/twilio-ruby/rest/messaging/v1/usecase.rb
513
517
  - lib/twilio-ruby/rest/microvisor.rb
514
518
  - lib/twilio-ruby/rest/microvisor/v1.rb
519
+ - lib/twilio-ruby/rest/microvisor/v1/account_config.rb
520
+ - lib/twilio-ruby/rest/microvisor/v1/account_secret.rb
515
521
  - lib/twilio-ruby/rest/microvisor/v1/app.rb
516
522
  - lib/twilio-ruby/rest/microvisor/v1/device.rb
523
+ - lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb
524
+ - lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb
517
525
  - lib/twilio-ruby/rest/monitor.rb
518
526
  - lib/twilio-ruby/rest/monitor/v1.rb
519
527
  - lib/twilio-ruby/rest/monitor/v1/alert.rb
@@ -693,6 +701,7 @@ files:
693
701
  - lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb
694
702
  - lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb
695
703
  - lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb
704
+ - lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue_bulk_real_time_statistics.rb
696
705
  - lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb
697
706
  - lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb
698
707
  - lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb