Class: Google::Apis::DatastreamV1::ValidationMessage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastream_v1/classes.rb,
lib/google/apis/datastream_v1/representations.rb,
lib/google/apis/datastream_v1/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.



2965
2966
2967
# File 'lib/google/apis/datastream_v1/classes.rb', line 2965

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)


2948
2949
2950
# File 'lib/google/apis/datastream_v1/classes.rb', line 2948

def code
  @code
end

#levelString

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

Returns:

  • (String)


2953
2954
2955
# File 'lib/google/apis/datastream_v1/classes.rb', line 2953

def level
  @level
end

#messageString

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

Returns:

  • (String)


2958
2959
2960
# File 'lib/google/apis/datastream_v1/classes.rb', line 2958

def message
  @message
end

#metadataHash<String,String>

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

Returns:

  • (Hash<String,String>)


2963
2964
2965
# File 'lib/google/apis/datastream_v1/classes.rb', line 2963

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2970
2971
2972
2973
2974
2975
# File 'lib/google/apis/datastream_v1/classes.rb', line 2970

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