Class: Google::Apis::GkehubV1alpha::ValidationResult
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::ValidationResult
- 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
-
#result ⇒ String
Additional information for the validation.
-
#success ⇒ Boolean
(also: #success?)
Whether the validation is passed or not.
-
#validator ⇒ String
Validator type to validate membership with.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ValidationResult
constructor
A new instance of ValidationResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ValidationResult
Returns a new instance of ValidationResult.
5727 5728 5729 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5727 def initialize(**args) update!(**args) end |
Instance Attribute Details
#result ⇒ String
Additional information for the validation.
Corresponds to the JSON property result
5714 5715 5716 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5714 def result @result end |
#success ⇒ Boolean Also known as: success?
Whether the validation is passed or not.
Corresponds to the JSON property success
5719 5720 5721 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5719 def success @success end |
#validator ⇒ String
Validator type to validate membership with.
Corresponds to the JSON property validator
5725 5726 5727 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5725 def validator @validator end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5732 5733 5734 5735 5736 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 5732 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 |