Class: Nomad::JobValidation
- Defined in:
- lib/nomad/api/validate.rb
Constant Summary
Constants inherited from Response
Instance Attribute Summary collapse
-
#driver_config_validated ⇒ Boolean
readonly
The evaluation driver_config_validated.
-
#error ⇒ String
readonly
The evaluation error.
-
#validation_errors ⇒ Array<String>
readonly
The evaluation validation_errors.
Instance Method Summary collapse
-
#errored? ⇒ Boolean
Determines if the validation errored.
Methods inherited from Response
#==, decode, #initialize, #to_h
Constructor Details
This class inherits a constructor from Nomad::Response
Instance Attribute Details
#driver_config_validated ⇒ Boolean (readonly)
The evaluation driver_config_validated.
30 |
# File 'lib/nomad/api/validate.rb', line 30 field :DriverConfigValidated, as: :driver_config_validated |
#error ⇒ String (readonly)
The evaluation error.
40 |
# File 'lib/nomad/api/validate.rb', line 40 field :Error, as: :error, load: :string_as_nil |
#validation_errors ⇒ Array<String> (readonly)
The evaluation validation_errors.
35 |
# File 'lib/nomad/api/validate.rb', line 35 field :ValidationErrors, as: :validation_errors, load: :nil_as_array |
Instance Method Details
#errored? ⇒ Boolean
Determines if the validation errored.
44 45 46 |
# File 'lib/nomad/api/validate.rb', line 44 def errored? return !self.error.nil? || !self.validation_errors.empty? end |