Class: Google::Apis::BinaryauthorizationV1beta1::AdmissionWhitelistPattern
- Inherits:
-
Object
- Object
- Google::Apis::BinaryauthorizationV1beta1::AdmissionWhitelistPattern
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/binaryauthorization_v1beta1/classes.rb,
generated/google/apis/binaryauthorization_v1beta1/representations.rb,
generated/google/apis/binaryauthorization_v1beta1/representations.rb
Overview
An admission whitelist pattern exempts images from checks by admission rules.
Instance Attribute Summary collapse
-
#name_pattern ⇒ String
An image name pattern to whitelist, in the form
registry/path/to/image
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdmissionWhitelistPattern
constructor
A new instance of AdmissionWhitelistPattern.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AdmissionWhitelistPattern
Returns a new instance of AdmissionWhitelistPattern
79 80 81 |
# File 'generated/google/apis/binaryauthorization_v1beta1/classes.rb', line 79 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name_pattern ⇒ String
An image name pattern to whitelist, in the form registry/path/to/image
.
This supports a trailing *
as a wildcard, but this is allowed only in
text after the registry/
part.
Corresponds to the JSON property namePattern
77 78 79 |
# File 'generated/google/apis/binaryauthorization_v1beta1/classes.rb', line 77 def name_pattern @name_pattern end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
84 85 86 |
# File 'generated/google/apis/binaryauthorization_v1beta1/classes.rb', line 84 def update!(**args) @name_pattern = args[:name_pattern] if args.key?(:name_pattern) end |