Class: Google::Apis::DatastreamV1::Validation

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

A validation to perform on a stream.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Validation

Returns a new instance of Validation.



5793
5794
5795
# File 'lib/google/apis/datastream_v1/classes.rb', line 5793

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

Instance Attribute Details

#codeString

A custom code identifying this validation. Corresponds to the JSON property code

Returns:

  • (String)


5776
5777
5778
# File 'lib/google/apis/datastream_v1/classes.rb', line 5776

def code
  @code
end

#descriptionString

A short description of the validation. Corresponds to the JSON property description

Returns:

  • (String)


5781
5782
5783
# File 'lib/google/apis/datastream_v1/classes.rb', line 5781

def description
  @description
end

#messageArray<Google::Apis::DatastreamV1::ValidationMessage>

Messages reflecting the validation results. Corresponds to the JSON property message



5786
5787
5788
# File 'lib/google/apis/datastream_v1/classes.rb', line 5786

def message
  @message
end

#stateString

Output only. Validation execution status. Corresponds to the JSON property state

Returns:

  • (String)


5791
5792
5793
# File 'lib/google/apis/datastream_v1/classes.rb', line 5791

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5798
5799
5800
5801
5802
5803
# File 'lib/google/apis/datastream_v1/classes.rb', line 5798

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