Class: Google::Apis::DatastreamV1alpha1::Validation

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Validation

Returns a new instance of Validation.



1958
1959
1960
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1958

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

Instance Attribute Details

#codeString

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

Returns:

  • (String)


1941
1942
1943
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1941

def code
  @code
end

#descriptionString

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

Returns:

  • (String)


1946
1947
1948
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1946

def description
  @description
end

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

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



1951
1952
1953
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1951

def message
  @message
end

#statusString

Validation execution status. Corresponds to the JSON property status

Returns:

  • (String)


1956
1957
1958
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1956

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1963
1964
1965
1966
1967
1968
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1963

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