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.



2397
2398
2399
# File 'lib/google/apis/datastream_v1/classes.rb', line 2397

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

Instance Attribute Details

#codeString

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

Returns:

  • (String)


2380
2381
2382
# File 'lib/google/apis/datastream_v1/classes.rb', line 2380

def code
  @code
end

#descriptionString

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

Returns:

  • (String)


2385
2386
2387
# File 'lib/google/apis/datastream_v1/classes.rb', line 2385

def description
  @description
end

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

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



2390
2391
2392
# File 'lib/google/apis/datastream_v1/classes.rb', line 2390

def message
  @message
end

#stateString

Validation execution status. Corresponds to the JSON property state

Returns:

  • (String)


2395
2396
2397
# File 'lib/google/apis/datastream_v1/classes.rb', line 2395

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2402
2403
2404
2405
2406
2407
# File 'lib/google/apis/datastream_v1/classes.rb', line 2402

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