Class: Google::Apis::GkehubV1::BinaryAuthorizationConfig

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

Overview

BinaryAuthorizationConfig defines the fleet level configuration of binary authorization feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BinaryAuthorizationConfig

Returns a new instance of BinaryAuthorizationConfig.



218
219
220
# File 'lib/google/apis/gkehub_v1/classes.rb', line 218

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

Instance Attribute Details

#evaluation_modeString

Optional. Mode of operation for binauthz policy evaluation. Corresponds to the JSON property evaluationMode

Returns:

  • (String)


211
212
213
# File 'lib/google/apis/gkehub_v1/classes.rb', line 211

def evaluation_mode
  @evaluation_mode
end

#policy_bindingsArray<Google::Apis::GkehubV1::PolicyBinding>

Optional. Binauthz policies that apply to this cluster. Corresponds to the JSON property policyBindings



216
217
218
# File 'lib/google/apis/gkehub_v1/classes.rb', line 216

def policy_bindings
  @policy_bindings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



223
224
225
226
# File 'lib/google/apis/gkehub_v1/classes.rb', line 223

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