Class: Google::Apis::RunV2::GoogleCloudRunV2BinaryAuthorization
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2BinaryAuthorization
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb
Overview
Settings for Binary Authorization feature.
Instance Attribute Summary collapse
-
#breakglass_justification ⇒ String
Optional.
-
#policy ⇒ String
Optional.
-
#use_default ⇒ Boolean
(also: #use_default?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2BinaryAuthorization
constructor
A new instance of GoogleCloudRunV2BinaryAuthorization.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2BinaryAuthorization
Returns a new instance of GoogleCloudRunV2BinaryAuthorization.
50 51 52 |
# File 'lib/google/apis/run_v2/classes.rb', line 50 def initialize(**args) update!(**args) end |
Instance Attribute Details
#breakglass_justification ⇒ String
Optional. If present, indicates to use Breakglass using this justification. If
use_default is False, then it must be empty. For more information on
breakglass, see https://cloud.google.com/binary-authorization/docs/using-
breakglass
Corresponds to the JSON property breakglassJustification
35 36 37 |
# File 'lib/google/apis/run_v2/classes.rb', line 35 def breakglass_justification @breakglass_justification end |
#policy ⇒ String
Optional. The path to a binary authorization policy. Format: projects/project
/platforms/cloudRun/policy-name
Corresponds to the JSON property policy
41 42 43 |
# File 'lib/google/apis/run_v2/classes.rb', line 41 def policy @policy end |
#use_default ⇒ Boolean Also known as: use_default?
Optional. If True, indicates to use the default project's binary authorization
policy. If False, binary authorization will be disabled.
Corresponds to the JSON property useDefault
47 48 49 |
# File 'lib/google/apis/run_v2/classes.rb', line 47 def use_default @use_default end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
55 56 57 58 59 |
# File 'lib/google/apis/run_v2/classes.rb', line 55 def update!(**args) @breakglass_justification = args[:breakglass_justification] if args.key?(:breakglass_justification) @policy = args[:policy] if args.key?(:policy) @use_default = args[:use_default] if args.key?(:use_default) end |