Class: TopologicalInventory::Providers::Common::Operations::EndpointClient

Inherits:
Object
  • Object
show all
Includes:
TopologyApiClient
Defined in:
lib/topological_inventory/providers/common/operations/endpoint_client.rb

Instance Method Summary collapse

Methods included from TopologyApiClient

#svc_instance_url, #topology_api_client, #update_task

Constructor Details

#initialize(source_id, task_id, identity = nil) ⇒ EndpointClient

Returns a new instance of EndpointClient.



11
12
13
14
15
# File 'lib/topological_inventory/providers/common/operations/endpoint_client.rb', line 11

def initialize(source_id, task_id, identity = nil)
  self.identity   = identity
  self.source_id  = source_id
  self.task_id    = task_id
end

Instance Method Details

#order_service(service_offering, service_plan, order_params) ⇒ Object

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/topological_inventory/providers/common/operations/endpoint_client.rb', line 17

def order_service(service_offering, service_plan, order_params)
  raise NotImplementedError, "#{__method__} must be implemented in a subclass"
end

#provisioned_successfully?(endpoint_svc_instance) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


29
30
31
# File 'lib/topological_inventory/providers/common/operations/endpoint_client.rb', line 29

def provisioned_successfully?(endpoint_svc_instance)
  raise NotImplementedError, "#{__method__} must be implemented in a subclass"
end

#source_ref_of(endpoint_svc_instance) ⇒ Object

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/topological_inventory/providers/common/operations/endpoint_client.rb', line 21

def source_ref_of(endpoint_svc_instance)
  raise NotImplementedError, "#{__method__} must be implemented in a subclass"
end

#task_status_for(endpoint_svc_instance) ⇒ Object

Endpoint for conversion of provisioned service’s status to TopologicalInventory Task’s status

Raises:

  • (NotImplementedError)


35
36
37
# File 'lib/topological_inventory/providers/common/operations/endpoint_client.rb', line 35

def task_status_for(endpoint_svc_instance)
  raise NotImplementedError, "#{__method__} must be implemented in a subclass"
end

#wait_for_provision_complete(source_id, endpoint_svc_instance, context = {}) ⇒ Object

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/topological_inventory/providers/common/operations/endpoint_client.rb', line 25

def wait_for_provision_complete(source_id, endpoint_svc_instance, context = {})
  raise NotImplementedError, "#{__method__} must be implemented in a subclass"
end