Module: TopologicalInventory::Providers::Common::Mixins::TopologyApi

Included in:
Operations::Processor
Defined in:
lib/topological_inventory/providers/common/mixins/topology_api.rb

Instance Method Summary collapse

Instance Method Details

#topology_apiObject



9
10
11
# File 'lib/topological_inventory/providers/common/mixins/topology_api.rb', line 9

def topology_api
  @topology_api ||= TopologicalInventory::Providers::Common::TopologyApiClient.new(identity)
end

#update_task(task_id, source_id: nil, state:, status:, target_type: nil, target_source_ref: nil, context: nil) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/topological_inventory/providers/common/mixins/topology_api.rb', line 13

def update_task(task_id, source_id: nil, state:, status:, target_type: nil, target_source_ref: nil, context: nil)
  topology_api.update_task(task_id,
                           :source_id         => source_id,
                           :state             => state,
                           :status            => status,
                           :target_type       => target_type,
                           :target_source_ref => target_source_ref,
                           :context           => context)
end