Class: Google::Apis::DatastreamV1alpha1::ValidationMessage
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1alpha1::ValidationMessage
- 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
-
#code ⇒ String
A custom code identifying this specific message.
-
#level ⇒ String
Message severity level (warning or error).
-
#message ⇒ String
The result of the validation.
-
#metadata ⇒ Hash<String,String>
Additional metadata related to the result.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ValidationMessage
constructor
A new instance of ValidationMessage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ValidationMessage
Returns a new instance of ValidationMessage.
2507 2508 2509 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 2507 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
A custom code identifying this specific message.
Corresponds to the JSON property code
2490 2491 2492 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 2490 def code @code end |
#level ⇒ String
Message severity level (warning or error).
Corresponds to the JSON property level
2495 2496 2497 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 2495 def level @level end |
#message ⇒ String
The result of the validation.
Corresponds to the JSON property message
2500 2501 2502 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 2500 def @message end |
#metadata ⇒ Hash<String,String>
Additional metadata related to the result.
Corresponds to the JSON property metadata
2505 2506 2507 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 2505 def @metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2512 2513 2514 2515 2516 2517 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 2512 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 |