lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb in twilio-ruby-5.26.0 vs lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb in twilio-ruby-5.27.0
- old
+ new
@@ -36,25 +36,25 @@
# For convenience, you can use an offset value such as `+30` to specify a
# trigger_value that is 30 units more than the current usage value. Be sure to
# urlencode a `+` as `%2B`.
# @param [trigger.UsageCategory] usage_category The usage category that the
# trigger should watch. Use one of the supported [usage
- # categories](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
+ # categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
# for this value.
# @param [String] callback_method The HTTP method we should use to call
# `callback_url`. Can be: `GET` or `POST` and the default is `POST`.
# @param [String] friendly_name A descriptive string that you create to describe
# the resource. It can be up to 64 characters long.
# @param [trigger.Recurring] recurring The frequency of a recurring UsageTrigger.
# Can be: `daily`, `monthly`, or `yearly` for recurring triggers or empty for
# non-recurring triggers. A trigger will only fire once during each period.
# Recurring times are in GMT.
# @param [trigger.TriggerField] trigger_by The field in the
- # [UsageRecord](https://www.twilio.com/docs/api/rest/usage-records) resource that
+ # [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource that
# should fire the trigger. Can be: `count`, `usage`, or `price` as described in
# the [UsageRecords
- # documentation](https://www.twilio.com/docs/api/rest/usage-records#usage-count-price). The default is `usage`.
+ # documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). The default is `usage`.
# @return [TriggerInstance] Newly created TriggerInstance
def create(callback_url: nil, trigger_value: nil, usage_category: nil, callback_method: :unset, friendly_name: :unset, recurring: :unset, trigger_by: :unset)
data = Twilio::Values.of({
'CallbackUrl' => callback_url,
'TriggerValue' => trigger_value,
@@ -81,14 +81,14 @@
# @param [trigger.Recurring] recurring The frequency of recurring UsageTriggers to
# read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers.
# An empty value or a value of `alltime` reads non-recurring UsageTriggers.
# @param [trigger.TriggerField] trigger_by The trigger field of the UsageTriggers
# to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords
- # documentation](https://www.twilio.com/docs/api/rest/usage-records#usage-count-price).
+ # documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
# @param [trigger.UsageCategory] usage_category The usage category of the
# UsageTriggers to read. Must be a supported [usage
- # categories](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
+ # categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
# @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
@@ -111,14 +111,14 @@
# @param [trigger.Recurring] recurring The frequency of recurring UsageTriggers to
# read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers.
# An empty value or a value of `alltime` reads non-recurring UsageTriggers.
# @param [trigger.TriggerField] trigger_by The trigger field of the UsageTriggers
# to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords
- # documentation](https://www.twilio.com/docs/api/rest/usage-records#usage-count-price).
+ # documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
# @param [trigger.UsageCategory] usage_category The usage category of the
# UsageTriggers to read. Must be a supported [usage
- # categories](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
+ # categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
# @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
@@ -157,14 +157,14 @@
# @param [trigger.Recurring] recurring The frequency of recurring UsageTriggers to
# read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers.
# An empty value or a value of `alltime` reads non-recurring UsageTriggers.
# @param [trigger.TriggerField] trigger_by The trigger field of the UsageTriggers
# to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords
- # documentation](https://www.twilio.com/docs/api/rest/usage-records#usage-count-price).
+ # documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
# @param [trigger.UsageCategory] usage_category The usage category of the
# UsageTriggers to read. Must be a supported [usage
- # categories](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
+ # categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
# @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 TriggerInstance
def page(recurring: :unset, trigger_by: :unset, usage_category: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
@@ -236,10 +236,10 @@
class TriggerContext < InstanceContext
##
# Initialize the TriggerContext
# @param [Version] version Version that contains the resource
# @param [String] account_sid The SID of the
- # [Account](https://www.twilio.com/docs/api/rest/account) that created the
+ # [Account](https://www.twilio.com/docs/iam/api/account) that created the
# UsageTrigger resource to fetch.
# @param [String] sid The Twilio-provided string that uniquely identifies the
# UsageTrigger resource to fetch.
# @return [TriggerContext] TriggerContext
def initialize(version, account_sid, sid)
\ No newline at end of file