Skip to content
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

Correct 'delete' method doc to indicate 'false' when resource not deleted #462

Merged
merged 1 commit into from
Aug 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/accounts/v1/credential/aws.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def update(friendly_name: :unset)

##
# Deletes the AwsInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -330,7 +330,7 @@ def update(friendly_name: :unset)

##
# Deletes the AwsInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def update(friendly_name: :unset)

##
# Deletes the PublicKeyInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -330,7 +330,7 @@ def update(friendly_name: :unset)

##
# Deletes the PublicKeyInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def initialize(version, account_sid, sid)

##
# Deletes the AddressInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -469,7 +469,7 @@ def verified

##
# Deletes the AddressInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def initialize(version, account_sid, sid)

##
# Deletes the ApplicationInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -520,7 +520,7 @@ def voice_url

##
# Deletes the ApplicationInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/call.rb
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def initialize(version, account_sid, sid)

##
# Deletes the CallInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -761,7 +761,7 @@ def uri

##
# Deletes the CallInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def fetch

##
# Deletes the FeedbackSummaryInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -298,7 +298,7 @@ def fetch

##
# Deletes the FeedbackSummaryInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/call/notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def fetch

##
# Deletes the NotificationInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -422,7 +422,7 @@ def fetch

##
# Deletes the NotificationInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/call/recording.rb
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def fetch

##
# Deletes the RecordingInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -499,7 +499,7 @@ def fetch

##
# Deletes the RecordingInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def update(muted: :unset, hold: :unset, hold_url: :unset, hold_method: :unset, a

##
# Deletes the ParticipantInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -657,7 +657,7 @@ def update(muted: :unset, hold: :unset, hold_url: :unset, hold_method: :unset, a

##
# Deletes the ParticipantInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def fetch

##
# Deletes the RecordingInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -454,7 +454,7 @@ def fetch

##
# Deletes the RecordingInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/connect_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def update(authorize_redirect_url: :unset, company_name: :unset, deauthorize_cal

##
# Deletes the ConnectAppInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -400,7 +400,7 @@ def update(authorize_redirect_url: :unset, company_name: :unset, deauthorize_cal

##
# Deletes the ConnectAppInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def fetch

##
# Deletes the IncomingPhoneNumberInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -857,7 +857,7 @@ def fetch

##
# Deletes the IncomingPhoneNumberInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def fetch

##
# Deletes the AssignedAddOnInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -410,7 +410,7 @@ def fetch

##
# Deletes the AssignedAddOnInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def update(friendly_name: :unset)

##
# Deletes the KeyInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -295,7 +295,7 @@ def update(friendly_name: :unset)

##
# Deletes the KeyInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
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 @@ -300,7 +300,7 @@ def initialize(version, account_sid, sid)

##
# Deletes the MessageInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -562,7 +562,7 @@ def uri

##
# Deletes the MessageInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/message/media.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def initialize(version, account_sid, message_sid, sid)

##
# Deletes the MediaInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -335,7 +335,7 @@ def uri

##
# Deletes the MediaInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def fetch

##
# Deletes the NotificationInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -402,7 +402,7 @@ def fetch

##
# Deletes the NotificationInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def update(friendly_name: :unset)

##
# Deletes the OutgoingCallerIdInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -351,7 +351,7 @@ def update(friendly_name: :unset)

##
# Deletes the OutgoingCallerIdInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def update(friendly_name: :unset, max_size: :unset)

##
# Deletes the QueueInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -381,7 +381,7 @@ def update(friendly_name: :unset, max_size: :unset)

##
# Deletes the QueueInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/recording.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def fetch

##
# Deletes the RecordingInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -458,7 +458,7 @@ def fetch

##
# Deletes the RecordingInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def fetch

##
# Deletes the AddOnResultInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -372,7 +372,7 @@ def fetch

##
# Deletes the AddOnResultInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def fetch

##
# Deletes the PayloadInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
Expand Down Expand Up @@ -367,7 +367,7 @@ def fetch

##
# Deletes the PayloadInstance
# @return [Boolean] true if delete succeeds, true otherwise
# @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
Expand Down
Loading