Skip to content

Commit

Permalink
[Librarian] Regenerated @ 5eb406c4977c9f6976e6053cb5b581056f541a59
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Nov 6, 2023
1 parent f5859f5 commit 5e628dd
Show file tree
Hide file tree
Showing 7 changed files with 481 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
twilio-ruby changelog
=====================

[2023-11-06] Version 6.8.1
--------------------------
**Flex**
- Adding `provisioning_status` for Email Manager

**Intelligence**
- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection.

**Messaging**
- Add DELETE support to Tollfree Verification resource

**Serverless**
- Add node18 as a valid Build runtime

**Verify**
- Update Verify TOTP maturity to GA.


[2023-10-19] Version 6.8.0
--------------------------
**Library - Chore**
Expand Down
6 changes: 6 additions & 0 deletions lib/twilio-ruby/rest/flex_api/v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def initialize(domain)
@insights_settings_comment = nil
@insights_user_roles = nil
@interaction = nil
@provisioning_status = nil
@web_channel = nil
end

Expand Down Expand Up @@ -178,6 +179,11 @@ def interaction(sid=:unset)
end
end
##
# @return [Twilio::REST::FlexApi::V1::provisioningStatusContext]
def provisioning_status
@provisioning_status ||= ProvisioningStatusContext.new self
end
##
# @param [String] sid The SID of the WebChannel resource to fetch.
# @return [Twilio::REST::FlexApi::V1::WebChannelContext] if sid was passed.
# @return [Twilio::REST::FlexApi::V1::WebChannelList]
Expand Down
187 changes: 187 additions & 0 deletions lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
##
# This code was generated by
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
#
# Twilio - Flex
# 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 FlexApi < FlexApiBase
class V1 < Version
class ProvisioningStatusList < ListResource
##
# Initialize the ProvisioningStatusList
# @param [Version] version Version that contains the resource
# @return [ProvisioningStatusList] ProvisioningStatusList
def initialize(version)
super(version)
# Path Solution
@solution = { }


end



# Provide a user friendly representation
def to_s
'#<Twilio.FlexApi.V1.ProvisioningStatusList>'
end
end


##
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
class ProvisioningStatusContext < InstanceContext
##
# Initialize the ProvisioningStatusContext
# @param [Version] version Version that contains the resource
# @return [ProvisioningStatusContext] ProvisioningStatusContext
def initialize(version)
super(version)

# Path Solution
@solution = { }
@uri = "/account/provision/status"


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

payload = @version.fetch('GET', @uri)
ProvisioningStatusInstance.new(
@version,
payload,
)
end


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

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

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

# Path Solution
@solution = solution
end

##
# Build an instance of ProvisioningStatusInstance
# @param [Hash] payload Payload response from the API
# @return [ProvisioningStatusInstance] ProvisioningStatusInstance
def get_instance(payload)
ProvisioningStatusInstance.new(@version, payload)
end

##
# Provide a user friendly representation
def to_s
'<Twilio.FlexApi.V1.ProvisioningStatusPage>'
end
end
class ProvisioningStatusInstance < InstanceResource
##
# Initialize the ProvisioningStatusInstance
# @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 ProvisioningStatus
# resource.
# @param [String] sid The SID of the Call resource to fetch.
# @return [ProvisioningStatusInstance] ProvisioningStatusInstance
def initialize(version, payload )
super(version)

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

# Context
@instance_context = nil
@params = { }
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 [ProvisioningStatusContext] CallContext for this CallInstance
def context
unless @instance_context
@instance_context = ProvisioningStatusContext.new(@version )
end
@instance_context
end

##
# @return [Status]
def status
@properties['status']
end

##
# @return [String] The absolute URL of the resource.
def url
@properties['url']
end

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

context.fetch
end

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

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

end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def initialize(version, payload , transcript_sid: nil, operator_sid: nil)
'predicted_probability' => payload['predicted_probability'],
'label_probabilities' => payload['label_probabilities'],
'extract_results' => payload['extract_results'],
'text_generation_results' => payload['text_generation_results'],
'transcript_sid' => payload['transcript_sid'],
'url' => payload['url'],
}
Expand Down Expand Up @@ -332,6 +333,12 @@ def extract_results
@properties['extract_results']
end

##
# @return [Hash] Output of a text generation operator for example Conversation Sumamary.
def text_generation_results
@properties['text_generation_results']
end

##
# @return [String] A 34 character string that uniquely identifies this Transcript.
def transcript_sid
Expand Down
16 changes: 16 additions & 0 deletions lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,14 @@ def initialize(version, sid)


end
##
# Delete the TollfreeVerificationInstance
# @return [Boolean] True if delete succeeds, false otherwise
def delete

@version.delete('DELETE', @uri)
end

##
# Fetch the TollfreeVerificationInstance
# @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance
Expand Down Expand Up @@ -649,6 +657,14 @@ def external_reference_id
@properties['external_reference_id']
end

##
# Delete the TollfreeVerificationInstance
# @return [Boolean] True if delete succeeds, false otherwise
def delete

context.delete
end

##
# Fetch the TollfreeVerificationInstance
# @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance
Expand Down
15 changes: 15 additions & 0 deletions lib/twilio-ruby/rest/trusthub/v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def initialize(domain)
super
@version = 'v1'
@compliance_inquiries = nil
@compliance_tollfree_inquiries = nil
@customer_profiles = nil
@end_users = nil
@end_user_types = nil
Expand All @@ -46,6 +47,20 @@ def compliance_inquiries(customer_id=:unset)
end
end
##
# @param [String] tollfree_id The unique TolfreeId matching the Compliance Tollfree Verification Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Tollfree Verification Inquiry creation call.
# @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesContext] if tollfreeId was passed.
# @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesList]
def compliance_tollfree_inquiries(tollfree_id=:unset)
if tollfree_id.nil?
raise ArgumentError, 'tollfree_id cannot be nil'
end
if tollfree_id == :unset
@compliance_tollfree_inquiries ||= ComplianceTollfreeInquiriesList.new self
else
ComplianceTollfreeInquiriesContext.new(self, tollfree_id)
end
end
##
# @param [String] sid The unique string that we created to identify the Customer-Profile resource.
# @return [Twilio::REST::Trusthub::V1::CustomerProfilesContext] if sid was passed.
# @return [Twilio::REST::Trusthub::V1::CustomerProfilesList]
Expand Down
Loading

0 comments on commit 5e628dd

Please sign in to comment.