Class: Google::Apis::ArtifactregistryV1::Version
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::Version
- 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
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
-
#annotations ⇒ Hash<String,String>
Optional.
-
#create_time ⇒ String
The time when the version was created.
-
#description ⇒ String
Optional.
-
#metadata ⇒ Hash<String,Object>
Output only.
-
#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::ArtifactregistryV1::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.
3289 3290 3291 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3289 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<String,String>
Optional. Client specified annotations.
Corresponds to the JSON property annotations
3252 3253 3254 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3252 def annotations @annotations end |
#create_time ⇒ String
The time when the version was created.
Corresponds to the JSON property createTime
3257 3258 3259 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3257 def create_time @create_time end |
#description ⇒ String
Optional. Description of the version, as specified in its metadata.
Corresponds to the JSON property description
3262 3263 3264 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3262 def description @description end |
#metadata ⇒ Hash<String,Object>
Output only. Repository-specific Metadata stored against this version. The
fields returned are defined by the underlying repository-specific resource.
Currently, the resources could be: DockerImage MavenArtifact
Corresponds to the JSON property metadata
3269 3270 3271 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3269 def @metadata 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
3276 3277 3278 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3276 def name @name end |
#related_tags ⇒ Array<Google::Apis::ArtifactregistryV1::Tag>
Output only. A list of related tags. Will contain up to 100 tags that
reference this version.
Corresponds to the JSON property relatedTags
3282 3283 3284 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3282 def @related_tags end |
#update_time ⇒ String
The time when the version was last updated.
Corresponds to the JSON property updateTime
3287 3288 3289 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3287 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3294 3295 3296 3297 3298 3299 3300 3301 3302 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3294 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @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 |