class Google::Apis::ArtifactregistryV1beta2::Tag

Tags point to a version and represent an alternative name that can be used to access the version.

Attributes

name[RW]

The name of the tag, for example: “projects/p1/locations/us-central1/ repositories/repo1/packages/pkg1/tags/tag1”. If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a- zA-Z0-9-._~:@], anything else must be URL encoded. Corresponds to the JSON property `name` @return [String]

version[RW]

The name of the version the tag refers to, for example: “projects/p1/locations/ us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811” If the package or version ID parts contain slashes, the slashes are escaped. Corresponds to the JSON property `version` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/artifactregistry_v1beta2/classes.rb, line 1050
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/artifactregistry_v1beta2/classes.rb, line 1055
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @version = args[:version] if args.key?(:version)
end