Class: Google::Apis::BinaryauthorizationV1::EvaluateGkePolicyRequest

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

Request message for PlatformPolicyEvaluationService.EvaluateGkePolicy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EvaluateGkePolicyRequest

Returns a new instance of EvaluateGkePolicyRequest.



679
680
681
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 679

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

Instance Attribute Details

#resourceHash<String,Object>

Required. JSON or YAML blob representing a Kubernetes resource. Corresponds to the JSON property resource

Returns:

  • (Hash<String,Object>)


677
678
679
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 677

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



684
685
686
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 684

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