lib/twilio-ruby/rest/accounts.rb in twilio-ruby-5.77.0 vs lib/twilio-ruby/rest/accounts.rb in twilio-ruby-6.0.0.pre.rc.1

- old
+ new

@@ -1,56 +1,26 @@ -## -# This code was generated by -# \ / _ _ _| _ _ -# | (_)\/(_)(_|\/| |(/_ v1.0.0 -# / / -# -# frozen_string_literal: true - module Twilio module REST - class Accounts < Domain + class Accounts < AccountsBase ## - # Initialize the Accounts Domain - def initialize(twilio) - super - - @base_url = 'https://accounts.twilio.com' - @host = 'accounts.twilio.com' - @port = 443 - - # Versions - @v1 = nil - end - - ## - # Version v1 of accounts - def v1 - @v1 ||= V1.new self - end - - ## # @return [Twilio::REST::Accounts::V1::AuthTokenPromotionInstance] def auth_token_promotion + warn "auth_token_promotion is deprecated. Use v1.auth_token_promotion instead." self.v1.auth_token_promotion() end ## # @return [Twilio::REST::Accounts::V1::CredentialInstance] def credentials + warn "credentials is deprecated. Use v1.credentials instead." self.v1.credentials() end ## # @return [Twilio::REST::Accounts::V1::SecondaryAuthTokenInstance] def secondary_auth_token + warn "secondary_auth_token is deprecated. Use v1.secondary_auth_token instead." self.v1.secondary_auth_token() - end - - ## - # Provide a user friendly representation - def to_s - '#<Twilio::REST::Accounts>' end end end end \ No newline at end of file