class Google::Apis::ArtifactregistryV1beta2::Version
The body of a version resource. A version resource represents a collection of components, such as files and other data. This may correspond to a version in many package management schemes.
Attributes
The time when the version was created. Corresponds to the JSON property `createTime` @return [String]
Optional. Description of the version, as specified in its metadata. Corresponds to the JSON property `description` @return [String]
Output only. Repository-specific Metadata stored against this version. The fields returned are defined by the underlying repository-specific resource. Currently, the only resource in use is DockerImage Corresponds to the JSON property `metadata` @return [Hash<String,Object>]
The name of the version, for example: “projects/p1/locations/us-central1/ repositories/repo1/packages/pkg1/versions/art1”. If the package or version ID parts contain slashes, the slashes are escaped. Corresponds to the JSON property `name` @return [String]
The time when the version was last updated. Corresponds to the JSON property `updateTime` @return [String]
Public Class Methods
# File lib/google/apis/artifactregistry_v1beta2/classes.rb, line 1248 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/artifactregistry_v1beta2/classes.rb, line 1253 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @metadata = args[:metadata] if args.key?(:metadata) @name = args[:name] if args.key?(:name) @related_tags = args[:related_tags] if args.key?(:related_tags) @update_time = args[:update_time] if args.key?(:update_time) end