Class: Google::Apis::BinaryauthorizationV1::EvaluateGkePolicyResponse

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

Overview

Response message for PlatformPolicyEvaluationService.EvaluateGkePolicy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EvaluateGkePolicyResponse

Returns a new instance of EvaluateGkePolicyResponse.



703
704
705
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 703

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

Instance Attribute Details

#resultsArray<Google::Apis::BinaryauthorizationV1::PodResult>

Evaluation result for each Pod contained in the request. Corresponds to the JSON property results



696
697
698
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 696

def results
  @results
end

#verdictString

The result of evaluating all Pods in the request. Corresponds to the JSON property verdict

Returns:

  • (String)


701
702
703
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 701

def verdict
  @verdict
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



708
709
710
711
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 708

def update!(**args)
  @results = args[:results] if args.key?(:results)
  @verdict = args[:verdict] if args.key?(:verdict)
end