Class: Google::Apis::ArtifactregistryV1::Tag
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::Tag
- 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
Tags point to a version and represent an alternative name that can be used to access the version.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the tag, for example: "projects/p1/locations/us-central1/ repositories/repo1/packages/pkg1/tags/tag1".
-
#version ⇒ String
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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Tag
constructor
A new instance of Tag.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Tag
Returns a new instance of Tag.
1260 1261 1262 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1260 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
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
1251 1252 1253 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1251 def name @name end |
#version ⇒ String
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
1258 1259 1260 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1258 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1265 1266 1267 1268 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1265 def update!(**args) @name = args[:name] if args.key?(:name) @version = args[:version] if args.key?(:version) end |