Class: Google::Apis::BinaryauthorizationV1::ImageAllowlist

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/binaryauthorization_v1/classes.rb,
lib/google/apis/binaryauthorization_v1/representations.rb,
lib/google/apis/binaryauthorization_v1/representations.rb

Overview

Images that are exempted from normal checks based on name pattern only.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageAllowlist

Returns a new instance of ImageAllowlist.



927
928
929
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 927

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allow_patternArray<String>

Required. A disjunction of image patterns to allow. If any of these patterns match, then the image is considered exempted by this allowlist. Corresponds to the JSON property allowPattern

Returns:

  • (Array<String>)


925
926
927
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 925

def allow_pattern
  @allow_pattern
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



932
933
934
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 932

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