Class: Notion::Generated::Endpoints::Agents
- Inherits:
-
Endpoints::Base
- Object
- Endpoints::Base
- Notion::Generated::Endpoints::Agents
- Defined in:
- lib/notion/generated/endpoints/agents.rb
Instance Method Summary collapse
-
#batch(operations:, **params, &block) ⇒ Object
Apply many agent operations.
-
#delete(agent_id:, **params, &block) ⇒ Object
Delete agent.
-
#insights(agent_id:, **params, &block) ⇒ Object
Get agent insights.
-
#query(**params, &block) ⇒ Object
Query agents.
-
#retrieve(agent_id:, **params, &block) ⇒ Object
Get agent.
-
#update_credit_limit(agent_id:, credit_limit:, **params, &block) ⇒ Object
Update agent credit limit.
-
#update_status(agent_id:, status:, **params, &block) ⇒ Object
Update agent status.
Methods inherited from Endpoints::Base
#initialize, operation, operations
Constructor Details
This class inherits a constructor from Notion::Endpoints::Base
Instance Method Details
#batch(operations:, **params, &block) ⇒ Object
Apply many agent operations
57 58 59 60 |
# File 'lib/notion/generated/endpoints/agents.rb', line 57 def batch(operations:, **params, &block) params[:operations] = operations invoke_operation(:batch, params, &block) end |
#delete(agent_id:, **params, &block) ⇒ Object
Delete agent
31 32 33 34 |
# File 'lib/notion/generated/endpoints/agents.rb', line 31 def delete(agent_id:, **params, &block) params[:agent_id] = agent_id invoke_operation(:delete, params, &block) end |
#insights(agent_id:, **params, &block) ⇒ Object
Get agent insights
37 38 39 40 |
# File 'lib/notion/generated/endpoints/agents.rb', line 37 def insights(agent_id:, **params, &block) params[:agent_id] = agent_id invoke_operation(:insights, params, &block) end |
#query(**params, &block) ⇒ Object
Query agents
19 20 21 22 |
# File 'lib/notion/generated/endpoints/agents.rb', line 19 def query(**params, &block) invoke_operation(:query, params, &block) end |
#retrieve(agent_id:, **params, &block) ⇒ Object
Get agent
25 26 27 28 |
# File 'lib/notion/generated/endpoints/agents.rb', line 25 def retrieve(agent_id:, **params, &block) params[:agent_id] = agent_id invoke_operation(:retrieve, params, &block) end |
#update_credit_limit(agent_id:, credit_limit:, **params, &block) ⇒ Object
Update agent credit limit
50 51 52 53 54 |
# File 'lib/notion/generated/endpoints/agents.rb', line 50 def update_credit_limit(agent_id:, credit_limit:, **params, &block) params[:agent_id] = agent_id params[:credit_limit] = credit_limit invoke_operation(:update_credit_limit, params, &block) end |
#update_status(agent_id:, status:, **params, &block) ⇒ Object
Update agent status
43 44 45 46 47 |
# File 'lib/notion/generated/endpoints/agents.rb', line 43 def update_status(agent_id:, status:, **params, &block) params[:agent_id] = agent_id params[:status] = status invoke_operation(:update_status, params, &block) end |