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

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

Overview

See Also:

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

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(limit: nil, page: nil, period: nil, user_ids: nil, request_options: {}) ⇒ EffectiveListParams

Some parameter documentations has been truncated, see Anthropic::Models::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::Organization::SpendLimitPeriod>, 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: {})
  • limit: (Integer) (defaults to: nil)
  • page: (String, nil) (defaults to: nil)
  • period: (::Array[Anthropic::Models::Organization::spend_limit_period], nil) (defaults to: nil)
  • user_ids: (::Array[String], nil) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


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

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)


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

optional :limit, Integer

#page ⇒ String?

Opaque cursor from a previous response's next_page field.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :page, String, nil?: true

#period ⇒ Array<Symbol, Anthropic::Models::Organization::SpendLimitPeriod>?

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::Organization::spend_limit_period], nil)

Returns:



30
31
32
# File 'lib/anthropic/models/organization/spend_limits/effective_list_params.rb', line 30

optional :period,
-> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Organization::SpendLimitPeriod] },
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)


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

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

Instance Method Details

#to_hash ⇒ { limit: Integer, page: String?, period: ::Array[Anthropic::Models::Organization::spend_limit_period]?, user_ids: ::Array[String]?, request_options: Anthropic::RequestOptions }

Returns:

  • ({ limit: Integer, page: String?, period: ::Array[Anthropic::Models::Organization::spend_limit_period]?, user_ids: ::Array[String]?, request_options: Anthropic::RequestOptions })


36
37
38
39
40
41
42
# File 'sig/anthropic/models/organization/spend_limits/effective_list_params.rbs', line 36

def to_hash: -> {
  limit: Integer,
  page: String?,
  period: ::Array[Anthropic::Models::Organization::spend_limit_period]?,
  user_ids: ::Array[String]?,
  request_options: Anthropic::RequestOptions
}