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.



7268
7269
7270
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 7268

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

Instance Attribute Details

#resultString

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

Returns:

  • (String)


7255
7256
7257
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 7255

def result
  @result
end

#successBoolean Also known as: success?

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

Returns:

  • (Boolean)


7260
7261
7262
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 7260

def success
  @success
end

#validatorString

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

Returns:

  • (String)


7266
7267
7268
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 7266

def validator
  @validator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7273
7274
7275
7276
7277
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 7273

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