Class: Google::Apis::ComputeV1::UrlMapValidationResult

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

Overview

Message representing the validation result for a UrlMap.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UrlMapValidationResult

Returns a new instance of UrlMapValidationResult.



48135
48136
48137
# File 'lib/google/apis/compute_v1/classes.rb', line 48135

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

Instance Attribute Details

#load_errorsArray<String>

Corresponds to the JSON property loadErrors

Returns:

  • (Array<String>)


48114
48115
48116
# File 'lib/google/apis/compute_v1/classes.rb', line 48114

def load_errors
  @load_errors
end

#load_succeededBoolean Also known as: load_succeeded?

Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons. Corresponds to the JSON property loadSucceeded

Returns:

  • (Boolean)


48120
48121
48122
# File 'lib/google/apis/compute_v1/classes.rb', line 48120

def load_succeeded
  @load_succeeded
end

#test_failuresArray<Google::Apis::ComputeV1::TestFailure>

Corresponds to the JSON property testFailures



48126
48127
48128
# File 'lib/google/apis/compute_v1/classes.rb', line 48126

def test_failures
  @test_failures
end

#test_passedBoolean Also known as: test_passed?

If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure. Corresponds to the JSON property testPassed

Returns:

  • (Boolean)


48132
48133
48134
# File 'lib/google/apis/compute_v1/classes.rb', line 48132

def test_passed
  @test_passed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



48140
48141
48142
48143
48144
48145
# File 'lib/google/apis/compute_v1/classes.rb', line 48140

def update!(**args)
  @load_errors = args[:load_errors] if args.key?(:load_errors)
  @load_succeeded = args[:load_succeeded] if args.key?(:load_succeeded)
  @test_failures = args[:test_failures] if args.key?(:test_failures)
  @test_passed = args[:test_passed] if args.key?(:test_passed)
end