lib/twilio-ruby/rest/api/v2010/account.rb in twilio-ruby-5.8.1 vs lib/twilio-ruby/rest/api/v2010/account.rb in twilio-ruby-5.9.0

- old
+ new

@@ -1,10 +1,12 @@ ## # This code was generated by # \ / _ _ _| _ _ # | (_)\/(_)(_|\/| |(/_ v1.0.0 # / / +# +# frozen_string_literal: true module Twilio module REST class Api < Domain class V2010 < Version @@ -43,12 +45,12 @@ # Lists AccountInstance records from the API as a list. # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. # @param [String] friendly_name Only return the Account resources with friendly # names that exactly match this name. - # @param [account.Status] status Only return Account resources with the given - # status. Can be `closed`, `suspended` or `active`. + # @param [String] status Only return Account resources with the given status. Can + # be `closed`, `suspended` or `active`. # @param [Integer] limit Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit # @param [Integer] page_size Number of records to fetch per request, when # not set will use the default value of 50 records. If no page_size is defined # but a limit is defined, stream() will attempt to read the limit with the most @@ -67,12 +69,12 @@ # Streams AccountInstance records from the API as an Enumerable. # This operation lazily loads records as efficiently as possible until the limit # is reached. # @param [String] friendly_name Only return the Account resources with friendly # names that exactly match this name. - # @param [account.Status] status Only return Account resources with the given - # status. Can be `closed`, `suspended` or `active`. + # @param [String] status Only return Account resources with the given status. Can + # be `closed`, `suspended` or `active`. # @param [Integer] limit Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit. # @param [Integer] page_size Number of records to fetch per request, when # not set will use the default value of 50 records. If no page_size is defined # but a limit is defined, stream() will attempt to read the limit with the most @@ -103,12 +105,12 @@ ## # Retrieve a single page of AccountInstance records from the API. # Request is executed immediately. # @param [String] friendly_name Only return the Account resources with friendly # names that exactly match this name. - # @param [account.Status] status Only return Account resources with the given - # status. Can be `closed`, `suspended` or `active`. + # @param [String] status Only return Account resources with the given status. Can + # be `closed`, `suspended` or `active`. # @param [String] page_token PageToken provided by the API # @param [Integer] page_number Page Number, this value is simply for client state # @param [Integer] page_size Number of records to return, defaults to 50 # @return [Page] Page of AccountInstance def page(friendly_name: :unset, status: :unset, page_token: :unset, page_number: :unset, page_size: :unset) @@ -233,12 +235,11 @@ ## # Update the AccountInstance # @param [String] friendly_name Update the human-readable description of this # Account - # @param [account.Status] status Alter the status of this account with a given - # Status + # @param [String] status Alter the status of this account with a given Status # @return [AccountInstance] Updated AccountInstance def update(friendly_name: :unset, status: :unset) data = Twilio::Values.of({'FriendlyName' => friendly_name, 'Status' => status, }) payload = @version.update( @@ -715,11 +716,11 @@ def sid @properties['sid'] end ## - # @return [account.Status] The status of this account + # @return [String] The status of this account def status @properties['status'] end ## @@ -749,11 +750,10 @@ ## # Update the AccountInstance # @param [String] friendly_name Update the human-readable description of this # Account - # @param [account.Status] status Alter the status of this account with a given - # Status + # @param [String] status Alter the status of this account with a given Status # @return [AccountInstance] Updated AccountInstance def update(friendly_name: :unset, status: :unset) context.update(friendly_name: friendly_name, status: status, ) end \ No newline at end of file