Class: Anthropic::Models::Beta::Environments::BetaSelfHostedWorkStopRequest

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/environments/beta_self_hosted_work_stop_request.rb,
sig/anthropic/models/beta/environments/beta_self_hosted_work_stop_request.rbs

Direct Known Subclasses

WorkStopParams

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(force: nil) ⇒ BetaSelfHostedWorkStopRequest

Request to stop a work item.

Parameters:

  • force (Boolean) (defaults to: nil)

    If true, immediately stop work without graceful shutdown

  • force: (Boolean) (defaults to: nil)


# File 'lib/anthropic/models/beta/environments/beta_self_hosted_work_stop_request.rb', line 14

Instance Attribute Details

#forceBoolean?

If true, immediately stop work without graceful shutdown

Parameters:

Returns:



12
# File 'lib/anthropic/models/beta/environments/beta_self_hosted_work_stop_request.rb', line 12

optional :force, Anthropic::Internal::Type::Boolean

Instance Method Details

#to_hash{ force: bool }

Returns:

  • ({ force: bool })


14
# File 'sig/anthropic/models/beta/environments/beta_self_hosted_work_stop_request.rbs', line 14

def to_hash: -> { force: bool }