Class: Miasma::Models::Orchestration

Inherits:
Types::Api show all
Defined in:
lib/miasma/models/orchestration.rb,
lib/miasma/models/orchestration/event.rb,
lib/miasma/models/orchestration/stack.rb,
lib/miasma/models/orchestration/events.rb,
lib/miasma/models/orchestration/stacks.rb,
lib/miasma/models/orchestration/resource.rb,
lib/miasma/models/orchestration/resources.rb

Overview

Abstract orchestration API

Defined Under Namespace

Classes: Stack, Stacks

Constant Summary collapse

RESOURCE_MAPPING =
Smash.new
VALID_RESOURCE_STATES =
[
  :create_complete, :create_in_progress, :create_failed,
  :delete_complete, :delete_in_progress, :delete_failed,
  :rollback_complete, :rollback_in_progress, :rollback_failed,
  :update_complete, :update_in_progress, :update_failed,
  :update_rollback_complete, :update_rollback_in_progress,
  :update_rollback_failed, :unknown
]

Constants inherited from Types::Api

Types::Api::MAX_REQUEST_RETRIES, Types::Api::VALID_REQUEST_RETRY_METHODS

Instance Method Summary collapse

Methods inherited from Types::Api

#after_setup, #api_for, #connect, #connection, #custom_setup, #endpoint, #format_response, #from_json, #from_xml, #initialize, #make_request, #perform_request_retry, #provider, #request, #retryable_allowed?, #retryable_request

Constructor Details

This class inherits a constructor from Miasma::Types::Api

Instance Method Details

#event_all(stack) ⇒ Array<Models::Orchestration::Stack::Event>

Return all events for stack

Raises:

  • (NotImplementedError)


110
111
112
# File 'lib/miasma/models/orchestration.rb', line 110

def event_all(stack)
  raise NotImplementedError
end

#event_all_new(events) ⇒ Array<Models::Orchestration::Stack::Event>

Return all new events for event collection

Raises:

  • (NotImplementedError)


118
119
120
# File 'lib/miasma/models/orchestration.rb', line 118

def event_all_new(events)
  raise NotImplementedError
end

#event_reload(event) ⇒ Models::Orchestration::Event

Reload the stack event data from the API

Raises:

  • (NotImplementedError)


126
127
128
# File 'lib/miasma/models/orchestration.rb', line 126

def event_reload(event)
  raise NotImplementedError
end

#resource_all(stack) ⇒ Array<Models::Orchestration::Stack::Resource>

Return all resources for stack

Raises:

  • (NotImplementedError)


94
95
96
# File 'lib/miasma/models/orchestration.rb', line 94

def resource_all(stack)
  raise NotImplementedError
end

#resource_reload(resource) ⇒ Models::Orchestration::Resource

Reload the stack resource data from the API

Raises:

  • (NotImplementedError)


102
103
104
# File 'lib/miasma/models/orchestration.rb', line 102

def resource_reload(resource)
  raise NotImplementedError
end

#stack_all(options = {}) ⇒ Array<Models::Orchestration::Stack>

Return all stacks

Raises:

  • (NotImplementedError)


70
71
72
# File 'lib/miasma/models/orchestration.rb', line 70

def stack_all(options={})
  raise NotImplementedError
end

#stack_destroy(stack) ⇒ TrueClass, FalseClass

Delete the stack

Raises:

  • (NotImplementedError)


62
63
64
# File 'lib/miasma/models/orchestration.rb', line 62

def stack_destroy(stack)
  raise NotImplementedError
end

#stack_reload(stack) ⇒ Models::Orchestration::Stack

Reload the stack data from the API

Raises:

  • (NotImplementedError)


54
55
56
# File 'lib/miasma/models/orchestration.rb', line 54

def stack_reload(stack)
  raise NotImplementedError
end

#stack_save(stack) ⇒ Models::Orchestration::Stack

Save the stack

Raises:

  • (NotImplementedError)


46
47
48
# File 'lib/miasma/models/orchestration.rb', line 46

def stack_save(stack)
  raise NotImplementedError
end

#stack_template_load(stack) ⇒ Smash

Fetch stack template

Raises:

  • (NotImplementedError)


78
79
80
# File 'lib/miasma/models/orchestration.rb', line 78

def stack_template_load(stack)
  raise NotImplementedError
end

#stack_template_validate(stack) ⇒ NilClass, String

Validate stack template

Raises:

  • (NotImplementedError)


86
87
88
# File 'lib/miasma/models/orchestration.rb', line 86

def stack_template_validate(stack)
  raise NotImplementedError
end

#stacks(args = {}) ⇒ Types::Collection<Models::Orchestration::Stack>

Orchestration stacks



36
37
38
39
40
# File 'lib/miasma/models/orchestration.rb', line 36

def stacks(args={})
  memoize(:stacks) do
    Stacks.new(self)
  end
end