lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb in twilio-ruby-5.0.0.rc13 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb in twilio-ruby-5.0.0.rc14
- old
+ new
@@ -30,50 +30,42 @@
##
# Lists ReservationInstance records from the API as a list.
# Unlike stream(), this operation is eager and will load `limit` records into
# memory before returning.
- # @param [String] status The status
- # @param [String] assignment_status The assignment_status
- # @param [String] reservation_status The reservation_status
+ # @param [reservation.Status] reservation_status The reservation_status
# @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 efficient page size, i.e. min(limit, 1000)
# @return [Array] Array of up to limit results
- def list(status: nil, assignment_status: nil, reservation_status: nil, limit: nil, page_size: nil)
+ def list(reservation_status: nil, limit: nil, page_size: nil)
self.stream(
- status: status,
- assignment_status: assignment_status,
reservation_status: reservation_status,
limit: limit,
page_size: page_size
).entries
end
##
# Streams ReservationInstance records from the API as an Enumerable.
# This operation lazily loads records as efficiently as possible until the limit
# is reached.
- # @param [String] status The status
- # @param [String] assignment_status The assignment_status
- # @param [String] reservation_status The reservation_status
+ # @param [reservation.Status] reservation_status The reservation_status
# @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 efficient page size, i.e. min(limit, 1000)
# @return [Enumerable] Enumerable that will yield up to limit results
- def stream(status: nil, assignment_status: nil, reservation_status: nil, limit: nil, page_size: nil)
+ def stream(reservation_status: nil, limit: nil, page_size: nil)
limits = @version.read_limits(limit, page_size)
page = self.page(
- status: status,
- assignment_status: assignment_status,
reservation_status: reservation_status,
page_size: limits[:page_size],
)
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -81,13 +73,11 @@
##
# When passed a block, yields ReservationInstance records from the API.
# This operation lazily loads records as efficiently as possible until the limit
# is reached.
- # @param [String] status The status
- # @param [String] assignment_status The assignment_status
- # @param [String] reservation_status The reservation_status
+ # @param [reservation.Status] reservation_status The reservation_status
# @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
@@ -105,21 +95,17 @@
end
##
# Retrieve a single page of ReservationInstance records from the API.
# Request is executed immediately.
- # @param [String] status The status
- # @param [String] assignment_status The assignment_status
- # @param [String] reservation_status The reservation_status
+ # @param [reservation.Status] reservation_status The reservation_status
# @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 ReservationInstance
- def page(status: nil, assignment_status: nil, reservation_status: nil, page_token: nil, page_number: nil, page_size: nil)
+ def page(reservation_status: nil, page_token: nil, page_number: nil, page_size: nil)
params = {
- 'Status' => status,
- 'AssignmentStatus' => assignment_status,
'ReservationStatus' => reservation_status,
'PageToken' => page_token,
'Page' => page_number,
'PageSize' => page_size,
}
@@ -215,11 +201,11 @@
)
end
##
# Update the ReservationInstance
- # @param [String] reservation_status The reservation_status
+ # @param [reservation.Status] reservation_status The reservation_status
# @param [String] worker_activity_sid The worker_activity_sid
# @param [String] instruction The instruction
# @param [String] dequeue_post_work_activity_sid The
# dequeue_post_work_activity_sid
# @param [String] dequeue_from The dequeue_from
@@ -378,10 +364,10 @@
context.fetch
end
##
# Update the ReservationInstance
- # @param [String] reservation_status The reservation_status
+ # @param [reservation.Status] reservation_status The reservation_status
# @param [String] worker_activity_sid The worker_activity_sid
# @param [String] instruction The instruction
# @param [String] dequeue_post_work_activity_sid The
# dequeue_post_work_activity_sid
# @param [String] dequeue_from The dequeue_from
\ No newline at end of file