Module: Anthropic::Models::Beta::Organization::SpendLimits::EffectiveListParams::Period

Extended by:
Internal::Type::Enum
Defined in:
lib/anthropic/models/beta/organization/spend_limits/effective_list_params.rb,
sig/anthropic/models/beta/organization/spend_limits/effective_list_params.rbs

Constant Summary collapse

DAILY =

Returns:

  • (:daily)
:daily
MONTHLY =

Returns:

  • (:monthly)
:monthly
WEEKLY =

Returns:

  • (:weekly)
:weekly

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/anthropic/models/beta/organization/spend_limits/effective_list_params.rb', line 66

Instance Method Details

#initialize(limit: nil, page: nil, period: nil, user_ids: nil, request_options: {}) ⇒ void

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::SpendLimits::EffectiveListParams for more details.

Parameters:

  • limit (Integer) (defaults to: nil) —

    Maximum number of members per page. A member's period rows never split across pa

  • page (String, nil) (defaults to: nil) —

    Opaque cursor from a previous response's next_page field.

  • period (Array<Symbol, Anthropic::Models::Beta::Organization::SpendLimits::EffectiveListParams::Period>, nil) (defaults to: nil) —

    Restrict the report to these limit periods. Omit to return one row per period ea

  • user_ids (Array<String>, nil) (defaults to: nil) —

    Restrict the report to these members, by tagged user ID (user_...). At most 10

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


59
60
61
62
63
64
65
66
67
68
# File 'lib/anthropic/models/beta/organization/spend_limits/effective_list_params.rb', line 59

module Period
  extend Anthropic::Internal::Type::Enum

  DAILY = :daily
  MONTHLY = :monthly
  WEEKLY = :weekly

  # @!method self.values
  #   @return [Array<Symbol>]
end

#self?.values ⇒ ::Array[Anthropic::Models::Beta::Organization::SpendLimits::EffectiveListParams::period]

Returns:

  • (::Array[Anthropic::Models::Beta::Organization::SpendLimits::EffectiveListParams::period])


54
# File 'sig/anthropic/models/beta/organization/spend_limits/effective_list_params.rbs', line 54

def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::SpendLimits::EffectiveListParams::period]