Class: Anthropic::Models::Organization::Workspaces::WorkspaceRateLimit
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Organization::Workspaces::WorkspaceRateLimit
- Defined in:
- lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb,
sig/anthropic/models/organization/workspaces/workspace_rate_limit.rbs
Overview
Defined Under Namespace
Modules: Group
Instance Attribute Summary collapse
-
#group ⇒ Anthropic::Models::Organization::OrganizationRateLimitModelGroup, ...
The rate-limit group this entry's limits apply to.
-
#limits ⇒ Array<Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitValue>
The workspace's limiter values for this group.
-
#models ⇒ Array<String>?
Model names this entry's limits apply to, including aliases.
-
#rate_limit_id ⇒ String
The
idof the organization's RateLimit entry this entry applies to. -
#type ⇒ Symbol, :workspace_rate_limit
Object type.
-
#workspace_id ⇒ String
ID of the Workspace this entry applies to.
Instance Method Summary collapse
-
#initialize(group:, limits:, models:, rate_limit_id:, workspace_id:, type: :workspace_rate_limit) ⇒ void
constructor
Some parameter documentations has been truncated, see WorkspaceRateLimit for more details.
- #to_hash ⇒ {
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_
|
|
# 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.
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".
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.
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.
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.
49 |
# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb', line 49 required :workspace_id, String |
Instance Method Details
#to_hash ⇒ {
39 |
# File 'sig/anthropic/models/organization/workspaces/workspace_rate_limit.rbs', line 39 def to_hash: -> { |