Class: Anthropic::Models::Organization::Workspaces::WorkspaceRateLimit

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

Overview

See Also:

  • Anthropic::Resources::Organization::Workspaces::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(group:, limits:, models:, rate_limit_id:, workspace_id:, type: :workspace_rate_limit) ⇒ void

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

`group_

Parameters:



# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb', line 51


Instance Attribute Details

#group ⇒ Anthropic::Models::Organization::OrganizationRateLimitModelGroup, ...

The rate-limit group this entry's limits apply to. Its type equals group_type.



14
# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb', line 14

required :group, union: -> { Anthropic::Organization::Workspaces::WorkspaceRateLimit::Group }

#limits ⇒ Array<Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitValue>

The workspace's limiter values for this group. By default only the limiter types with a workspace-level override are listed. With include_inherited set to true, the limiter types the workspace inherits from the organization are listed too, each marked by source.

Parameters:

  • value (::Array[Anthropic::Organization::Workspaces::WorkspaceRateLimitValue])

Returns:



23
24
# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb', line 23

required :limits,
-> { Anthropic::Internal::Type::ArrayOf[Anthropic::Organization::Workspaces::WorkspaceRateLimitValue] }

#models ⇒ Array<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)


31
# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb', line 31

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

#rate_limit_id ⇒ String

The id of the organization's RateLimit entry this entry applies to.

Parameters:

  • value (String)

Returns:

  • (String)


37
# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb', line 37

required :rate_limit_id, String

#type ⇒ Symbol, :workspace_rate_limit

Object type. Always workspace_rate_limit for workspace rate-limit entries.

Parameters:

  • value (:workspace_rate_limit)

Returns:

  • (Symbol, :workspace_rate_limit)


43
# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb', line 43

required :type, const: :workspace_rate_limit

#workspace_id ⇒ String

ID of the Workspace this entry applies to.

Parameters:

  • value (String)

Returns:

  • (String)


49
# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb', line 49

required :workspace_id, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


39
# File 'sig/anthropic/models/organization/workspaces/workspace_rate_limit.rbs', line 39

def to_hash: -> {