Class: Google::Apis::RunV2::GoogleCloudRunV2BinaryAuthorization

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_justificationString

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

Returns:

  • (String)


35
36
37
# File 'lib/google/apis/run_v2/classes.rb', line 35

def breakglass_justification
  @breakglass_justification
end

#policyString

Optional. The path to a binary authorization policy. Format: projects/project /platforms/cloudRun/policy-name Corresponds to the JSON property policy

Returns:

  • (String)


41
42
43
# File 'lib/google/apis/run_v2/classes.rb', line 41

def policy
  @policy
end

#use_defaultBoolean 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

Returns:

  • (Boolean)


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