Class: Google::Apis::ArtifactregistryV1beta1::Version
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1beta1::Version
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/artifactregistry_v1beta1/classes.rb,
lib/google/apis/artifactregistry_v1beta1/representations.rb,
lib/google/apis/artifactregistry_v1beta1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#create_time ⇒ String
The time when the version was created.
-
#description ⇒ String
Optional.
-
#name ⇒ String
The name of the version, for example: "projects/p1/locations/us-central1/ repositories/repo1/packages/pkg1/versions/art1".
-
#related_tags ⇒ Array<Google::Apis::ArtifactregistryV1beta1::Tag>
Output only.
-
#update_time ⇒ String
The time when the version was last updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Version
constructor
A new instance of Version.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Version
Returns a new instance of Version.
1200 1201 1202 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 1200 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
The time when the version was created.
Corresponds to the JSON property createTime
1175 1176 1177 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 1175 def create_time @create_time end |
#description ⇒ String
Optional. Description of the version, as specified in its metadata.
Corresponds to the JSON property description
1180 1181 1182 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 1180 def description @description end |
#name ⇒ String
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
1187 1188 1189 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 1187 def name @name end |
#related_tags ⇒ Array<Google::Apis::ArtifactregistryV1beta1::Tag>
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
Corresponds to the JSON property relatedTags
1193 1194 1195 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 1193 def @related_tags end |
#update_time ⇒ String
The time when the version was last updated.
Corresponds to the JSON property updateTime
1198 1199 1200 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 1198 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1205 1206 1207 1208 1209 1210 1211 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 1205 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @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 |