Class: Google::Apis::GkehubV1alpha::ValidationResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/representations.rb

Overview

ValidationResults are results set by each validator running during ValidateCreateMembership.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValidationResult

Returns a new instance of ValidationResult.



5729
5730
5731
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5729

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

Instance Attribute Details

#resultString

Additional information for the validation. Corresponds to the JSON property result

Returns:

  • (String)


5716
5717
5718
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5716

def result
  @result
end

#successBoolean Also known as: success?

Whether the validation is passed or not. Corresponds to the JSON property success

Returns:

  • (Boolean)


5721
5722
5723
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5721

def success
  @success
end

#validatorString

Validator type to validate membership with. Corresponds to the JSON property validator

Returns:

  • (String)


5727
5728
5729
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5727

def validator
  @validator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5734
5735
5736
5737
5738
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5734

def update!(**args)
  @result = args[:result] if args.key?(:result)
  @success = args[:success] if args.key?(:success)
  @validator = args[:validator] if args.key?(:validator)
end