Class: Google::Apis::ArtifactregistryV1::NpmPackage

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

NpmPackage represents an npm artifact.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NpmPackage

Returns a new instance of NpmPackage.



1298
1299
1300
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1298

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

Instance Attribute Details

#create_timeString

Output only. Time the package was created. Corresponds to the JSON property createTime

Returns:

  • (String)


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

def create_time
  @create_time
end

#nameString

Required. registry_location, project_id, repository_name and npm_package forms a unique package For example, "projects/test-project/locations/us-west4/ repositories/test-repo/npmPackages/ npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and npm_test:1.0.0" is the npm package. Corresponds to the JSON property name

Returns:

  • (String)


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

def name
  @name
end

#package_nameString

Package for the artifact. Corresponds to the JSON property packageName

Returns:

  • (String)


1281
1282
1283
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1281

def package_name
  @package_name
end

#tagsArray<String>

Tags attached to this package. Corresponds to the JSON property tags

Returns:

  • (Array<String>)


1286
1287
1288
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1286

def tags
  @tags
end

#update_timeString

Output only. Time the package was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1291
1292
1293
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1291

def update_time
  @update_time
end

#versionString

Version of this package. Corresponds to the JSON property version

Returns:

  • (String)


1296
1297
1298
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1296

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1303
1304
1305
1306
1307
1308
1309
1310
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1303

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