Class: Google::Apis::ArtifactregistryV1::CleanupPolicyCondition
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ArtifactregistryV1::CleanupPolicyCondition
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/artifactregistry_v1/classes.rb,
lib/google/apis/artifactregistry_v1/representations.rb,
lib/google/apis/artifactregistry_v1/representations.rb 
Overview
CleanupPolicyCondition is a set of conditions attached to a CleanupPolicy. If multiple entries are set, all must be satisfied for the condition to be satisfied.
Instance Attribute Summary collapse
- 
  
    
      #newer_than  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Match versions newer than a duration.
 - 
  
    
      #older_than  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Match versions older than a duration.
 - 
  
    
      #package_name_prefixes  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Match versions by package prefix.
 - 
  
    
      #tag_prefixes  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Match versions by tag prefix.
 - 
  
    
      #tag_state  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Match versions by tag status.
 - 
  
    
      #version_name_prefixes  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Match versions by version name prefix.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CleanupPolicyCondition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of CleanupPolicyCondition.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ CleanupPolicyCondition
Returns a new instance of CleanupPolicyCondition.
      405 406 407  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 405 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#newer_than ⇒ String
Match versions newer than a duration.
Corresponds to the JSON property newerThan
      378 379 380  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 378 def newer_than @newer_than end  | 
  
#older_than ⇒ String
Match versions older than a duration.
Corresponds to the JSON property olderThan
      383 384 385  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 383 def older_than @older_than end  | 
  
#package_name_prefixes ⇒ Array<String>
Match versions by package prefix. Applied on any prefix match.
Corresponds to the JSON property packageNamePrefixes
      388 389 390  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 388 def package_name_prefixes @package_name_prefixes end  | 
  
#tag_prefixes ⇒ Array<String>
Match versions by tag prefix. Applied on any prefix match.
Corresponds to the JSON property tagPrefixes
      393 394 395  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 393 def tag_prefixes @tag_prefixes end  | 
  
#tag_state ⇒ String
Match versions by tag status.
Corresponds to the JSON property tagState
      398 399 400  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 398 def tag_state @tag_state end  | 
  
#version_name_prefixes ⇒ Array<String>
Match versions by version name prefix. Applied on any prefix match.
Corresponds to the JSON property versionNamePrefixes
      403 404 405  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 403 def version_name_prefixes @version_name_prefixes end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      410 411 412 413 414 415 416 417  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 410 def update!(**args) @newer_than = args[:newer_than] if args.key?(:newer_than) @older_than = args[:older_than] if args.key?(:older_than) @package_name_prefixes = args[:package_name_prefixes] if args.key?(:package_name_prefixes) @tag_prefixes = args[:tag_prefixes] if args.key?(:tag_prefixes) @tag_state = args[:tag_state] if args.key?(:tag_state) @version_name_prefixes = args[:version_name_prefixes] if args.key?(:version_name_prefixes) end  |