Class: Google::Apis::BinaryauthorizationV1::ImageFreshnessCheck
- Inherits:
-
Object
- Object
- Google::Apis::BinaryauthorizationV1::ImageFreshnessCheck
- 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 image freshness check, which rejects images that were uploaded before the set number of days ago to the supported repositories.
Instance Attribute Summary collapse
-
#max_upload_age_days ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageFreshnessCheck
constructor
A new instance of ImageFreshnessCheck.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ImageFreshnessCheck
Returns a new instance of ImageFreshnessCheck.
948 949 950 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 948 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_upload_age_days ⇒ Fixnum
Required. The max number of days that is allowed since the image was uploaded.
Must be greater than zero.
Corresponds to the JSON property maxUploadAgeDays
946 947 948 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 946 def max_upload_age_days @max_upload_age_days end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
953 954 955 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 953 def update!(**args) @max_upload_age_days = args[:max_upload_age_days] if args.key?(:max_upload_age_days) end |