Class: RightScale::RecipeInstantiation

Inherits:
Object
  • Object
show all
Includes:
Serializable
Defined in:
lib/right_agent/core_payload_types/recipe_instantiation.rb

Overview

Recipe with json

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Serializable

included

Constructor Details

#initialize(*args) ⇒ RecipeInstantiation

Returns a new instance of RecipeInstantiation.



51
52
53
54
55
56
57
58
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 51

def initialize(*args)
  @nickname        = args[0] if args.size > 0
  @attributes      = args[1] if args.size > 1
  @id              = args[2] if args.size > 2
  @ready           = args[3] if args.size > 3
  @external_inputs = args[4] if args.size > 4
  @input_flags     = args[5] if args.size > 5
end

Instance Attribute Details

#attributesObject

(Hash) Recipe override attributes (JSON string for RightLink v5.0)



35
36
37
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 35

def attributes
  @attributes
end

#external_inputsObject

(Array of SecureDocumentLocation) attributes that must be resolved by the instance



44
45
46
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 44

def external_inputs
  @external_inputs
end

#idObject

(Integer) Recipe id



38
39
40
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 38

def id
  @id
end

#input_flagsObject

(Hash) nil or Hash of input name to flags (array of string tokens) indicating additional boolean properties of the input which are useful to the instance. the presence of the flag means true, absence means false.



49
50
51
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 49

def input_flags
  @input_flags
end

#nicknameObject

(String) Recipe nickname



32
33
34
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 32

def nickname
  @nickname
end

#readyObject

(Boolean) Whether recipe inputs are ready



41
42
43
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 41

def ready
  @ready
end

Instance Method Details

#serialized_membersObject

Array of serialized fields given to constructor



61
62
63
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 61

def serialized_members
  [ @nickname, @attributes, @id, @ready, @external_inputs, @input_flags ]
end