Skip to content

Commit

Permalink
[Librarian] Regenerated @ c8ce9820730ef3b2a48912311d45afb8c26b9ee7 2e…
Browse files Browse the repository at this point in the history
…e5b1fa49840dd67929ff69952e93618b74425b
  • Loading branch information
twilio-dx committed Aug 26, 2024
1 parent 2d707bd commit 94ef903
Show file tree
Hide file tree
Showing 31 changed files with 1,262 additions and 717 deletions.
43 changes: 43 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,49 @@
twilio-ruby changelog
=====================

[2024-08-26] Version 7.2.4
--------------------------
**Library - Chore**
- [PR #729](https://github.com/twilio/twilio-ruby/pull/729): remove preview_iam reference. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
- [PR #727](https://github.com/twilio/twilio-ruby/pull/727): bug fix. Thanks to [@manisha1997](https://github.com/manisha1997)!
- [PR #726](https://github.com/twilio/twilio-ruby/pull/726): bug fix. Thanks to [@manisha1997](https://github.com/manisha1997)!
- [PR #725](https://github.com/twilio/twilio-ruby/pull/725): fix documentation link. Thanks to [@manisha1997](https://github.com/manisha1997)!

**Api**
- Update documentation of `error_code` and `error_message` on the Message resource.
- Remove generic parameters from `transcription` resource
- Added public documentation for Payload Data retrieval API

**Flex**
- Adding update Flex User api

**Insights**
- Added 'branded', 'business_profile' and 'voice_integrity' fields in List Call Summary

**Intelligence**
- Add `words` array information to the Sentences v2 entity.
- Add `X-Rate-Limit-Limit`, `X-Rate-Limit-Remaining`, and `X-Rate-Limit-Config` headers for Operator Results.
- Change the path parameter when fetching an `/OperatorType/{}` from `sid<EY>` to `string` to support searching by SID or by name
- Add `X-Rate-Limit-Limit`, `X-Rate-Limit-Remaining`, and `X-Rate-Limit-Config` headers for Transcript and Service endpoints.

**Messaging**
- Adds two new channel senders api to add/remove channel senders to/from a messaging service
- Extend ERC api to accept an optional attribute in request body to indicate CNP migration for an ERC

**Numbers**
- Modify visibility to public in bundle clone API
- Add `port_date` field to Port In Request and Port In Phone Numbers Fetch APIs
- Change properties docs for port in phone numbers api
- Add is_test body param to the Bundle Create API
- Change properties docs for port in api

**Trusthub**
- Add new field in themeSetId in compliance_inquiry.

**Verify**
- Update `custom_code_enabled` description on verification docs


[2024-07-02] Version 7.2.3
--------------------------
**Rubygems**
Expand Down
604 changes: 5 additions & 599 deletions lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def price
end

##
# @return [String] The description of the `error_code` if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`.
# @return [String] The description of the `error_code` if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`. The value returned in this field for a specific error cause is subject to change as Twilio improves errors. Users should not use the `error_code` and `error_message` fields programmatically.
def error_message
@properties['error_message']
end
Expand Down Expand Up @@ -538,7 +538,7 @@ def date_created
end

##
# @return [String] The [error code](https://www.twilio.com/docs/api/errors) returned if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`.
# @return [String] The [error code](https://www.twilio.com/docs/api/errors) returned if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`. The value returned in this field for a specific error cause is subject to change as Twilio improves errors. Users should not use the `error_code` and `error_message` fields programmatically.
def error_code
@properties['error_code']
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ def initialize(version, account_sid, reference_sid, add_on_result_sid, sid)
@solution = { account_sid: account_sid, reference_sid: reference_sid, add_on_result_sid: add_on_result_sid, sid: sid, }
@uri = "/Accounts/#{@solution[:account_sid]}/Recordings/#{@solution[:reference_sid]}/AddOnResults/#{@solution[:add_on_result_sid]}/Payloads/#{@solution[:sid]}.json"


# Dependents
@data = nil
end
##
# Delete the PayloadInstance
Expand Down Expand Up @@ -174,6 +175,19 @@ def fetch
)
end

##
# Access the data
# @return [DataList]
# @return [DataContext]
def data
DataContext.new(
@version,
@solution[:account_sid],
@solution[:reference_sid],
@solution[:add_on_result_sid],
@solution[:sid]
)
end

##
# Provide a user friendly representation
Expand Down Expand Up @@ -344,6 +358,13 @@ def fetch
context.fetch
end

##
# Access the data
# @return [data] data
def data
context.data
end

##
# Provide a user friendly representation
def to_s
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
##
# This code was generated by
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
#
# Twilio - Api
# This is the public Twilio REST API.
#
# NOTE: This class is auto generated by OpenAPI Generator.
# https://openapi-generator.tech
# Do not edit the class manually.
#


module Twilio
module REST
class Api < ApiBase
class V2010 < Version
class AccountContext < InstanceContext
class RecordingContext < InstanceContext
class AddOnResultContext < InstanceContext
class PayloadContext < InstanceContext

class DataList < ListResource

##
# Initialize the DataList
# @param [Version] version Version that contains the resource
# @return [DataList] DataList
def initialize(version, account_sid: nil, reference_sid: nil, add_on_result_sid: nil, payload_sid: nil)
super(version)
# Path Solution
@solution = { account_sid: account_sid, reference_sid: reference_sid, add_on_result_sid: add_on_result_sid, payload_sid: payload_sid }


end



# Provide a user friendly representation
def to_s
'#<Twilio.Api.V2010.DataList>'
end
end


class DataContext < InstanceContext
##
# Initialize the DataContext
# @param [Version] version Version that contains the resource
# @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch.
# @param [String] reference_sid The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs.
# @param [String] add_on_result_sid The SID of the AddOnResult to which the payload to fetch belongs.
# @param [String] payload_sid The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch.
# @return [DataContext] DataContext
def initialize(version, account_sid, reference_sid, add_on_result_sid, payload_sid)
super(version)

# Path Solution
@solution = { account_sid: account_sid, reference_sid: reference_sid, add_on_result_sid: add_on_result_sid, payload_sid: payload_sid, }
@uri = "/Accounts/#{@solution[:account_sid]}/Recordings/#{@solution[:reference_sid]}/AddOnResults/#{@solution[:add_on_result_sid]}/Payloads/#{@solution[:payload_sid]}/Data.json"


end
##
# Fetch the DataInstance
# @return [DataInstance] Fetched DataInstance
def fetch

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.fetch('GET', @uri, headers: headers)
DataInstance.new(
@version,
payload,
account_sid: @solution[:account_sid],
reference_sid: @solution[:reference_sid],
add_on_result_sid: @solution[:add_on_result_sid],
payload_sid: @solution[:payload_sid],
)
end


##
# Provide a user friendly representation
def to_s
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.DataContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.DataContext #{context}>"
end
end

class DataPage < Page
##
# Initialize the DataPage
# @param [Version] version Version that contains the resource
# @param [Response] response Response from the API
# @param [Hash] solution Path solution for the resource
# @return [DataPage] DataPage
def initialize(version, response, solution)
super(version, response)

# Path Solution
@solution = solution
end

##
# Build an instance of DataInstance
# @param [Hash] payload Payload response from the API
# @return [DataInstance] DataInstance
def get_instance(payload)
DataInstance.new(@version, payload, account_sid: @solution[:account_sid], reference_sid: @solution[:reference_sid], add_on_result_sid: @solution[:add_on_result_sid], payload_sid: @solution[:payload_sid])
end

##
# Provide a user friendly representation
def to_s
'<Twilio.Api.V2010.DataPage>'
end
end
class DataInstance < InstanceResource
##
# Initialize the DataInstance
# @param [Version] version Version that contains the resource
# @param [Hash] payload payload that contains response from Twilio
# @param [String] account_sid The SID of the
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Data
# resource.
# @param [String] sid The SID of the Call resource to fetch.
# @return [DataInstance] DataInstance
def initialize(version, payload , account_sid: nil, reference_sid: nil, add_on_result_sid: nil, payload_sid: nil)
super(version)

# Marshaled Properties
@properties = {
'redirect_to' => payload['redirect_to'],
}

# Context
@instance_context = nil
@params = { 'account_sid' => account_sid ,'reference_sid' => reference_sid || @properties['reference_sid'] ,'add_on_result_sid' => add_on_result_sid || @properties['add_on_result_sid'] ,'payload_sid' => payload_sid || @properties['payload_sid'] , }
end

##
# Generate an instance context for the instance, the context is capable of
# performing various actions. All instance actions are proxied to the context
# @return [DataContext] CallContext for this CallInstance
def context
unless @instance_context
@instance_context = DataContext.new(@version , @params['account_sid'], @params['reference_sid'], @params['add_on_result_sid'], @params['payload_sid'])
end
@instance_context
end

##
# @return [String] The URL to redirect to to get the data returned by the AddOn that was previously stored.
def redirect_to
@properties['redirect_to']
end

##
# Fetch the DataInstance
# @return [DataInstance] Fetched DataInstance
def fetch

context.fetch
end

##
# Provide a user friendly representation
def to_s
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
"<Twilio.Api.V2010.DataInstance #{values}>"
end

##
# Provide a detailed, user friendly representation
def inspect
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
"<Twilio.Api.V2010.DataInstance #{values}>"
end
end

end
end
end
end
end
end
end
end


Loading

0 comments on commit 94ef903

Please sign in to comment.