Class: Google::Apis::GkehubV1alpha::BinaryAuthorizationConfig

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



272
273
274
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 272

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)


265
266
267
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 265

def evaluation_mode
  @evaluation_mode
end

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

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



270
271
272
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 270

def policy_bindings
  @policy_bindings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



277
278
279
280
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 277

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