Skip to content

Review changes in Twilio ruby by latest oai generator changes for block parsing #667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add block parsing support
  • Loading branch information
AsabuHere committed Jul 6, 2023
commit 81d74370fdd66d0c2c5fb6d31a26db8d23f41469
26 changes: 13 additions & 13 deletions lib/twilio-ruby/rest/insights/v1/call/annotation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ def fetch
# Update the AnnotationInstance
# @param [AnsweredBy] answered_by
# @param [ConnectivityIssue] connectivity_issue
# @param [String] quality_issues Specify if the call had any subjective quality issues. Possible values, one or more of: no_quality_issue, low_volume, choppy_robotic, echo, dtmf, latency, owa, static_noise. Use comma separated values to indicate multiple quality issues for the same call
# @param [Boolean] spam Specify if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Is of type Boolean: true, false. Use true if the call was a spam call.
# @param [String] quality_issues Specify if the call had any subjective quality issues. Possible values, one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. Use comma separated values to indicate multiple quality issues for the same call.
# @param [Boolean] spam A boolean flag to indicate if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Use `true` if the call was a spam call.
# @param [String] call_score Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
# @param [String] comment Specify any comments pertaining to the call. This of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here.
# @param [String] incident Associate this call with an incident or support ticket. This is of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here.
# @param [String] comment Specify any comments pertaining to the call. `comment` has a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in the `comment`.
# @param [String] incident Associate this call with an incident or support ticket. The `incident` parameter is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`.
# @return [AnnotationInstance] Updated AnnotationInstance
def update(
answered_by: :unset,
Expand Down Expand Up @@ -221,31 +221,31 @@ def connectivity_issue
end

##
# @return [Array<String>] Specify if the call had any subjective quality issues. Possible values, one or more of: no_quality_issue, low_volume, choppy_robotic, echo, dtmf, latency, owa, static_noise. Use comma separated values to indicate multiple quality issues for the same call
# @return [Array<String>] Specifies if the call had any subjective quality issues. Possible values are one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, or `static_noise`.
def quality_issues
@properties['quality_issues']
end

##
# @return [Boolean] Specify if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Is of type Boolean: true, false. Use true if the call was a spam call.
# @return [Boolean] Specifies if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Is of type Boolean: true, false. Use true if the call was a spam call.
def spam
@properties['spam']
end

##
# @return [String] Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
# @return [String] Specifies the Call Score, if available. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
def call_score
@properties['call_score']
end

##
# @return [String] Specify any comments pertaining to the call. This of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here.
# @return [String] Specifies any comments pertaining to the call. Twilio does not treat this field as PII, so no PII should be included in comments.
def comment
@properties['comment']
end

##
# @return [String] Associate this call with an incident or support ticket. This is of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here.
# @return [String] Incident or support ticket associated with this call. The `incident` property is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`.
def incident
@properties['incident']
end
Expand All @@ -268,11 +268,11 @@ def fetch
# Update the AnnotationInstance
# @param [AnsweredBy] answered_by
# @param [ConnectivityIssue] connectivity_issue
# @param [String] quality_issues Specify if the call had any subjective quality issues. Possible values, one or more of: no_quality_issue, low_volume, choppy_robotic, echo, dtmf, latency, owa, static_noise. Use comma separated values to indicate multiple quality issues for the same call
# @param [Boolean] spam Specify if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Is of type Boolean: true, false. Use true if the call was a spam call.
# @param [String] quality_issues Specify if the call had any subjective quality issues. Possible values, one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. Use comma separated values to indicate multiple quality issues for the same call.
# @param [Boolean] spam A boolean flag to indicate if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Use `true` if the call was a spam call.
# @param [String] call_score Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
# @param [String] comment Specify any comments pertaining to the call. This of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here.
# @param [String] incident Associate this call with an incident or support ticket. This is of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here.
# @param [String] comment Specify any comments pertaining to the call. `comment` has a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in the `comment`.
# @param [String] incident Associate this call with an incident or support ticket. The `incident` parameter is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`.
# @return [AnnotationInstance] Updated AnnotationInstance
def update(
answered_by: :unset,
Expand Down
44 changes: 22 additions & 22 deletions lib/twilio-ruby/rest/insights/v1/call/call_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CallSummaryContext < InstanceContext
##
# Initialize the CallSummaryContext
# @param [Version] version Version that contains the resource
# @param [String] call_sid
# @param [String] call_sid The unique SID identifier of the Call.
# @return [CallSummaryContext] CallSummaryContext
def initialize(version, call_sid)
super(version)
Expand All @@ -58,7 +58,7 @@ def initialize(version, call_sid)
end
##
# Fetch the CallSummaryInstance
# @param [ProcessingState] processing_state
# @param [ProcessingState] processing_state The Processing State of this Call Summary. One of `complete`, `partial` or `all`.
# @return [CallSummaryInstance] Fetched CallSummaryInstance
def fetch(
processing_state: :unset
Expand Down Expand Up @@ -176,13 +176,13 @@ def context
end

##
# @return [String]
# @return [String] The unique SID identifier of the Account.
def account_sid
@properties['account_sid']
end

##
# @return [String]
# @return [String] The unique SID identifier of the Call.
def call_sid
@properties['call_sid']
end
Expand Down Expand Up @@ -212,110 +212,110 @@ def processing_state
end

##
# @return [Time]
# @return [Time] The time at which the Call was created, given in ISO 8601 format. Can be different from `start_time` in the event of queueing due to CPS
def created_time
@properties['created_time']
end

##
# @return [Time]
# @return [Time] The time at which the Call was started, given in ISO 8601 format.
def start_time
@properties['start_time']
end

##
# @return [Time]
# @return [Time] The time at which the Call was ended, given in ISO 8601 format.
def end_time
@properties['end_time']
end

##
# @return [String]
# @return [String] Duration between when the call was initiated and the call was ended
def duration
@properties['duration']
end

##
# @return [String]
# @return [String] Duration between when the call was answered and when it ended
def connect_duration
@properties['connect_duration']
end

##
# @return [Hash]
# @return [Hash] The calling party.
def from
@properties['from']
end

##
# @return [Hash]
# @return [Hash] The called party.
def to
@properties['to']
end

##
# @return [Hash]
# @return [Hash] Contains metrics and properties for the Twilio media gateway of a PSTN call.
def carrier_edge
@properties['carrier_edge']
end

##
# @return [Hash]
# @return [Hash] Contains metrics and properties for the Twilio media gateway of a Client call.
def client_edge
@properties['client_edge']
end

##
# @return [Hash]
# @return [Hash] Contains metrics and properties for the SDK sensor library for Client calls.
def sdk_edge
@properties['sdk_edge']
end

##
# @return [Hash]
# @return [Hash] Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
def sip_edge
@properties['sip_edge']
end

##
# @return [Array<String>]
# @return [Array<String>] Tags applied to calls by Voice Insights analysis indicating a condition that could result in subjective degradation of the call quality.
def tags
@properties['tags']
end

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

##
# @return [Hash]
# @return [Hash] Attributes capturing call-flow-specific details.
def attributes
@properties['attributes']
end

##
# @return [Hash]
# @return [Hash] Contains edge-agnostic call-level details.
def properties
@properties['properties']
end

##
# @return [Hash]
# @return [Hash] Contains trusted communications details including Branded Call and verified caller ID.
def trust
@properties['trust']
end

##
# @return [Hash]
# @return [Hash] Programmatically labeled annotations for the Call. Developers can update the Call Summary records with Annotation during or after a Call. Annotations can be updated as long as the Call Summary record is addressable via the API.
def annotation
@properties['annotation']
end

##
# Fetch the CallSummaryInstance
# @param [ProcessingState] processing_state
# @param [ProcessingState] processing_state The Processing State of this Call Summary. One of `complete`, `partial` or `all`.
# @return [CallSummaryInstance] Fetched CallSummaryInstance
def fetch(
processing_state: :unset
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy