Class: OCI::LogAnalytics::Models::ValidateLabelConditionResult
- Inherits:
- 
      Object
      
        - Object
- OCI::LogAnalytics::Models::ValidateLabelConditionResult
 
- Defined in:
- lib/oci/log_analytics/models/validate_label_condition_result.rb
Overview
The result of the label condition validation
Instance Attribute Summary collapse
- 
  
    
      #condition_block  ⇒ OCI::LogAnalytics::Models::ConditionBlock 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This attribute is required. 
- 
  
    
      #condition_string  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Required] String representation of the validated label condition. 
- 
  
    
      #evaluation_result  ⇒ BOOLEAN 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The result of evaluating the condition blocks against the specified field values. 
- 
  
    
      #field_values  ⇒ Array<OCI::LogAnalytics::Models::LogAnalyticsProperty> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Field values against which the label condition was evaluated. 
- 
  
    
      #status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Required] The validation status. 
- 
  
    
      #status_description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The validation status description. 
Class Method Summary collapse
- 
  
    
      .attribute_map  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Attribute mapping from ruby-style variable name to JSON key. 
- 
  
    
      .swagger_types  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Attribute type mapping. 
Instance Method Summary collapse
- 
  
    
      #==(other)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Checks equality by comparing each attribute. 
- 
  
    
      #build_from_hash(attributes)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Builds the object from hash. 
- #eql?(other) ⇒ Boolean
- 
  
    
      #hash  ⇒ Fixnum 
    
    
  
  
  
  
  
  
  
  
  
    Calculates hash code according to all attributes. 
- 
  
    
      #initialize(attributes = {})  ⇒ ValidateLabelConditionResult 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Initializes the object. 
- 
  
    
      #to_hash  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    Returns the object in the form of hash. 
- 
  
    
      #to_s  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Returns the string representation of the object. 
Constructor Details
#initialize(attributes = {}) ⇒ ValidateLabelConditionResult
Initializes the object
| 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 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 76 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.condition_string = attributes[:'conditionString'] if attributes[:'conditionString'] raise 'You cannot provide both :conditionString and :condition_string' if attributes.key?(:'conditionString') && attributes.key?(:'condition_string') self.condition_string = attributes[:'condition_string'] if attributes[:'condition_string'] self.condition_block = attributes[:'conditionBlock'] if attributes[:'conditionBlock'] raise 'You cannot provide both :conditionBlock and :condition_block' if attributes.key?(:'conditionBlock') && attributes.key?(:'condition_block') self.condition_block = attributes[:'condition_block'] if attributes[:'condition_block'] self.field_values = attributes[:'fieldValues'] if attributes[:'fieldValues'] raise 'You cannot provide both :fieldValues and :field_values' if attributes.key?(:'fieldValues') && attributes.key?(:'field_values') self.field_values = attributes[:'field_values'] if attributes[:'field_values'] self.status = attributes[:'status'] if attributes[:'status'] self.status_description = attributes[:'statusDescription'] if attributes[:'statusDescription'] raise 'You cannot provide both :statusDescription and :status_description' if attributes.key?(:'statusDescription') && attributes.key?(:'status_description') self.status_description = attributes[:'status_description'] if attributes[:'status_description'] self.evaluation_result = attributes[:'evaluationResult'] unless attributes[:'evaluationResult'].nil? raise 'You cannot provide both :evaluationResult and :evaluation_result' if attributes.key?(:'evaluationResult') && attributes.key?(:'evaluation_result') self.evaluation_result = attributes[:'evaluation_result'] unless attributes[:'evaluation_result'].nil? end | 
Instance Attribute Details
#condition_block ⇒ OCI::LogAnalytics::Models::ConditionBlock
This attribute is required.
| 17 18 19 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 17 def condition_block @condition_block end | 
#condition_string ⇒ String
[Required] String representation of the validated label condition.
| 13 14 15 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 13 def condition_string @condition_string end | 
#evaluation_result ⇒ BOOLEAN
The result of evaluating the condition blocks against the specified field values. Either true or false.
| 34 35 36 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 34 def evaluation_result @evaluation_result end | 
#field_values ⇒ Array<OCI::LogAnalytics::Models::LogAnalyticsProperty>
Field values against which the label condition was evaluated.
| 21 22 23 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 21 def field_values @field_values end | 
#status ⇒ String
[Required] The validation status.
| 25 26 27 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 25 def status @status end | 
#status_description ⇒ String
The validation status description.
| 29 30 31 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 29 def status_description @status_description end | 
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
| 37 38 39 40 41 42 43 44 45 46 47 48 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 37 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'condition_string': :'conditionString', 'condition_block': :'conditionBlock', 'field_values': :'fieldValues', 'status': :'status', 'status_description': :'statusDescription', 'evaluation_result': :'evaluationResult' # rubocop:enable Style/SymbolLiteral } end | 
.swagger_types ⇒ Object
Attribute type mapping.
| 51 52 53 54 55 56 57 58 59 60 61 62 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 51 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'condition_string': :'String', 'condition_block': :'OCI::LogAnalytics::Models::ConditionBlock', 'field_values': :'Array<OCI::LogAnalytics::Models::LogAnalyticsProperty>', 'status': :'String', 'status_description': :'String', 'evaluation_result': :'BOOLEAN' # rubocop:enable Style/SymbolLiteral } end | 
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
| 122 123 124 125 126 127 128 129 130 131 132 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 122 def ==(other) return true if equal?(other) self.class == other.class && condition_string == other.condition_string && condition_block == other.condition_block && field_values == other.field_values && status == other.status && status_description == other.status_description && evaluation_result == other.evaluation_result end | 
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
| 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 157 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end | 
#eql?(other) ⇒ Boolean
| 137 138 139 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 137 def eql?(other) self == other end | 
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
| 146 147 148 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 146 def hash [condition_string, condition_block, field_values, status, status_description, evaluation_result].hash end | 
#to_hash ⇒ Hash
Returns the object in the form of hash
| 190 191 192 193 194 195 196 197 198 199 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 190 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end | 
#to_s ⇒ String
Returns the string representation of the object
| 184 185 186 | # File 'lib/oci/log_analytics/models/validate_label_condition_result.rb', line 184 def to_s to_hash.to_s end |