Class: Google::Apis::BinaryauthorizationV1::ImageAllowlist
- Inherits:
-
Object
- Object
- Google::Apis::BinaryauthorizationV1::ImageAllowlist
- 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
-
#allow_pattern ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageAllowlist
constructor
A new instance of ImageAllowlist.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_pattern ⇒ Array<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
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 |