Class: Google::Apis::ArtifactregistryV1beta2::Version

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/artifactregistry_v1beta2/classes.rb,
generated/google/apis/artifactregistry_v1beta2/representations.rb,
generated/google/apis/artifactregistry_v1beta2/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.



902
903
904
# File 'generated/google/apis/artifactregistry_v1beta2/classes.rb', line 902

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)


878
879
880
# File 'generated/google/apis/artifactregistry_v1beta2/classes.rb', line 878

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)


883
884
885
# File 'generated/google/apis/artifactregistry_v1beta2/classes.rb', line 883

def description
  @description
end

#nameString

The name of the version, for example: "projects/p1/locations/us-central1/ repositories/repo1/packages/pkg1/versions/art1". Corresponds to the JSON property name

Returns:

  • (String)


889
890
891
# File 'generated/google/apis/artifactregistry_v1beta2/classes.rb', line 889

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



895
896
897
# File 'generated/google/apis/artifactregistry_v1beta2/classes.rb', line 895

def related_tags
  @related_tags
end

#update_timeString

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

Returns:

  • (String)


900
901
902
# File 'generated/google/apis/artifactregistry_v1beta2/classes.rb', line 900

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



907
908
909
910
911
912
913
# File 'generated/google/apis/artifactregistry_v1beta2/classes.rb', line 907

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