Class: Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimit
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimit
- Defined in:
- lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb,
sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rbs
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#group ⇒ Anthropic::Models::Beta::Organization::BetaOrganizationRateLimitModelGroup, ...
The rate-limit group this entry's limits apply to.
-
#group_type ⇒ Symbol, Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimit::GroupType
deprecated
Deprecated.
Use
group.typeinstead.group_typeis still returned and always equals -
#limits ⇒ Array<Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitValue>
The limiter values overridden for this group in this workspace.
-
#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 override applies to. -
#type ⇒ Symbol, :workspace_rate_limit
Object type.
-
#workspace_id ⇒ String
ID of the Workspace this override applies to.
Instance Method Summary collapse
-
#initialize(group:, group_type:, limits:, models:, rate_limit_id:, workspace_id:, type: :workspace_rate_limit) ⇒ void
constructor
Some parameter documentations has been truncated, see BetaWorkspaceRateLimit 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:, group_type:, limits:, models:, rate_limit_id:, workspace_id:, type: :workspace_rate_limit) ⇒ void
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimit for more details.
`group_
|
|
# File 'lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb', line 63
|
Instance Attribute Details
#group ⇒ Anthropic::Models::Beta::Organization::BetaOrganizationRateLimitModelGroup, ...
The rate-limit group this entry's limits apply to. Its type equals
group_type.
15 |
# File 'lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb', line 15 required :group, union: -> { Anthropic::Beta::Organization::Workspaces::BetaWorkspaceRateLimit::Group } |
#group_type ⇒ Symbol, Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimit::GroupType
Use group.type instead. group_type is still returned and always equals
group.type.
Deprecated: use group.type instead. 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. Always equal to group.type.
27 28 |
# File 'lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb', line 27 required :group_type, enum: -> { Anthropic::Beta::Organization::Workspaces::BetaWorkspaceRateLimit::GroupType } |
#limits ⇒ Array<Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitValue>
The limiter values overridden for this group in this workspace. Limiter types without a workspace override are omitted and inherit the organization value.
35 36 |
# File 'lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb', line 35 required :limits, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::Organization::Workspaces::BetaWorkspaceRateLimitValue] } |
#models ⇒ Array<String>?
Model names this entry's limits apply to, including aliases. null when
group_type is not "model_group".
43 |
# File 'lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb', line 43 required :models, Anthropic::Internal::Type::ArrayOf[String], nil?: true |
#rate_limit_id ⇒ String
The id of the organization's RateLimit entry this override applies to.
49 |
# File 'lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb', line 49 required :rate_limit_id, String |
#type ⇒ Symbol, :workspace_rate_limit
Object type. Always workspace_rate_limit for workspace rate-limit entries.
55 |
# File 'lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb', line 55 required :type, const: :workspace_rate_limit |
#workspace_id ⇒ String
ID of the Workspace this override applies to.
61 |
# File 'lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb', line 61 required :workspace_id, String |
Instance Method Details
#to_hash ⇒ {
42 |
# File 'sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rbs', line 42
def to_hash: -> {
|