Class: Google::Apis::GkehubV1alpha::BinaryAuthorizationConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::BinaryAuthorizationConfig
- 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
-
#evaluation_mode ⇒ String
Optional.
-
#policy_bindings ⇒ Array<Google::Apis::GkehubV1alpha::PolicyBinding>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BinaryAuthorizationConfig
constructor
A new instance of BinaryAuthorizationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_mode ⇒ String
Optional. Mode of operation for binauthz policy evaluation.
Corresponds to the JSON property evaluationMode
265 266 267 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 265 def evaluation_mode @evaluation_mode end |
#policy_bindings ⇒ Array<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 |