Class: Google::Apis::ArtifactregistryV1::Package

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

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.



2426
2427
2428
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2426

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

Instance Attribute Details

#annotationsHash<String,String>

Optional. Client specified annotations. Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


2401
2402
2403
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2401

def annotations
  @annotations
end

#create_timeString

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

Returns:

  • (String)


2406
2407
2408
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2406

def create_time
  @create_time
end

#display_nameString

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

Returns:

  • (String)


2411
2412
2413
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2411

def display_name
  @display_name
end

#nameString

The name of the package, for example: projects/p1/locations/us-central1/ repositories/repo1/packages/pkg1. If the package ID part contains slashes, the slashes are escaped. Corresponds to the JSON property name

Returns:

  • (String)


2418
2419
2420
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2418

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)


2424
2425
2426
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2424

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2431
2432
2433
2434
2435
2436
2437
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2431

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @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