Class: Google::Apis::BinaryauthorizationV1::AdmissionWhitelistPattern

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

An admission allowlist pattern exempts images from checks by admission rules.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdmissionWhitelistPattern

Returns a new instance of AdmissionWhitelistPattern.



77
78
79
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 77

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

Instance Attribute Details

#name_patternString

An image name pattern to allowlist, in the form registry/path/to/image. This supports a trailing * wildcard, but this is allowed only in text after the registry/ part. This also supports a trailing ** wildcard which matches subdirectories of a given entry. Corresponds to the JSON property namePattern

Returns:

  • (String)


75
76
77
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 75

def name_pattern
  @name_pattern
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



82
83
84
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 82

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