Class: Anthropic::Models::Organization::SpendLimits::EffectiveListParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Organization::SpendLimits::EffectiveListParams
- 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
Instance Attribute Summary collapse
-
#limit ⇒ Integer?
Maximum number of members per page.
-
#page ⇒ String?
Opaque cursor from a previous response's
next_pagefield. -
#period ⇒ Array<Symbol, Anthropic::Models::Organization::SpendLimitPeriod>?
Restrict the report to these limit periods.
-
#user_ids ⇒ Array<String>?
Restrict the report to these members, by tagged user ID (
user_...).
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(limit: nil, page: nil, period: nil, user_ids: nil, request_options: {}) ⇒ EffectiveListParams
constructor
Some parameter documentations has been truncated, see EffectiveListParams for more details.
- #to_hash ⇒ { limit: Integer, page: String?, period: ::Array[Anthropic::Models::Organization::spend_limit_period]?, user_ids: ::Array[String]?, request_options: Anthropic::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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.
|
|
# 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.
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.
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.
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.
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 }
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
}
|