Class: Google::Apis::GkehubV1beta::BinaryAuthorizationConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/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.



286
287
288
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 286

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)


279
280
281
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 279

def evaluation_mode
  @evaluation_mode
end

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

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



284
285
286
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 284

def policy_bindings
  @policy_bindings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



291
292
293
294
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 291

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