Class: Google::Apis::ArtifactregistryV1::Version

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Version

Returns a new instance of Version.



1138
1139
1140
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1138

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

The time when the version was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1106
1107
1108
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1106

def create_time
  @create_time
end

#descriptionString

Optional. Description of the version, as specified in its metadata. Corresponds to the JSON property description

Returns:

  • (String)


1111
1112
1113
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1111

def description
  @description
end

#metadataHash<String,Object>

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

Returns:

  • (Hash<String,Object>)


1118
1119
1120
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1118

def 
  @metadata
end

#nameString

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

Returns:

  • (String)


1125
1126
1127
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1125

def name
  @name
end

Output only. A list of related tags. Will contain up to 100 tags that reference this version. Corresponds to the JSON property relatedTags



1131
1132
1133
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1131

def related_tags
  @related_tags
end

#update_timeString

The time when the version was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1136
1137
1138
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1136

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1143
1144
1145
1146
1147
1148
1149
1150
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1143

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