twilio-ruby 7.3.3 → 7.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f2e73c51c288976c1c887e2f7b531eac33660aa
4
- data.tar.gz: 7cd72222c429642bdbc322d64074b1d949dae3e3
3
+ metadata.gz: c17c4017594906a17467a382870d6f3b4ebc14e5
4
+ data.tar.gz: bf14e44d5574b9ea18d6ffaa60aca311bd41699f
5
5
  SHA512:
6
- metadata.gz: c01620723f63074f14f586946d602a29e82b49a348753fae96686d8c573ca968a7c738f04e6d69ecccfd5943d9e27befeadfbe336331e15cc4cb10ccac5fac0a
7
- data.tar.gz: 21442f7a242ef06a5b5f0dfe6ccc4d7da1599973707b4dbb0945814e42220264ec1de69c8354318c230dce73e8e71f3562f1754ea18d25dc37e5c55eedbf1212
6
+ metadata.gz: ed0f369c49bf7a0cda210498762bd1e3ec8452064300d1b0a5bc29c3d7973b046969bb0cb6ce119dc7278aede7d6dc7250dad602f2aff96e3406a1a9d81d17ee
7
+ data.tar.gz: 1ba9881cce4af6f63fc2fa8721d0e9428fe650824d595e2fa72b33db31c68eb26956951ecf63746c39ae233c590ed5fe8c393fe5dac7aaf58b37c2ef69f499f1
data/CHANGES.md CHANGED
@@ -1,6 +1,15 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2024-10-17] Version 7.3.4
5
+ --------------------------
6
+ **Api**
7
+ - Add response key `country` to fetch AvailablePhoneNumber resource by specific country.
8
+
9
+ **Messaging**
10
+ - Make library and doc public for requestManagedCert Endpoint
11
+
12
+
4
13
  [2024-10-03] Version 7.3.3
5
14
  --------------------------
6
15
  **Messaging**
data/README.md CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
39
39
  To install using [Bundler][bundler] grab the latest stable version:
40
40
 
41
41
  ```ruby
42
- gem 'twilio-ruby', '~> 7.3.3'
42
+ gem 'twilio-ruby', '~> 7.3.4'
43
43
  ```
44
44
 
45
45
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
46
46
 
47
47
  ```bash
48
- gem install twilio-ruby -v 7.3.3
48
+ gem install twilio-ruby -v 7.3.4
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -0,0 +1,239 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Messaging
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 Messaging < MessagingBase
19
+ class V1 < Version
20
+ class RequestManagedCertList < ListResource
21
+
22
+ ##
23
+ # Initialize the RequestManagedCertList
24
+ # @param [Version] version Version that contains the resource
25
+ # @return [RequestManagedCertList] RequestManagedCertList
26
+ def initialize(version)
27
+ super(version)
28
+ # Path Solution
29
+ @solution = { }
30
+
31
+
32
+ end
33
+
34
+
35
+
36
+ # Provide a user friendly representation
37
+ def to_s
38
+ '#<Twilio.Messaging.V1.RequestManagedCertList>'
39
+ end
40
+ end
41
+
42
+
43
+ class RequestManagedCertContext < InstanceContext
44
+ ##
45
+ # Initialize the RequestManagedCertContext
46
+ # @param [Version] version Version that contains the resource
47
+ # @param [String] domain_sid Unique string used to identify the domain that this certificate should be associated with.
48
+ # @return [RequestManagedCertContext] RequestManagedCertContext
49
+ def initialize(version, domain_sid)
50
+ super(version)
51
+
52
+ # Path Solution
53
+ @solution = { domain_sid: domain_sid, }
54
+ @uri = "/LinkShortening/Domains/#{@solution[:domain_sid]}/RequestManagedCert"
55
+
56
+
57
+ end
58
+ ##
59
+ # Update the RequestManagedCertInstance
60
+ # @return [RequestManagedCertInstance] Updated RequestManagedCertInstance
61
+ def update
62
+
63
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
64
+
65
+ payload = @version.update('POST', @uri, headers: headers)
66
+ RequestManagedCertInstance.new(
67
+ @version,
68
+ payload,
69
+ domain_sid: @solution[:domain_sid],
70
+ )
71
+ end
72
+
73
+
74
+ ##
75
+ # Provide a user friendly representation
76
+ def to_s
77
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
78
+ "#<Twilio.Messaging.V1.RequestManagedCertContext #{context}>"
79
+ end
80
+
81
+ ##
82
+ # Provide a detailed, user friendly representation
83
+ def inspect
84
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
85
+ "#<Twilio.Messaging.V1.RequestManagedCertContext #{context}>"
86
+ end
87
+ end
88
+
89
+ class RequestManagedCertPage < Page
90
+ ##
91
+ # Initialize the RequestManagedCertPage
92
+ # @param [Version] version Version that contains the resource
93
+ # @param [Response] response Response from the API
94
+ # @param [Hash] solution Path solution for the resource
95
+ # @return [RequestManagedCertPage] RequestManagedCertPage
96
+ def initialize(version, response, solution)
97
+ super(version, response)
98
+
99
+ # Path Solution
100
+ @solution = solution
101
+ end
102
+
103
+ ##
104
+ # Build an instance of RequestManagedCertInstance
105
+ # @param [Hash] payload Payload response from the API
106
+ # @return [RequestManagedCertInstance] RequestManagedCertInstance
107
+ def get_instance(payload)
108
+ RequestManagedCertInstance.new(@version, payload)
109
+ end
110
+
111
+ ##
112
+ # Provide a user friendly representation
113
+ def to_s
114
+ '<Twilio.Messaging.V1.RequestManagedCertPage>'
115
+ end
116
+ end
117
+ class RequestManagedCertInstance < InstanceResource
118
+ ##
119
+ # Initialize the RequestManagedCertInstance
120
+ # @param [Version] version Version that contains the resource
121
+ # @param [Hash] payload payload that contains response from Twilio
122
+ # @param [String] account_sid The SID of the
123
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this RequestManagedCert
124
+ # resource.
125
+ # @param [String] sid The SID of the Call resource to fetch.
126
+ # @return [RequestManagedCertInstance] RequestManagedCertInstance
127
+ def initialize(version, payload , domain_sid: nil)
128
+ super(version)
129
+
130
+ # Marshaled Properties
131
+ @properties = {
132
+ 'domain_sid' => payload['domain_sid'],
133
+ 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
134
+ 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
135
+ 'date_expires' => Twilio.deserialize_iso8601_datetime(payload['date_expires']),
136
+ 'domain_name' => payload['domain_name'],
137
+ 'certificate_sid' => payload['certificate_sid'],
138
+ 'url' => payload['url'],
139
+ 'managed' => payload['managed'],
140
+ 'requesting' => payload['requesting'],
141
+ }
142
+
143
+ # Context
144
+ @instance_context = nil
145
+ @params = { 'domain_sid' => domain_sid || @properties['domain_sid'] , }
146
+ end
147
+
148
+ ##
149
+ # Generate an instance context for the instance, the context is capable of
150
+ # performing various actions. All instance actions are proxied to the context
151
+ # @return [RequestManagedCertContext] CallContext for this CallInstance
152
+ def context
153
+ unless @instance_context
154
+ @instance_context = RequestManagedCertContext.new(@version , @params['domain_sid'])
155
+ end
156
+ @instance_context
157
+ end
158
+
159
+ ##
160
+ # @return [String] The unique string that we created to identify the Domain resource.
161
+ def domain_sid
162
+ @properties['domain_sid']
163
+ end
164
+
165
+ ##
166
+ # @return [Time] Date that this Domain was last updated.
167
+ def date_updated
168
+ @properties['date_updated']
169
+ end
170
+
171
+ ##
172
+ # @return [Time] Date that this Domain was registered to the Twilio platform to create a new Domain object.
173
+ def date_created
174
+ @properties['date_created']
175
+ end
176
+
177
+ ##
178
+ # @return [Time] Date that the private certificate associated with this domain expires. This is the expiration date of your existing cert.
179
+ def date_expires
180
+ @properties['date_expires']
181
+ end
182
+
183
+ ##
184
+ # @return [String] Full url path for this domain.
185
+ def domain_name
186
+ @properties['domain_name']
187
+ end
188
+
189
+ ##
190
+ # @return [String] The unique string that we created to identify this Certificate resource.
191
+ def certificate_sid
192
+ @properties['certificate_sid']
193
+ end
194
+
195
+ ##
196
+ # @return [String]
197
+ def url
198
+ @properties['url']
199
+ end
200
+
201
+ ##
202
+ # @return [Boolean] A boolean flag indicating if the certificate is managed by Twilio.
203
+ def managed
204
+ @properties['managed']
205
+ end
206
+
207
+ ##
208
+ # @return [Boolean] A boolean flag indicating if a managed certificate needs to be fulfilled by Twilio.
209
+ def requesting
210
+ @properties['requesting']
211
+ end
212
+
213
+ ##
214
+ # Update the RequestManagedCertInstance
215
+ # @return [RequestManagedCertInstance] Updated RequestManagedCertInstance
216
+ def update
217
+
218
+ context.update
219
+ end
220
+
221
+ ##
222
+ # Provide a user friendly representation
223
+ def to_s
224
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
225
+ "<Twilio.Messaging.V1.RequestManagedCertInstance #{values}>"
226
+ end
227
+
228
+ ##
229
+ # Provide a detailed, user friendly representation
230
+ def inspect
231
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
232
+ "<Twilio.Messaging.V1.RequestManagedCertInstance #{values}>"
233
+ end
234
+ end
235
+
236
+ end
237
+ end
238
+ end
239
+ end
@@ -29,6 +29,7 @@ module Twilio
29
29
  @external_campaign = nil
30
30
  @linkshortening_messaging_service = nil
31
31
  @linkshortening_messaging_service_domain_association = nil
32
+ @request_managed_cert = nil
32
33
  @services = nil
33
34
  @tollfree_verifications = nil
34
35
  @usecases = nil
@@ -151,6 +152,20 @@ module Twilio
151
152
  end
152
153
  end
153
154
  ##
155
+ # @param [String] domain_sid Unique string used to identify the domain that this certificate should be associated with.
156
+ # @return [Twilio::REST::Messaging::V1::RequestManagedCertContext] if domainSid was passed.
157
+ # @return [Twilio::REST::Messaging::V1::RequestManagedCertList]
158
+ def request_managed_cert(domain_sid=:unset)
159
+ if domain_sid.nil?
160
+ raise ArgumentError, 'domain_sid cannot be nil'
161
+ end
162
+ if domain_sid == :unset
163
+ @request_managed_cert ||= RequestManagedCertList.new self
164
+ else
165
+ RequestManagedCertContext.new(self, domain_sid)
166
+ end
167
+ end
168
+ ##
154
169
  # @param [String] sid The SID of the Service resource to fetch.
155
170
  # @return [Twilio::REST::Messaging::V1::ServiceContext] if sid was passed.
156
171
  # @return [Twilio::REST::Messaging::V1::ServiceList]
@@ -35,14 +35,14 @@ module Twilio
35
35
  # @param [Boolean] enable_turn Deprecated, now always considered to be true.
36
36
  # @param [RoomType] type
37
37
  # @param [String] unique_name An application-defined string that uniquely identifies the resource. It can be used as a `room_sid` in place of the resource's `sid` in the URL to address the resource, assuming it does not contain any [reserved characters](https://tools.ietf.org/html/rfc3986#section-2.2) that would need to be URL encoded. This value is unique for `in-progress` rooms. SDK clients can use this name to connect to the room. REST API clients can use this name in place of the Room SID to interact with the room as long as the room is `in-progress`.
38
- # @param [String] status_callback The URL we should call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info.
39
- # @param [String] status_callback_method The HTTP method we should use to call `status_callback`. Can be `POST` or `GET`.
40
- # @param [String] max_participants The maximum number of concurrent Participants allowed in the room. Peer-to-peer rooms can have up to 10 Participants. Small Group rooms can have up to 4 Participants. Group rooms can have up to 50 Participants.
41
- # @param [Boolean] record_participants_on_connect Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.***
42
- # @param [Array[VideoCodec]] video_codecs An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. ***This feature is not available in `peer-to-peer` rooms***
43
- # @param [String] media_region The region for the media server in Group Rooms. Can be: one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#group-rooms-media-servers). ***This feature is not available in `peer-to-peer` rooms.***
38
+ # @param [String] status_callback The URL Twilio should call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info.
39
+ # @param [String] status_callback_method The HTTP method Twilio should use to call `status_callback`. Can be `POST` or `GET`.
40
+ # @param [String] max_participants The maximum number of concurrent Participants allowed in the room. The maximum allowed value is 50.
41
+ # @param [Boolean] record_participants_on_connect Whether to start recording when Participants connect.
42
+ # @param [Array[VideoCodec]] video_codecs An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`.
43
+ # @param [String] media_region The region for the Room's media server. Can be one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#group-rooms-media-servers).
44
44
  # @param [Object] recording_rules A collection of Recording Rules that describe how to include or exclude matching tracks for recording
45
- # @param [Boolean] audio_only When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. Group rooms only.
45
+ # @param [Boolean] audio_only When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed.
46
46
  # @param [String] max_participant_duration The maximum number of seconds a Participant can be connected to the room. The maximum possible value is 86400 seconds (24 hours). The default is 14400 seconds (4 hours).
47
47
  # @param [String] empty_room_timeout Configures how long (in minutes) a room will remain active after last participant leaves. Valid values range from 1 to 60 minutes (no fractions).
48
48
  # @param [String] unused_room_timeout Configures how long (in minutes) a room will remain active if no one joins. Valid values range from 1 to 60 minutes (no fractions).
@@ -417,7 +417,7 @@ module Twilio
417
417
  end
418
418
 
419
419
  ##
420
- # @return [String] The unique string that we created to identify the Room resource.
420
+ # @return [String] The unique string that Twilio created to identify the Room resource.
421
421
  def sid
422
422
  @properties['sid']
423
423
  end
@@ -459,13 +459,13 @@ module Twilio
459
459
  end
460
460
 
461
461
  ##
462
- # @return [String] The URL we call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info.
462
+ # @return [String] The URL Twilio calls using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info.
463
463
  def status_callback
464
464
  @properties['status_callback']
465
465
  end
466
466
 
467
467
  ##
468
- # @return [String] The HTTP method we use to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`.
468
+ # @return [String] The HTTP method Twilio uses to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`.
469
469
  def status_callback_method
470
470
  @properties['status_callback_method']
471
471
  end
@@ -507,25 +507,25 @@ module Twilio
507
507
  end
508
508
 
509
509
  ##
510
- # @return [Boolean] Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.***
510
+ # @return [Boolean] Whether to start recording when Participants connect.
511
511
  def record_participants_on_connect
512
512
  @properties['record_participants_on_connect']
513
513
  end
514
514
 
515
515
  ##
516
- # @return [Array<VideoCodec>] An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. ***This feature is not available in `peer-to-peer` rooms***
516
+ # @return [Array<VideoCodec>] An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`.
517
517
  def video_codecs
518
518
  @properties['video_codecs']
519
519
  end
520
520
 
521
521
  ##
522
- # @return [String] The region for the media server in Group Rooms. Can be: one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#media-servers). ***This feature is not available in `peer-to-peer` rooms.***
522
+ # @return [String] The region for the Room's media server. Can be one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#media-servers).
523
523
  def media_region
524
524
  @properties['media_region']
525
525
  end
526
526
 
527
527
  ##
528
- # @return [Boolean] When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. Group rooms only.
528
+ # @return [Boolean] When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed.
529
529
  def audio_only
530
530
  @properties['audio_only']
531
531
  end
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '7.3.3'
2
+ VERSION = '7.3.4'
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: 7.3.3
4
+ version: 7.3.4
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-10-03 00:00:00.000000000 Z
11
+ date: 2024-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -564,6 +564,7 @@ files:
564
564
  - lib/twilio-ruby/rest/messaging/v1/external_campaign.rb
565
565
  - lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb
566
566
  - lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb
567
+ - lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb
567
568
  - lib/twilio-ruby/rest/messaging/v1/service.rb
568
569
  - lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb
569
570
  - lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb