Class: Anthropic::Models::Beta::BetaBrowserStateChangeDownloadCompleted

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

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 ⇒ BetaBrowserStateChangeDownloadCompleted

Returns a new instance of BetaBrowserStateChangeDownloadCompleted.

Parameters:

  • download_id: (String)
  • url: (String)
  • path: (String, nil)
  • size_bytes: (Integer, nil)
  • type: (:download_completed)


26
27
28
29
30
31
32
# File 'sig/anthropic/models/beta/beta_browser_state_change_download_completed.rbs', line 26

def initialize: (
  download_id: String,
  url: String,
  ?path: String?,
  ?size_bytes: Integer?,
  ?type: :download_completed
) -> void

Instance Attribute Details

#download_id ⇒ String

The caller-assigned identifier for this download, stable across the state changes reporting it.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :download_id, String

#path ⇒ String?

Where the executor saved the file, on the executor's filesystem. Only included when another tool in the same environment can read the file at that path.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


30
# File 'lib/anthropic/models/beta/beta_browser_state_change_download_completed.rb', line 30

optional :path, String, nil?: true

#size_bytes ⇒ Integer?

The completed download's size.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


36
# File 'lib/anthropic/models/beta/beta_browser_state_change_download_completed.rb', line 36

optional :size_bytes, Integer, nil?: true

#type ⇒ Symbol, :download_completed

Parameters:

  • value (:download_completed)

Returns:

  • (Symbol, :download_completed)


17
# File 'lib/anthropic/models/beta/beta_browser_state_change_download_completed.rb', line 17

required :type, const: :download_completed

#url ⇒ String

The final post-redirect URL the download was served from.

Parameters:

  • value (String)

Returns:

  • (String)


23
# File 'lib/anthropic/models/beta/beta_browser_state_change_download_completed.rb', line 23

required :url, String

Instance Method Details

#to_hash ⇒ { download_id: String, type: :download_completed, url: String, path: String?, size_bytes: Integer? }

Returns:

  • ({ download_id: String, type: :download_completed, url: String, path: String?, size_bytes: Integer? })


34
35
36
37
38
39
40
# File 'sig/anthropic/models/beta/beta_browser_state_change_download_completed.rbs', line 34

def to_hash: -> {
  download_id: String,
  type: :download_completed,
  url: String,
  path: String?,
  size_bytes: Integer?
}