Class: Google::Apis::ArtifactregistryV1beta1::Tag
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1beta1::Tag
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/artifactregistry_v1beta1/classes.rb,
generated/google/apis/artifactregistry_v1beta1/representations.rb,
generated/google/apis/artifactregistry_v1beta1/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" Corresponds to the JSON property
version
.
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.
818 819 820 |
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 818 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".
Corresponds to the JSON property name
810 811 812 |
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 810 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"
Corresponds to the JSON property version
816 817 818 |
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 816 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
823 824 825 826 |
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 823 def update!(**args) @name = args[:name] if args.key?(:name) @version = args[:version] if args.key?(:version) end |