Class: Anthropic::Models::Beta::Organization::SpendLimits::EffectiveListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/organization/spend_limits/effective_list_params.rb,
sig/anthropic/models/beta/organization/spend_limits/effective_list_params.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::SpendLimits::Effective#list

Defined Under Namespace

Modules: Period

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::Anthropic

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

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

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

#initialize ⇒ void



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

def initialize: (

Instance Attribute Details

#limit ⇒ Integer?

Maximum number of members per page. A member's period rows never split across pages, so a page may carry more rows than this. Defaults to 20.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


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

optional :limit, Integer

#page ⇒ String?

Opaque cursor from a previous response's next_page field.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :page, String, nil?: true

#period ⇒ Array<Symbol, Anthropic::Models::Beta::Organization::SpendLimits::EffectiveListParams::Period>?

Restrict the report to these limit periods. Omit to return one row per period each member resolves a spend limit for.

Parameters:

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

Returns:



31
32
33
34
35
# File 'lib/anthropic/models/beta/organization/spend_limits/effective_list_params.rb', line 31

optional :period,
-> {
  Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::Organization::SpendLimits::EffectiveListParams::Period]
},
nil?: true

#user_ids ⇒ Array<String>?

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

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


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

optional :user_ids, Anthropic::Internal::Type::ArrayOf[String], nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


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

def to_hash: -> {