twilio-ruby 5.58.1 → 5.60.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGES.md +83 -0
- data/README.md +3 -3
- data/lib/twilio-ruby/http/http_client.rb +1 -1
- data/lib/twilio-ruby/jwt/access_token.rb +13 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +667 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +27 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +11 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +11 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +11 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +17 -10
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +18 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +35 -35
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +384 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +221 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +390 -0
- data/lib/twilio-ruby/rest/media/v1.rb +60 -0
- data/lib/twilio-ruby/rest/media.rb +56 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +272 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +79 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +9 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +29 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +59 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +23 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +30 -20
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +6 -2
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +10 -6
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +11 -9
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +8 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +7 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -5
- data/lib/twilio-ruby/rest/verify/v2/template.rb +206 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +7 -0
- data/lib/twilio-ruby/rest/verify.rb +6 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +12 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +13 -3
@@ -0,0 +1,188 @@
|
|
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 Numbers < Domain
|
12
|
+
class V2 < Version
|
13
|
+
class RegulatoryComplianceList < ListResource
|
14
|
+
class BundleContext < InstanceContext
|
15
|
+
##
|
16
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
17
|
+
class BundleCopyList < ListResource
|
18
|
+
##
|
19
|
+
# Initialize the BundleCopyList
|
20
|
+
# @param [Version] version Version that contains the resource
|
21
|
+
# @param [String] bundle_sid The unique string that we created to identify the
|
22
|
+
# Bundle resource.
|
23
|
+
# @return [BundleCopyList] BundleCopyList
|
24
|
+
def initialize(version, bundle_sid: nil)
|
25
|
+
super(version)
|
26
|
+
|
27
|
+
# Path Solution
|
28
|
+
@solution = {bundle_sid: bundle_sid}
|
29
|
+
@uri = "/RegulatoryCompliance/Bundles/#{@solution[:bundle_sid]}/Copies"
|
30
|
+
end
|
31
|
+
|
32
|
+
##
|
33
|
+
# Create the BundleCopyInstance
|
34
|
+
# @param [String] friendly_name The string that you assigned to describe the
|
35
|
+
# copied bundle.
|
36
|
+
# @return [BundleCopyInstance] Created BundleCopyInstance
|
37
|
+
def create(friendly_name: :unset)
|
38
|
+
data = Twilio::Values.of({'FriendlyName' => friendly_name, })
|
39
|
+
|
40
|
+
payload = @version.create('POST', @uri, data: data)
|
41
|
+
|
42
|
+
BundleCopyInstance.new(@version, payload, bundle_sid: @solution[:bundle_sid], )
|
43
|
+
end
|
44
|
+
|
45
|
+
##
|
46
|
+
# Provide a user friendly representation
|
47
|
+
def to_s
|
48
|
+
'#<Twilio.Numbers.V2.BundleCopyList>'
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
##
|
53
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
54
|
+
class BundleCopyPage < Page
|
55
|
+
##
|
56
|
+
# Initialize the BundleCopyPage
|
57
|
+
# @param [Version] version Version that contains the resource
|
58
|
+
# @param [Response] response Response from the API
|
59
|
+
# @param [Hash] solution Path solution for the resource
|
60
|
+
# @return [BundleCopyPage] BundleCopyPage
|
61
|
+
def initialize(version, response, solution)
|
62
|
+
super(version, response)
|
63
|
+
|
64
|
+
# Path Solution
|
65
|
+
@solution = solution
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# Build an instance of BundleCopyInstance
|
70
|
+
# @param [Hash] payload Payload response from the API
|
71
|
+
# @return [BundleCopyInstance] BundleCopyInstance
|
72
|
+
def get_instance(payload)
|
73
|
+
BundleCopyInstance.new(@version, payload, bundle_sid: @solution[:bundle_sid], )
|
74
|
+
end
|
75
|
+
|
76
|
+
##
|
77
|
+
# Provide a user friendly representation
|
78
|
+
def to_s
|
79
|
+
'<Twilio.Numbers.V2.BundleCopyPage>'
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
##
|
84
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
85
|
+
class BundleCopyInstance < InstanceResource
|
86
|
+
##
|
87
|
+
# Initialize the BundleCopyInstance
|
88
|
+
# @param [Version] version Version that contains the resource
|
89
|
+
# @param [Hash] payload payload that contains response from Twilio
|
90
|
+
# @param [String] bundle_sid The unique string that we created to identify the
|
91
|
+
# Bundle resource.
|
92
|
+
# @return [BundleCopyInstance] BundleCopyInstance
|
93
|
+
def initialize(version, payload, bundle_sid: nil)
|
94
|
+
super(version)
|
95
|
+
|
96
|
+
# Marshaled Properties
|
97
|
+
@properties = {
|
98
|
+
'sid' => payload['sid'],
|
99
|
+
'account_sid' => payload['account_sid'],
|
100
|
+
'regulation_sid' => payload['regulation_sid'],
|
101
|
+
'friendly_name' => payload['friendly_name'],
|
102
|
+
'status' => payload['status'],
|
103
|
+
'valid_until' => Twilio.deserialize_iso8601_datetime(payload['valid_until']),
|
104
|
+
'email' => payload['email'],
|
105
|
+
'status_callback' => payload['status_callback'],
|
106
|
+
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
107
|
+
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
108
|
+
}
|
109
|
+
end
|
110
|
+
|
111
|
+
##
|
112
|
+
# @return [String] The unique string that identifies the resource
|
113
|
+
def sid
|
114
|
+
@properties['sid']
|
115
|
+
end
|
116
|
+
|
117
|
+
##
|
118
|
+
# @return [String] The SID of the Account that created the resource
|
119
|
+
def account_sid
|
120
|
+
@properties['account_sid']
|
121
|
+
end
|
122
|
+
|
123
|
+
##
|
124
|
+
# @return [String] The unique string of a regulation
|
125
|
+
def regulation_sid
|
126
|
+
@properties['regulation_sid']
|
127
|
+
end
|
128
|
+
|
129
|
+
##
|
130
|
+
# @return [String] The string that you assigned to describe the resource
|
131
|
+
def friendly_name
|
132
|
+
@properties['friendly_name']
|
133
|
+
end
|
134
|
+
|
135
|
+
##
|
136
|
+
# @return [bundle_copy.Status] The verification status of the Bundle resource
|
137
|
+
def status
|
138
|
+
@properties['status']
|
139
|
+
end
|
140
|
+
|
141
|
+
##
|
142
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource will be valid until
|
143
|
+
def valid_until
|
144
|
+
@properties['valid_until']
|
145
|
+
end
|
146
|
+
|
147
|
+
##
|
148
|
+
# @return [String] The email address
|
149
|
+
def email
|
150
|
+
@properties['email']
|
151
|
+
end
|
152
|
+
|
153
|
+
##
|
154
|
+
# @return [String] The URL we call to inform your application of status changes
|
155
|
+
def status_callback
|
156
|
+
@properties['status_callback']
|
157
|
+
end
|
158
|
+
|
159
|
+
##
|
160
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
161
|
+
def date_created
|
162
|
+
@properties['date_created']
|
163
|
+
end
|
164
|
+
|
165
|
+
##
|
166
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
167
|
+
def date_updated
|
168
|
+
@properties['date_updated']
|
169
|
+
end
|
170
|
+
|
171
|
+
##
|
172
|
+
# Provide a user friendly representation
|
173
|
+
def to_s
|
174
|
+
"<Twilio.Numbers.V2.BundleCopyInstance>"
|
175
|
+
end
|
176
|
+
|
177
|
+
##
|
178
|
+
# Provide a detailed, user friendly representation
|
179
|
+
def inspect
|
180
|
+
"<Twilio.Numbers.V2.BundleCopyInstance>"
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
@@ -0,0 +1,188 @@
|
|
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 Numbers < Domain
|
12
|
+
class V2 < Version
|
13
|
+
class RegulatoryComplianceList < ListResource
|
14
|
+
class BundleContext < InstanceContext
|
15
|
+
##
|
16
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
17
|
+
class ReplaceItemsList < ListResource
|
18
|
+
##
|
19
|
+
# Initialize the ReplaceItemsList
|
20
|
+
# @param [Version] version Version that contains the resource
|
21
|
+
# @param [String] bundle_sid The unique string that we created to identify the
|
22
|
+
# Bundle resource.
|
23
|
+
# @return [ReplaceItemsList] ReplaceItemsList
|
24
|
+
def initialize(version, bundle_sid: nil)
|
25
|
+
super(version)
|
26
|
+
|
27
|
+
# Path Solution
|
28
|
+
@solution = {bundle_sid: bundle_sid}
|
29
|
+
@uri = "/RegulatoryCompliance/Bundles/#{@solution[:bundle_sid]}/ReplaceItems"
|
30
|
+
end
|
31
|
+
|
32
|
+
##
|
33
|
+
# Create the ReplaceItemsInstance
|
34
|
+
# @param [String] from_bundle_sid The source bundle sid to copy the item
|
35
|
+
# assignments from.
|
36
|
+
# @return [ReplaceItemsInstance] Created ReplaceItemsInstance
|
37
|
+
def create(from_bundle_sid: nil)
|
38
|
+
data = Twilio::Values.of({'FromBundleSid' => from_bundle_sid, })
|
39
|
+
|
40
|
+
payload = @version.create('POST', @uri, data: data)
|
41
|
+
|
42
|
+
ReplaceItemsInstance.new(@version, payload, bundle_sid: @solution[:bundle_sid], )
|
43
|
+
end
|
44
|
+
|
45
|
+
##
|
46
|
+
# Provide a user friendly representation
|
47
|
+
def to_s
|
48
|
+
'#<Twilio.Numbers.V2.ReplaceItemsList>'
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
##
|
53
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
54
|
+
class ReplaceItemsPage < Page
|
55
|
+
##
|
56
|
+
# Initialize the ReplaceItemsPage
|
57
|
+
# @param [Version] version Version that contains the resource
|
58
|
+
# @param [Response] response Response from the API
|
59
|
+
# @param [Hash] solution Path solution for the resource
|
60
|
+
# @return [ReplaceItemsPage] ReplaceItemsPage
|
61
|
+
def initialize(version, response, solution)
|
62
|
+
super(version, response)
|
63
|
+
|
64
|
+
# Path Solution
|
65
|
+
@solution = solution
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# Build an instance of ReplaceItemsInstance
|
70
|
+
# @param [Hash] payload Payload response from the API
|
71
|
+
# @return [ReplaceItemsInstance] ReplaceItemsInstance
|
72
|
+
def get_instance(payload)
|
73
|
+
ReplaceItemsInstance.new(@version, payload, bundle_sid: @solution[:bundle_sid], )
|
74
|
+
end
|
75
|
+
|
76
|
+
##
|
77
|
+
# Provide a user friendly representation
|
78
|
+
def to_s
|
79
|
+
'<Twilio.Numbers.V2.ReplaceItemsPage>'
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
##
|
84
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
85
|
+
class ReplaceItemsInstance < InstanceResource
|
86
|
+
##
|
87
|
+
# Initialize the ReplaceItemsInstance
|
88
|
+
# @param [Version] version Version that contains the resource
|
89
|
+
# @param [Hash] payload payload that contains response from Twilio
|
90
|
+
# @param [String] bundle_sid The unique string that we created to identify the
|
91
|
+
# Bundle resource.
|
92
|
+
# @return [ReplaceItemsInstance] ReplaceItemsInstance
|
93
|
+
def initialize(version, payload, bundle_sid: nil)
|
94
|
+
super(version)
|
95
|
+
|
96
|
+
# Marshaled Properties
|
97
|
+
@properties = {
|
98
|
+
'sid' => payload['sid'],
|
99
|
+
'account_sid' => payload['account_sid'],
|
100
|
+
'regulation_sid' => payload['regulation_sid'],
|
101
|
+
'friendly_name' => payload['friendly_name'],
|
102
|
+
'status' => payload['status'],
|
103
|
+
'valid_until' => Twilio.deserialize_iso8601_datetime(payload['valid_until']),
|
104
|
+
'email' => payload['email'],
|
105
|
+
'status_callback' => payload['status_callback'],
|
106
|
+
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
107
|
+
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
108
|
+
}
|
109
|
+
end
|
110
|
+
|
111
|
+
##
|
112
|
+
# @return [String] The unique string that identifies the resource
|
113
|
+
def sid
|
114
|
+
@properties['sid']
|
115
|
+
end
|
116
|
+
|
117
|
+
##
|
118
|
+
# @return [String] The SID of the Account that created the resource
|
119
|
+
def account_sid
|
120
|
+
@properties['account_sid']
|
121
|
+
end
|
122
|
+
|
123
|
+
##
|
124
|
+
# @return [String] The unique string of a regulation
|
125
|
+
def regulation_sid
|
126
|
+
@properties['regulation_sid']
|
127
|
+
end
|
128
|
+
|
129
|
+
##
|
130
|
+
# @return [String] The string that you assigned to describe the resource
|
131
|
+
def friendly_name
|
132
|
+
@properties['friendly_name']
|
133
|
+
end
|
134
|
+
|
135
|
+
##
|
136
|
+
# @return [replace_items.Status] The verification status of the Bundle resource
|
137
|
+
def status
|
138
|
+
@properties['status']
|
139
|
+
end
|
140
|
+
|
141
|
+
##
|
142
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource will be valid until
|
143
|
+
def valid_until
|
144
|
+
@properties['valid_until']
|
145
|
+
end
|
146
|
+
|
147
|
+
##
|
148
|
+
# @return [String] The email address
|
149
|
+
def email
|
150
|
+
@properties['email']
|
151
|
+
end
|
152
|
+
|
153
|
+
##
|
154
|
+
# @return [String] The URL we call to inform your application of status changes
|
155
|
+
def status_callback
|
156
|
+
@properties['status_callback']
|
157
|
+
end
|
158
|
+
|
159
|
+
##
|
160
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
161
|
+
def date_created
|
162
|
+
@properties['date_created']
|
163
|
+
end
|
164
|
+
|
165
|
+
##
|
166
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
167
|
+
def date_updated
|
168
|
+
@properties['date_updated']
|
169
|
+
end
|
170
|
+
|
171
|
+
##
|
172
|
+
# Provide a user friendly representation
|
173
|
+
def to_s
|
174
|
+
"<Twilio.Numbers.V2.ReplaceItemsInstance>"
|
175
|
+
end
|
176
|
+
|
177
|
+
##
|
178
|
+
# Provide a detailed, user friendly representation
|
179
|
+
def inspect
|
180
|
+
"<Twilio.Numbers.V2.ReplaceItemsInstance>"
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
@@ -34,12 +34,14 @@ module Twilio
|
|
34
34
|
# status changes.
|
35
35
|
# @param [String] regulation_sid The unique string of a regulation that is
|
36
36
|
# associated to the Bundle resource.
|
37
|
-
# @param [String] iso_country The ISO country
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
37
|
+
# @param [String] iso_country The {ISO country
|
38
|
+
# code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] of the Bundle's phone
|
39
|
+
# number country ownership request.
|
40
|
+
# @param [bundle.EndUserType] end_user_type The {type of End
|
41
|
+
# User}[https://www.twilio.com/docs/phone-numbers/regulatory/api/end-user-types]
|
42
|
+
# of the Bundle resource.
|
41
43
|
# @param [String] number_type The type of phone number of the Bundle's ownership
|
42
|
-
# request.
|
44
|
+
# request. Can be `local`, `mobile`, `national`, or `toll free`.
|
43
45
|
# @return [BundleInstance] Created BundleInstance
|
44
46
|
def create(friendly_name: nil, email: nil, status_callback: :unset, regulation_sid: :unset, iso_country: :unset, end_user_type: :unset, number_type: :unset)
|
45
47
|
data = Twilio::Values.of({
|
@@ -66,10 +68,11 @@ module Twilio
|
|
66
68
|
# resource.
|
67
69
|
# @param [String] regulation_sid The unique string of a regulation that is
|
68
70
|
# associated to the Bundle resource.
|
69
|
-
# @param [String] iso_country The ISO country
|
70
|
-
#
|
71
|
+
# @param [String] iso_country The {ISO country
|
72
|
+
# code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] of the Bundle's phone
|
73
|
+
# number country ownership request.
|
71
74
|
# @param [String] number_type The type of phone number of the Bundle's ownership
|
72
|
-
# request.
|
75
|
+
# request. Can be `local`, `mobile`, `national`, or `toll free`.
|
73
76
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
74
77
|
# guarantees to never return more than limit. Default is no limit
|
75
78
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -98,10 +101,11 @@ module Twilio
|
|
98
101
|
# resource.
|
99
102
|
# @param [String] regulation_sid The unique string of a regulation that is
|
100
103
|
# associated to the Bundle resource.
|
101
|
-
# @param [String] iso_country The ISO country
|
102
|
-
#
|
104
|
+
# @param [String] iso_country The {ISO country
|
105
|
+
# code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] of the Bundle's phone
|
106
|
+
# number country ownership request.
|
103
107
|
# @param [String] number_type The type of phone number of the Bundle's ownership
|
104
|
-
# request.
|
108
|
+
# request. Can be `local`, `mobile`, `national`, or `toll free`.
|
105
109
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
106
110
|
# guarantees to never return more than limit. Default is no limit.
|
107
111
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -146,10 +150,11 @@ module Twilio
|
|
146
150
|
# resource.
|
147
151
|
# @param [String] regulation_sid The unique string of a regulation that is
|
148
152
|
# associated to the Bundle resource.
|
149
|
-
# @param [String] iso_country The ISO country
|
150
|
-
#
|
153
|
+
# @param [String] iso_country The {ISO country
|
154
|
+
# code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] of the Bundle's phone
|
155
|
+
# number country ownership request.
|
151
156
|
# @param [String] number_type The type of phone number of the Bundle's ownership
|
152
|
-
# request.
|
157
|
+
# request. Can be `local`, `mobile`, `national`, or `toll free`.
|
153
158
|
# @param [String] page_token PageToken provided by the API
|
154
159
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
155
160
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -237,6 +242,8 @@ module Twilio
|
|
237
242
|
# Dependents
|
238
243
|
@evaluations = nil
|
239
244
|
@item_assignments = nil
|
245
|
+
@bundle_copies = nil
|
246
|
+
@replace_items = nil
|
240
247
|
end
|
241
248
|
|
242
249
|
##
|
@@ -314,6 +321,30 @@ module Twilio
|
|
314
321
|
@item_assignments
|
315
322
|
end
|
316
323
|
|
324
|
+
##
|
325
|
+
# Access the bundle_copies
|
326
|
+
# @return [BundleCopyList]
|
327
|
+
# @return [BundleCopyContext]
|
328
|
+
def bundle_copies
|
329
|
+
unless @bundle_copies
|
330
|
+
@bundle_copies = BundleCopyList.new(@version, bundle_sid: @solution[:sid], )
|
331
|
+
end
|
332
|
+
|
333
|
+
@bundle_copies
|
334
|
+
end
|
335
|
+
|
336
|
+
##
|
337
|
+
# Access the replace_items
|
338
|
+
# @return [ReplaceItemsList]
|
339
|
+
# @return [ReplaceItemsContext]
|
340
|
+
def replace_items
|
341
|
+
unless @replace_items
|
342
|
+
@replace_items = ReplaceItemsList.new(@version, bundle_sid: @solution[:sid], )
|
343
|
+
end
|
344
|
+
|
345
|
+
@replace_items
|
346
|
+
end
|
347
|
+
|
317
348
|
##
|
318
349
|
# Provide a user friendly representation
|
319
350
|
def to_s
|
@@ -491,6 +522,20 @@ module Twilio
|
|
491
522
|
context.item_assignments
|
492
523
|
end
|
493
524
|
|
525
|
+
##
|
526
|
+
# Access the bundle_copies
|
527
|
+
# @return [bundle_copies] bundle_copies
|
528
|
+
def bundle_copies
|
529
|
+
context.bundle_copies
|
530
|
+
end
|
531
|
+
|
532
|
+
##
|
533
|
+
# Access the replace_items
|
534
|
+
# @return [replace_items] replace_items
|
535
|
+
def replace_items
|
536
|
+
context.replace_items
|
537
|
+
end
|
538
|
+
|
494
539
|
##
|
495
540
|
# Provide a user friendly representation
|
496
541
|
def to_s
|
@@ -369,7 +369,7 @@ module Twilio
|
|
369
369
|
end
|
370
370
|
|
371
371
|
##
|
372
|
-
# @return [String] The
|
372
|
+
# @return [String] The domain name for all Functions and Assets deployed in the Environment
|
373
373
|
def domain_name
|
374
374
|
@properties['domain_name']
|
375
375
|
end
|
@@ -335,6 +335,7 @@ module Twilio
|
|
335
335
|
'unique_name' => payload['unique_name'],
|
336
336
|
'include_credentials' => payload['include_credentials'],
|
337
337
|
'ui_editable' => payload['ui_editable'],
|
338
|
+
'domain_base' => payload['domain_base'],
|
338
339
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
339
340
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
340
341
|
'url' => payload['url'],
|
@@ -393,6 +394,12 @@ module Twilio
|
|
393
394
|
@properties['ui_editable']
|
394
395
|
end
|
395
396
|
|
397
|
+
##
|
398
|
+
# @return [String] The base domain name for this Service, which is a combination of the unique name and a randomly generated string
|
399
|
+
def domain_base
|
400
|
+
@properties['domain_base']
|
401
|
+
end
|
402
|
+
|
396
403
|
##
|
397
404
|
# @return [Time] The ISO 8601 date and time in GMT when the Service resource was created
|
398
405
|
def date_created
|
@@ -322,8 +322,9 @@ module Twilio
|
|
322
322
|
# when the customer leaves.
|
323
323
|
# @param [Boolean] beep_on_customer_entrance Whether to play a notification beep
|
324
324
|
# when the customer joins.
|
325
|
+
# @param [String] if_match The If-Match HTTP request header
|
325
326
|
# @return [ReservationInstance] Updated ReservationInstance
|
326
|
-
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, supervisor_mode: :unset, supervisor: :unset, end_conference_on_customer_exit: :unset, beep_on_customer_entrance: :unset)
|
327
|
+
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, supervisor_mode: :unset, supervisor: :unset, end_conference_on_customer_exit: :unset, beep_on_customer_entrance: :unset, if_match: :unset)
|
327
328
|
data = Twilio::Values.of({
|
328
329
|
'ReservationStatus' => reservation_status,
|
329
330
|
'WorkerActivitySid' => worker_activity_sid,
|
@@ -379,8 +380,9 @@ module Twilio
|
|
379
380
|
'EndConferenceOnCustomerExit' => end_conference_on_customer_exit,
|
380
381
|
'BeepOnCustomerEntrance' => beep_on_customer_entrance,
|
381
382
|
})
|
383
|
+
headers = Twilio::Values.of({'If-Match' => if_match, })
|
382
384
|
|
383
|
-
payload = @version.update('POST', @uri, data: data)
|
385
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
384
386
|
|
385
387
|
ReservationInstance.new(
|
386
388
|
@version,
|
@@ -662,8 +664,9 @@ module Twilio
|
|
662
664
|
# when the customer leaves.
|
663
665
|
# @param [Boolean] beep_on_customer_entrance Whether to play a notification beep
|
664
666
|
# when the customer joins.
|
667
|
+
# @param [String] if_match The If-Match HTTP request header
|
665
668
|
# @return [ReservationInstance] Updated ReservationInstance
|
666
|
-
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, supervisor_mode: :unset, supervisor: :unset, end_conference_on_customer_exit: :unset, beep_on_customer_entrance: :unset)
|
669
|
+
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, supervisor_mode: :unset, supervisor: :unset, end_conference_on_customer_exit: :unset, beep_on_customer_entrance: :unset, if_match: :unset)
|
667
670
|
context.update(
|
668
671
|
reservation_status: reservation_status,
|
669
672
|
worker_activity_sid: worker_activity_sid,
|
@@ -718,6 +721,7 @@ module Twilio
|
|
718
721
|
supervisor: supervisor,
|
719
722
|
end_conference_on_customer_exit: end_conference_on_customer_exit,
|
720
723
|
beep_on_customer_entrance: beep_on_customer_entrance,
|
724
|
+
if_match: if_match,
|
721
725
|
)
|
722
726
|
end
|
723
727
|
|
@@ -322,8 +322,9 @@ module Twilio
|
|
322
322
|
# when the customer leaves.
|
323
323
|
# @param [Boolean] beep_on_customer_entrance Whether to play a notification beep
|
324
324
|
# when the customer joins.
|
325
|
+
# @param [String] if_match The If-Match HTTP request header
|
325
326
|
# @return [ReservationInstance] Updated ReservationInstance
|
326
|
-
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, end_conference_on_customer_exit: :unset, beep_on_customer_entrance: :unset)
|
327
|
+
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, end_conference_on_customer_exit: :unset, beep_on_customer_entrance: :unset, if_match: :unset)
|
327
328
|
data = Twilio::Values.of({
|
328
329
|
'ReservationStatus' => reservation_status,
|
329
330
|
'WorkerActivitySid' => worker_activity_sid,
|
@@ -377,8 +378,9 @@ module Twilio
|
|
377
378
|
'EndConferenceOnCustomerExit' => end_conference_on_customer_exit,
|
378
379
|
'BeepOnCustomerEntrance' => beep_on_customer_entrance,
|
379
380
|
})
|
381
|
+
headers = Twilio::Values.of({'If-Match' => if_match, })
|
380
382
|
|
381
|
-
payload = @version.update('POST', @uri, data: data)
|
383
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
382
384
|
|
383
385
|
ReservationInstance.new(
|
384
386
|
@version,
|
@@ -660,8 +662,9 @@ module Twilio
|
|
660
662
|
# when the customer leaves.
|
661
663
|
# @param [Boolean] beep_on_customer_entrance Whether to play a notification beep
|
662
664
|
# when the customer joins.
|
665
|
+
# @param [String] if_match The If-Match HTTP request header
|
663
666
|
# @return [ReservationInstance] Updated ReservationInstance
|
664
|
-
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, end_conference_on_customer_exit: :unset, beep_on_customer_entrance: :unset)
|
667
|
+
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, end_conference_on_customer_exit: :unset, beep_on_customer_entrance: :unset, if_match: :unset)
|
665
668
|
context.update(
|
666
669
|
reservation_status: reservation_status,
|
667
670
|
worker_activity_sid: worker_activity_sid,
|
@@ -714,6 +717,7 @@ module Twilio
|
|
714
717
|
post_work_activity_sid: post_work_activity_sid,
|
715
718
|
end_conference_on_customer_exit: end_conference_on_customer_exit,
|
716
719
|
beep_on_customer_entrance: beep_on_customer_entrance,
|
720
|
+
if_match: if_match,
|
717
721
|
)
|
718
722
|
end
|
719
723
|
|