Class: Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitValue

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rb,
sig/anthropic/models/beta/organization/workspaces/beta_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:) ⇒ BetaWorkspaceRateLimitValue

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

Parameters:



# File 'lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rb', line 38

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)


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

required :org_limit, Integer, nil?: true

#source ⇒ Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitWorkspaceSource, Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitOrganizationSource

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

Parameters:

  • value (Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitValue::source)

Returns:



21
22
# File 'lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rb', line 21

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

#type ⇒ String

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

Parameters:

  • value (String)

Returns:

  • (String)


29
# File 'lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rb', line 29

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)


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

required :value, Integer

Instance Method Details

#to_hash ⇒ { org_limit: Integer?, source: Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitValue::source, type: String, value: Integer }

Returns:

  • ({ org_limit: Integer?, source: Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitValue::source, type: String, value: Integer })


30
31
32
33
34
35
# File 'sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rbs', line 30

def to_hash: -> {
  org_limit: Integer?,
  source: Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitValue::source,
  type: String,
  value: Integer
}