Class: Google::Apis::ArtifactregistryV1::GenericArtifact

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

GenericArtifact represents a generic artifact

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenericArtifact

Returns a new instance of GenericArtifact.



604
605
606
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 604

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

Instance Attribute Details

#create_timeString

Output only. The time when the Generic module is created. Corresponds to the JSON property createTime

Returns:

  • (String)


584
585
586
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 584

def create_time
  @create_time
end

#nameString

Resource name of the generic artifact. project, location, repository, package_id and version_id create a unique generic artifact. i.e. "projects/ test-project/locations/us-west4/repositories/test-repo/ genericArtifacts/ package_id:version_id" Corresponds to the JSON property name

Returns:

  • (String)


592
593
594
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 592

def name
  @name
end

#update_timeString

Output only. The time when the Generic module is updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


597
598
599
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 597

def update_time
  @update_time
end

#versionString

The version of the generic artifact. Corresponds to the JSON property version

Returns:

  • (String)


602
603
604
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 602

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



609
610
611
612
613
614
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 609

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
  @version = args[:version] if args.key?(:version)
end