Class: Google::Apis::ArtifactregistryV1::UpstreamPolicy
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ArtifactregistryV1::UpstreamPolicy
 
 
- 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
Artifact policy configuration for the repository contents.
Instance Attribute Summary collapse
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The user-provided ID of the upstream policy.
 - 
  
    
      #priority  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Entries with a greater priority value take precedence in the pull order.
 - 
  
    
      #repository  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A reference to the repository resource, for example:
projects/p1/locations/us- central1/repositories/repo1. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ UpstreamPolicy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of UpstreamPolicy.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ UpstreamPolicy
Returns a new instance of UpstreamPolicy.
      3190 3191 3192  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3190 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#id ⇒ String
The user-provided ID of the upstream policy.
Corresponds to the JSON property id
      3177 3178 3179  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3177 def id @id end  | 
  
#priority ⇒ Fixnum
Entries with a greater priority value take precedence in the pull order.
Corresponds to the JSON property priority
      3182 3183 3184  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3182 def priority @priority end  | 
  
#repository ⇒ String
A reference to the repository resource, for example: projects/p1/locations/us-
central1/repositories/repo1.
Corresponds to the JSON property repository
      3188 3189 3190  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3188 def repository @repository end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3195 3196 3197 3198 3199  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3195 def update!(**args) @id = args[:id] if args.key?(:id) @priority = args[:priority] if args.key?(:priority) @repository = args[:repository] if args.key?(:repository) end  |