Class: Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitValue

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

Defined Under Namespace

Modules: Source

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(org_limit:, source:, type:, value:) ⇒ void

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

Parameters:



# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit_value.rb', line 36

Instance Attribute Details

#org_limit ⇒ Integer?

The organization-level value for the same limiter type, for reference. null when the organization has no limit configured for this limiter type.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


13
# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit_value.rb', line 13

required :org_limit, Integer, nil?: true

#source ⇒ Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitWorkspaceSource, Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitOrganizationSource

Where value comes from. organization values are listed only when include_inherited is true, and then value equals org_limit.

Parameters:

  • value (Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitValue::source)

Returns:



20
# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit_value.rb', line 20

required :source, union: -> { Anthropic::Organization::Workspaces::WorkspaceRateLimitValue::Source }

#type ⇒ String

The limiter type (for example, requests_per_minute or input_tokens_per_minute).

Parameters:

  • value (String)

Returns:

  • (String)


27
# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit_value.rb', line 27

required :type, String

#value ⇒ Integer

The workspace's value for this limiter type: the workspace-level override when source.type is workspace, otherwise the organization's value.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


34
# File 'lib/anthropic/models/organization/workspaces/workspace_rate_limit_value.rb', line 34

required :value, Integer

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


31
# File 'sig/anthropic/models/organization/workspaces/workspace_rate_limit_value.rbs', line 31

def to_hash: -> {