lib/twilio-ruby/rest/monitor/v1/event.rb in twilio-ruby-5.9.0 vs lib/twilio-ruby/rest/monitor/v1/event.rb in twilio-ruby-5.10.0

- old
+ new

@@ -29,12 +29,12 @@ # memory before returning. # @param [String] actor_sid The actor_sid # @param [String] event_type The event_type # @param [String] resource_sid The resource_sid # @param [String] source_ip_address The source_ip_address - # @param [Date] start_date The start_date - # @param [Date] end_date The end_date + # @param [Time] start_date The start_date + # @param [Time] end_date The end_date # @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 @@ -59,12 +59,12 @@ # is reached. # @param [String] actor_sid The actor_sid # @param [String] event_type The event_type # @param [String] resource_sid The resource_sid # @param [String] source_ip_address The source_ip_address - # @param [Date] start_date The start_date - # @param [Date] end_date The end_date + # @param [Time] start_date The start_date + # @param [Time] end_date The end_date # @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 @@ -105,24 +105,24 @@ # Request is executed immediately. # @param [String] actor_sid The actor_sid # @param [String] event_type The event_type # @param [String] resource_sid The resource_sid # @param [String] source_ip_address The source_ip_address - # @param [Date] start_date The start_date - # @param [Date] end_date The end_date + # @param [Time] start_date The start_date + # @param [Time] end_date The end_date # @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 EventInstance def page(actor_sid: :unset, event_type: :unset, resource_sid: :unset, source_ip_address: :unset, start_date: :unset, end_date: :unset, page_token: :unset, page_number: :unset, page_size: :unset) params = Twilio::Values.of({ 'ActorSid' => actor_sid, 'EventType' => event_type, 'ResourceSid' => resource_sid, 'SourceIpAddress' => source_ip_address, - 'StartDate' => Twilio.serialize_iso8601_date(start_date), - 'EndDate' => Twilio.serialize_iso8601_date(end_date), + 'StartDate' => Twilio.serialize_iso8601_datetime(start_date), + 'EndDate' => Twilio.serialize_iso8601_datetime(end_date), 'PageToken' => page_token, 'Page' => page_number, 'PageSize' => page_size, }) response = @version.page( @@ -280,11 +280,11 @@ def actor_type @properties['actor_type'] end ## - # @return [String] The description + # @return [String] A human-readable description of the event. May be null. def description @properties['description'] end ## @@ -316,16 +316,16 @@ def resource_type @properties['resource_type'] end ## - # @return [String] The sid + # @return [String] A 34 character string that uniquely identifies this event. def sid @properties['sid'] end ## - # @return [String] The source + # @return [String] The originating system or interface that caused the event. web for events caused by user action in the Twilio Console. api for events caused through a request to the REST API. twilio for events caused by an automated or internal Twilio system. def source @properties['source'] end ## \ No newline at end of file