Class: Google::Apis::ArtifactregistryV1::UpstreamPolicy

Inherits:
Object
  • Object
show all
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
more...

Overview

Artifact policy configuration for the repository contents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpstreamPolicy

Returns a new instance of UpstreamPolicy.

[View source]

2909
2910
2911
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2909

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

Instance Attribute Details

#idString

The user-provided ID of the upstream policy. Corresponds to the JSON property id

Returns:

  • (String)

2896
2897
2898
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2896

def id
  @id
end

#priorityFixnum

Entries with a greater priority value take precedence in the pull order. Corresponds to the JSON property priority

Returns:

  • (Fixnum)

2901
2902
2903
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2901

def priority
  @priority
end

#repositoryString

A reference to the repository resource, for example: projects/p1/locations/us- central1/repositories/repo1. Corresponds to the JSON property repository

Returns:

  • (String)

2907
2908
2909
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2907

def repository
  @repository
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

2914
2915
2916
2917
2918
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2914

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