Class: Google::Apis::DatastreamV1alpha1::ValidationMessage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastream_v1alpha1/classes.rb,
lib/google/apis/datastream_v1alpha1/representations.rb,
lib/google/apis/datastream_v1alpha1/representations.rb

Overview

Represent user-facing validation result message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValidationMessage

Returns a new instance of ValidationMessage.



1733
1734
1735
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1733

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#codeString

A custom code identifying this specific message. Corresponds to the JSON property code

Returns:

  • (String)


1716
1717
1718
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1716

def code
  @code
end

#levelString

Message severity level (warning or error). Corresponds to the JSON property level

Returns:

  • (String)


1721
1722
1723
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1721

def level
  @level
end

#messageString

The result of the validation. Corresponds to the JSON property message

Returns:

  • (String)


1726
1727
1728
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1726

def message
  @message
end

#metadataHash<String,String>

Additional metadata related to the result. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


1731
1732
1733
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1731

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1738
1739
1740
1741
1742
1743
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1738

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @level = args[:level] if args.key?(:level)
  @message = args[:message] if args.key?(:message)
  @metadata = args[:metadata] if args.key?(:metadata)
end