Class: Google::Apis::ArtifactregistryV1beta1::Package

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/artifactregistry_v1beta1/classes.rb,
generated/google/apis/artifactregistry_v1beta1/representations.rb,
generated/google/apis/artifactregistry_v1beta1/representations.rb

Overview

Packages are named collections of versions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Package

Returns a new instance of Package.



558
559
560
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 558

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


539
540
541
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 539

def create_time
  @create_time
end

#display_nameString

The display name of the package. Corresponds to the JSON property displayName

Returns:

  • (String)


544
545
546
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 544

def display_name
  @display_name
end

#nameString

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

Returns:

  • (String)


550
551
552
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 550

def name
  @name
end

#update_timeString

The time when the package was last updated. This includes publishing a new version of the package. Corresponds to the JSON property updateTime

Returns:

  • (String)


556
557
558
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 556

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



563
564
565
566
567
568
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 563

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