Class: Google::Apis::DatastreamV1::Validation
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::Validation
- 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
-
#code ⇒ String
A custom code identifying this validation.
-
#description ⇒ String
A short description of the validation.
-
#message ⇒ Array<Google::Apis::DatastreamV1::ValidationMessage>
Messages reflecting the validation results.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Validation
constructor
A new instance of Validation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Validation
Returns a new instance of Validation.
3183 3184 3185 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3183 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
A custom code identifying this validation.
Corresponds to the JSON property code
3166 3167 3168 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3166 def code @code end |
#description ⇒ String
A short description of the validation.
Corresponds to the JSON property description
3171 3172 3173 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3171 def description @description end |
#message ⇒ Array<Google::Apis::DatastreamV1::ValidationMessage>
Messages reflecting the validation results.
Corresponds to the JSON property message
3176 3177 3178 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3176 def @message end |
#state ⇒ String
Output only. Validation execution status.
Corresponds to the JSON property state
3181 3182 3183 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3181 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3188 3189 3190 3191 3192 3193 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3188 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 |