Class: Cadenya::Models::ToolSetInfo

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/tool_set_info.rb,
sig/cadenya/models/tool_set_info.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(agent_count: nil, available_tools: nil, created_by: nil, last_sync: nil, omitted_tools: nil, tool_count: nil) ⇒ Object

Some parameter documentations has been truncated, see Cadenya::Models::ToolSetInfo for more details.

Parameters:

  • agent_count (Integer) (defaults to: nil)
  • available_tools (Integer) (defaults to: nil)
  • created_by (Cadenya::Models::Profile) (defaults to: nil)

    A profile identifies a user or non-human principal (such as an API key)

  • last_sync (Time) (defaults to: nil)
  • omitted_tools (Integer) (defaults to: nil)
  • tool_count (Integer) (defaults to: nil)


# File 'lib/cadenya/models/tool_set_info.rb', line 41

Instance Attribute Details

#agent_countInteger? (readonly)

Returns the value of attribute agent_count.

Returns:

  • (Integer, nil)


26
27
28
# File 'sig/cadenya/models/tool_set_info.rbs', line 26

def agent_count
  @agent_count
end

#available_toolsInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


9
# File 'lib/cadenya/models/tool_set_info.rb', line 9

optional :available_tools, Integer, api_name: :availableTools

#created_byCadenya::Models::Profile?

A profile identifies a user or non-human principal (such as an API key) at the account level. Profiles are account-scoped and can be granted access to multiple workspaces.

Parameters:

Returns:



17
# File 'lib/cadenya/models/tool_set_info.rb', line 17

optional :created_by, -> { Cadenya::Profile }, api_name: :createdBy

#last_syncTime? (readonly)

Returns the value of attribute last_sync.

Returns:

  • (Time, nil)


30
31
32
# File 'sig/cadenya/models/tool_set_info.rbs', line 30

def last_sync
  @last_sync
end

#omitted_toolsInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


22
# File 'lib/cadenya/models/tool_set_info.rb', line 22

optional :omitted_tools, Integer, api_name: :omittedTools

#tool_countInteger? (readonly)

Returns the value of attribute tool_count.

Returns:

  • (Integer, nil)


34
35
36
# File 'sig/cadenya/models/tool_set_info.rbs', line 34

def tool_count
  @tool_count
end

Instance Method Details

#agent_count=Integer (readonly)

Parameters:

  • (Integer)

Returns:

  • (Integer)


28
# File 'sig/cadenya/models/tool_set_info.rbs', line 28

def agent_count=: (Integer) -> Integer

#last_sync=Time (readonly)

Parameters:

  • (Time)

Returns:

  • (Time)


32
# File 'sig/cadenya/models/tool_set_info.rbs', line 32

def last_sync=: (Time) -> Time

#to_hash{

Returns:

  • ({)


47
# File 'sig/cadenya/models/tool_set_info.rbs', line 47

def to_hash: -> {

#tool_count=Integer (readonly)

Parameters:

  • (Integer)

Returns:

  • (Integer)


36
# File 'sig/cadenya/models/tool_set_info.rbs', line 36

def tool_count=: (Integer) -> Integer