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.



1268
1269
1270
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1268

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)


1248
1249
1250
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1248

def create_time
  @create_time
end

#display_nameString

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

Returns:

  • (String)


1253
1254
1255
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1253

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)


1260
1261
1262
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1260

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)


1266
1267
1268
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1266

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1273
1274
1275
1276
1277
1278
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1273

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