Class: Apcera::InstanceState
- Inherits:
-
BaseObject
- Object
- BaseObject
- Apcera::InstanceState
- Defined in:
- lib/apcera/models/instance_state.rb
Instance Attribute Summary collapse
-
#first_running ⇒ Object
Returns the value of attribute first_running.
-
#new ⇒ Object
Returns the value of attribute new.
-
#removed ⇒ Object
Returns the value of attribute removed.
-
#running ⇒ Object
Returns the value of attribute running.
-
#setup ⇒ Object
Returns the value of attribute setup.
-
#starting ⇒ Object
Returns the value of attribute starting.
-
#starting_wait ⇒ Object
Returns the value of attribute starting_wait.
-
#stopping ⇒ Object
Returns the value of attribute stopping.
-
#stopping_wait ⇒ Object
Returns the value of attribute stopping_wait.
-
#teardown ⇒ Object
Returns the value of attribute teardown.
-
#updating ⇒ Object
Returns the value of attribute updating.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ InstanceState
constructor
A new instance of InstanceState.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ InstanceState
Returns a new instance of InstanceState.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/apcera/models/instance_state.rb', line 63 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'FIRST_RUNNING'] self.first_running = attributes[:'FIRST_RUNNING'] end if attributes[:'NEW'] self.new = attributes[:'NEW'] end if attributes[:'REMOVED'] self.removed = attributes[:'REMOVED'] end if attributes[:'RUNNING'] self.running = attributes[:'RUNNING'] end if attributes[:'SETUP'] self.setup = attributes[:'SETUP'] end if attributes[:'STARTING'] self.starting = attributes[:'STARTING'] end if attributes[:'STARTING_WAIT'] self.starting_wait = attributes[:'STARTING_WAIT'] end if attributes[:'STOPPING'] self.stopping = attributes[:'STOPPING'] end if attributes[:'STOPPING_WAIT'] self.stopping_wait = attributes[:'STOPPING_WAIT'] end if attributes[:'TEARDOWN'] self.teardown = attributes[:'TEARDOWN'] end if attributes[:'UPDATING'] self.updating = attributes[:'UPDATING'] end end |
Instance Attribute Details
#first_running ⇒ Object
Returns the value of attribute first_running.
4 5 6 |
# File 'lib/apcera/models/instance_state.rb', line 4 def first_running @first_running end |
#new ⇒ Object
Returns the value of attribute new.
4 5 6 |
# File 'lib/apcera/models/instance_state.rb', line 4 def new @new end |
#removed ⇒ Object
Returns the value of attribute removed.
4 5 6 |
# File 'lib/apcera/models/instance_state.rb', line 4 def removed @removed end |
#running ⇒ Object
Returns the value of attribute running.
4 5 6 |
# File 'lib/apcera/models/instance_state.rb', line 4 def running @running end |
#setup ⇒ Object
Returns the value of attribute setup.
4 5 6 |
# File 'lib/apcera/models/instance_state.rb', line 4 def setup @setup end |
#starting ⇒ Object
Returns the value of attribute starting.
4 5 6 |
# File 'lib/apcera/models/instance_state.rb', line 4 def starting @starting end |
#starting_wait ⇒ Object
Returns the value of attribute starting_wait.
4 5 6 |
# File 'lib/apcera/models/instance_state.rb', line 4 def starting_wait @starting_wait end |
#stopping ⇒ Object
Returns the value of attribute stopping.
4 5 6 |
# File 'lib/apcera/models/instance_state.rb', line 4 def stopping @stopping end |
#stopping_wait ⇒ Object
Returns the value of attribute stopping_wait.
4 5 6 |
# File 'lib/apcera/models/instance_state.rb', line 4 def stopping_wait @stopping_wait end |
#teardown ⇒ Object
Returns the value of attribute teardown.
4 5 6 |
# File 'lib/apcera/models/instance_state.rb', line 4 def teardown @teardown end |
#updating ⇒ Object
Returns the value of attribute updating.
4 5 6 |
# File 'lib/apcera/models/instance_state.rb', line 4 def updating @updating end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/apcera/models/instance_state.rb', line 6 def self.attribute_map { # Number of instances where the job was started and is about to move into the `RUNNING` state. :'first_running' => :'FIRST_RUNNING', # Number of instances in the `NEW` state. :'new' => :'NEW', # Number of instances that are no longer consuming resources and have no remaining configuration on the system. :'removed' => :'REMOVED', # Number of instances that are running. :'running' => :'RUNNING', # Number of instances in which packages are being installed, networking initialized, etc. :'setup' => :'SETUP', # Number of instances whose processes have been started, but have not been verified to be running. :'starting' => :'STARTING', # Number of instances that are waiting for dependent jobs to become ready. :'starting_wait' => :'STARTING_WAIT', # Number of instances that are in the process of having their processes shutdown. :'stopping' => :'STOPPING', # Number of instances that are being stopped, but have jobs depending on it. In this case the other jobs must first transition past the `STOPPING` state before this instance can be stopped. :'stopping_wait' => :'STOPPING_WAIT', # Number of instances whose user-defined processes have been killed, and the instance is being removed from cluster resources. :'teardown' => :'TEARDOWN', # Number of instances that are in a state that allows the instance to update various properties of the container. :'updating' => :'UPDATING' } end |
.swagger_types ⇒ Object
attribute type
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/apcera/models/instance_state.rb', line 46 def self.swagger_types { :'first_running' => :'Integer', :'new' => :'Integer', :'removed' => :'Integer', :'running' => :'Integer', :'setup' => :'Integer', :'starting' => :'Integer', :'starting_wait' => :'Integer', :'stopping' => :'Integer', :'stopping_wait' => :'Integer', :'teardown' => :'Integer', :'updating' => :'Integer' } end |