Class: Anthropic::Models::Beta::Organization::BetaOrganizationRateLimit

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb,
sig/anthropic/models/beta/organization/beta_organization_rate_limit.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::RateLimits#list

Defined Under Namespace

Modules: GroupType

Instance Attribute Summary collapse

Instance Method Summary collapse

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(id:, group_type:, limits:, models:, type: :rate_limit) ⇒ Object

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

`group_

Parameters:



# File 'lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb', line 43

Instance Attribute Details

#group_typeSymbol, Anthropic::Models::Beta::Organization::BetaOrganizationRateLimit::GroupType

The kind of rate-limit group this entry represents. model_group entries apply to a family of models (listed in models); other values apply to an API-surface category and have models set to null.

Parameters:

  • value (Anthropic::Models::Beta::Organization::BetaOrganizationRateLimit::group_type)

Returns:



21
# File 'lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb', line 21

required :group_type, enum: -> { Anthropic::Beta::Organization::BetaOrganizationRateLimit::GroupType }

#idString

Stable identifier for this rate-limit group within the organization.

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb', line 13

required :id, String

#limitsArray<Anthropic::Models::Beta::Organization::BetaOrganizationRateLimitValue>

The limiter values that apply to this group.

Parameters:

  • value (::Array[Anthropic::Beta::Organization::BetaOrganizationRateLimitValue])

Returns:



27
28
# File 'lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb', line 27

required :limits,
-> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::Organization::BetaOrganizationRateLimitValue] }

#modelsArray<String>?

Model names this entry's limits apply to, including aliases. null when group_type is not "model_group".

Parameters:

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

Returns:

  • (Array<String>, nil)


35
# File 'lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb', line 35

required :models, Anthropic::Internal::Type::ArrayOf[String], nil?: true

#typeSymbol, :rate_limit

Object type. Always rate_limit for organization rate-limit entries.

Parameters:

  • value (:rate_limit)

Returns:

  • (Symbol, :rate_limit)


41
# File 'lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb', line 41

required :type, const: :rate_limit

Instance Method Details

#to_hash{

Returns:

  • ({)


33
# File 'sig/anthropic/models/beta/organization/beta_organization_rate_limit.rbs', line 33

def to_hash: -> {