Class: Google::Apis::ArtifactregistryV1::ProjectSettings
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ArtifactregistryV1::ProjectSettings
 
 
- 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
The Artifact Registry settings that apply to a Project.
Instance Attribute Summary collapse
- 
  
    
      #legacy_redirection_state  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The redirection state of the legacy repositories in this project.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name of the project's settings.
 - 
  
    
      #pull_percent  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The percentage of pull traffic to redirect from GCR to AR when using partial redirection.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ProjectSettings 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ProjectSettings.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ ProjectSettings
Returns a new instance of ProjectSettings.
      2255 2256 2257  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2255 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#legacy_redirection_state ⇒ String
The redirection state of the legacy repositories in this project.
Corresponds to the JSON property legacyRedirectionState
      2241 2242 2243  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2241 def legacy_redirection_state @legacy_redirection_state end  | 
  
#name ⇒ String
The name of the project's settings. Always of the form: projects/project-id/
projectSettings In update request: never set In response: always set
Corresponds to the JSON property name
      2247 2248 2249  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2247 def name @name end  | 
  
#pull_percent ⇒ Fixnum
The percentage of pull traffic to redirect from GCR to AR when using partial
redirection.
Corresponds to the JSON property pullPercent
      2253 2254 2255  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2253 def pull_percent @pull_percent end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2260 2261 2262 2263 2264  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2260 def update!(**args) @legacy_redirection_state = args[:legacy_redirection_state] if args.key?(:legacy_redirection_state) @name = args[:name] if args.key?(:name) @pull_percent = args[:pull_percent] if args.key?(:pull_percent) end  |