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: Group

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:, limits:, models:, type: :rate_limit) ⇒ BetaOrganizationRateLimit

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

Parameters:



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

Instance Attribute Details

#group ⇒ Anthropic::Models::Beta::Organization::BetaOrganizationRateLimitModelGroup, ...

The rate-limit group this entry's limits apply to.



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

required :group, union: -> { Anthropic::Beta::Organization::BetaOrganizationRateLimit::Group }

#id ⇒ String

Identifier of this rate-limit entry. It is stable within the organization and differs between organizations; the group's own identifier is group.id. Pass it as rate_limit_id to set a workspace's overrides for this group.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#limits ⇒ Array<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] }

#models ⇒ Array<String>?

Model names this entry's limits apply to, including aliases. null when group.type is not "model_group". The list covers the models your organization has access to, so it can differ between organizations.

Parameters:

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

Returns:

  • (Array<String>, nil)


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

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

#type ⇒ Symbol, :rate_limit

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

Parameters:

  • value (:rate_limit)

Returns:

  • (Symbol, :rate_limit)


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

required :type, const: :rate_limit

Instance Method Details

#to_hash ⇒ { id: String, group: Anthropic::Models::Beta::Organization::BetaOrganizationRateLimit::group, limits: ::Array[Anthropic::Beta::Organization::BetaOrganizationRateLimitValue], models: ::Array[String]?, type: :rate_limit }

Returns:

  • ({ id: String, group: Anthropic::Models::Beta::Organization::BetaOrganizationRateLimit::group, limits: ::Array[Anthropic::Beta::Organization::BetaOrganizationRateLimitValue], models: ::Array[String]?, type: :rate_limit })


33
34
35
36
37
38
39
# File 'sig/anthropic/models/beta/organization/beta_organization_rate_limit.rbs', line 33

def to_hash: -> {
  id: String,
  group: Anthropic::Models::Beta::Organization::BetaOrganizationRateLimit::group,
  limits: ::Array[Anthropic::Beta::Organization::BetaOrganizationRateLimitValue],
  models: ::Array[String]?,
  type: :rate_limit
}